From a623515dc9c3e924e0f43b29c0933e0a64cefaf5 Mon Sep 17 00:00:00 2001 From: Ben Axnick Date: Tue, 5 Feb 2013 13:27:47 +1100 Subject: [PATCH 1/2] Added ILS currency provided by EU Central Bank Was missing from the currencies list. --- lib/eu_central_bank.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eu_central_bank.rb b/lib/eu_central_bank.rb index 6f9a27828d..7e2e571937 100644 --- a/lib/eu_central_bank.rb +++ b/lib/eu_central_bank.rb @@ -10,7 +10,7 @@ class EuCentralBank < Money::Bank::VariableExchange attr_accessor :last_updated ECB_RATES_URL = 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml' - CURRENCIES = %w(USD JPY BGN CZK DKK GBP HUF LTL LVL PLN RON SEK CHF NOK HRK RUB TRY AUD BRL CAD CNY HKD IDR INR KRW MXN MYR NZD PHP SGD THB ZAR) + CURRENCIES = %w(USD JPY BGN CZK DKK GBP HUF ILS LTL LVL PLN RON SEK CHF NOK HRK RUB TRY AUD BRL CAD CNY HKD IDR INR KRW MXN MYR NZD PHP SGD THB ZAR) def update_rates(cache=nil) update_parsed_rates(exchange_rates(cache)) From 3f8ac514d477ac0f7ca23e6f28216527adbf7f48 Mon Sep 17 00:00:00 2001 From: Ben Axnick Date: Tue, 5 Feb 2013 14:57:55 +1100 Subject: [PATCH 2/2] Added ILS currency to test data --- spec/exchange_rates.xml | 1 + spec/exchange_rates.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/spec/exchange_rates.xml b/spec/exchange_rates.xml index 7c41ea4a1a..4e0be12b5b 100644 --- a/spec/exchange_rates.xml +++ b/spec/exchange_rates.xml @@ -31,6 +31,7 @@ + diff --git a/spec/exchange_rates.yml b/spec/exchange_rates.yml index 5c67f6233d..9ac2010afd 100644 --- a/spec/exchange_rates.yml +++ b/spec/exchange_rates.yml @@ -24,6 +24,7 @@ currencies: HKD: 10.4688 IDR: 12141.23 INR: 60.0060 + ILS: 5.0492 KRW: 1507.69 MXN: 16.4647 MYR: 4.3209