All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
Fix:
- Add an expiry to Rails cache store entries.
Changes:
- Support the money-open-exchange-rates gem.
- Drop support for Rails < 6.1.
- Database transaction when saving rates.
- Add named argument for the list of currencies.
- Add multiplier option.
Fix:
- A nil bank defaults to EuCentralBank.
- Do not require the
eu_central_bankwhen using a different bank.
Changes:
- Drop support for Rails < 4.2.
Fixes:
- Reversible migration.
- Migration injects through database tasks.
Fix:
- Fix migrations export to host application
Features:
- Store all combination of rates between all currencies by defaulting to going through the first currency.
value_foraccepts any currency format accepted byMoney::Currency.value_forreturns1if asking for the samefromandto.
Features:
ActiveCurrency::AddRatesaccepts a custombankargument.- Use the first currency given to
AddRatesas the default currency instead of EUR. - When given a custom bank, use its inverse rates if available.
Fix:
- Fix migrations under Rails 4.2.
Fix:
- Do not require the migration class while loading the app.
Nothing new, just released for the Paris.rb meetup! 🎉
Breaking change:
- Remove
ActiveCurrency::MemoryRateStorepreferMoney::RatesStore::Memory.
Features:
- Add
ActiveCurrency::Bankto simplify app's initializer. - Add
.calltoActiveCurrency::AddRatesto simplify app's calls.
Fix:
- Remove migration that adds rates automatically.
Fix:
- Allow adding rates without setting the default store.
Breaking changes:
- Move the list of currencies to AddRate.
- Remove
current_value_forthat was deprecated in v0.2.0. - Add eu_central_bank dependency condition.
Fix:
- Allow lowercase currencies when adding rates.
Features:
- Support for Rails 3.2.
- Prefer
value_fortocurrent_value_for. - Add a
ActiveCurrency::MemoryRateStore, useful in test mode.
First Release \o/