From e52cdd851275923546adec05cc0ef0e07a543996 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Tue, 11 Sep 2018 18:08:14 +0100 Subject: [PATCH] Fix Rubocop offenses --- lib/query.rb | 1 + lib/quote/end_of_day.rb | 1 + lib/quote/interval.rb | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/query.rb b/lib/query.rb index f3f3fc5..5865d74 100644 --- a/lib/query.rb +++ b/lib/query.rb @@ -7,6 +7,7 @@ class Query def amount return unless @params[:amount] + @params[:amount].to_f end diff --git a/lib/quote/end_of_day.rb b/lib/quote/end_of_day.rb index a762a8a..6f838de 100644 --- a/lib/quote/end_of_day.rb +++ b/lib/quote/end_of_day.rb @@ -14,6 +14,7 @@ module Quote def cache_key return if not_found? + Digest::MD5.hexdigest(result.keys.first) end diff --git a/lib/quote/interval.rb b/lib/quote/interval.rb index 300abf2..e7a703e 100644 --- a/lib/quote/interval.rb +++ b/lib/quote/interval.rb @@ -15,6 +15,7 @@ module Quote def cache_key return if not_found? + Digest::MD5.hexdigest(result.keys.last) end