lib/money_oxr/rates_store.rb in money-oxr-0.4.2 vs lib/money_oxr/rates_store.rb in money-oxr-0.4.3
- old
+ new
@@ -72,10 +72,10 @@
end
@last_updated_at = now
end
def get_json_from_api
- open(api_uri).read
+ URI.open(api_uri).read
rescue OpenURI::HTTPError, SocketError
raise unless on_api_failure == :warn
warn "#{$!.class}: #{$!.message}"
nil
end