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_bank
when 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_for
accepts any currency format accepted byMoney::Currency
.value_for
returns1
if asking for the samefrom
andto
.
Features:
ActiveCurrency::AddRates
accepts a custombank
argument.- Use the first currency given to
AddRates
as 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::MemoryRateStore
preferMoney::RatesStore::Memory
.
Features:
- Add
ActiveCurrency::Bank
to simplify app's initializer. - Add
.call
toActiveCurrency::AddRates
to 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_for
that 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_for
tocurrent_value_for
. - Add a
ActiveCurrency::MemoryRateStore
, useful in test mode.
First Release \o/