RubyMoney / google_currency

Ruby Money::Bank interface for the Google Currency exchange data
http://rubymoney.github.com/google_currency
MIT License
182 stars 90 forks source link

Google Currency changes CLP settings for the Money gem #44

Closed basex closed 8 years ago

basex commented 9 years ago

If I load the Money Gem version 6.6.1: Money.new(5000,'CLP').amount.to_f => 5000.0

When I load also the Google Currency Gem version Money.new(5000,'CLP').amount.to_f => 50.0

The bug was introduced in the commit 6e363708f9f1c52a1656796cf798c060f2b939c9

The changes to the CLP due to Google issues, should only apply inside the google_currency gem.

basex commented 9 years ago

I tried removing the commit. Money.new(10000,'CLP').amount.to_f => 10000.0 Money.new(10000,'CLP').exchange_to(:USD).to_f => 14.47

Everything seems OK. 10000 CLP is 14.47 USD