lib/money_oxr/rates_store.rb in money-oxr-0.4.0 vs lib/money_oxr/rates_store.rb in money-oxr-0.4.1

- old
+ new

@@ -105,10 +105,10 @@ def parse_json(text) # Convert text to strings so that we can use BigDecimal instead of Float text = text.gsub(/("[A-Z]{3}": ?)(\d+\.\d+)/, '\\1"\\2"') data = JSON.parse(text) data['rates'] = data['rates'].each_with_object({}) do |(key, value), rates| - rates[key] = BigDecimal.new(value) + rates[key] = BigDecimal(value) end data end end