We download eurofxref-daily.xml externally to our application and then make this call in our money initializer. The intent of this is to not have our server reaching out to fetch the exchange rate file as described in the README.
We have discovered an issue if the update_rates method is not able to read the cache file, it attempts to download it anyway. This behavior is subtle and not expected when updated_rates is advertised as simply loading a cache file.
We download eurofxref-daily.xml externally to our application and then make this call in our money initializer. The intent of this is to not have our server reaching out to fetch the exchange rate file as described in the README.
We have discovered an issue if the
update_rates
method is not able to read the cache file, it attempts to download it anyway. This behavior is subtle and not expected whenupdated_rates
is advertised as simply loading a cache file.See eu_central_bank.rb around line 168
The rescue path here should not attempt to make a network connection. Thank you for considering this change.