Closed bak1an closed 2 years ago
@antstorm Looks like this slipped through my fingers back then. Rebased it with:
all
parameter is true
)Let me know what you think.
Thanks! (and sorry for the delay)
@antstorm any chance this can get merged? Seems like a nice upgrade, useful for any accounting software.
@bak1an I did some rebasing in https://github.com/dv/eu_central_bank/tree/hist-rates feel free to update your branch with this.
Currently your branch does not work with an updated Money gem due to the mutex
/transaction difference (getting a "cannot call synchronize
on nil
" error).
Sure, can do it next week.
@bak1an pleeeeease :D
@antstorm Rebased and it works. Had to keep jruby nokogiri workaround though, one we have in gemspec is still affected by that issue.
@bak1an @antstorm can't wait :D
?
Yesterday, semmons99 closed a bunch of PRs and issues without any further comment. This one is affected, too. Am I missing an spring clean announcement or something? This PR looked fine to me and would have added a nice feature to the gem.
closing of long-standing PRs without resolution happy to reopen and merge is @antstorm gives the 👍
@antstorm Any chance we can reopen and merge this? This is still useful (I even run it in production)
Or maybe @semmons99 can point to some other maintainers that are active recently to consider reopening this
@bak1an give me a signal if/when the PR goes green and I will merge and release
@semmons99 merged in main
branch, need approval for CI to run
@bak1an going to merge into main and release now
@bak1an released https://rubygems.org/gems/eu_central_bank/versions/1.7.0
@semmons99 The most awesome, thanks!
This adds support for fetching all historical rates from http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist.xml instead of just the last 90 days in
update_historical_rates
method (90 days historical rates is still the default).Also adds
save_historical_rates
method which callssave_rates
with proper historical urls.See the very first commit to get an idea what the actual change was, I tried to make it compatible with existing API not to change any behavior for existing applications.
The rest of commits here are to fix problems that appeared after, namely:
All historical data contains some now not existing currencies which make money gem throw us exception, I decided to just skip those rates.
I had to rewrite parser to be SAX parser because working with dom/xpath was too slow on that big file:
This looks ready for some initial review, will add specs for new behavior meanwhile.
Refs: #52