- force UTF-8 encoding on currency JSON (jduff)
- add missing config dir
The big change this release is moving the currency information into a JSON file. This should make it easier for users to add and test things. Thanks to Steve Morris for working on this during his Mendicant University course.
In addition to this big change there were well over a dozen other minor changes.
- a new exchange bank nordea has been added to the README. (k33l0r)
- a new exchange bank nbrb_currency has been added to the README. (slbug)
- update Rake tasks
- See our CI status in the README
- Add syntax highlighting to the README (phlipper)
- Remove minor unit from YEN (pwim)
- Format YEN (pwim)
- Update README for
_as_string
(mjankowski) - Update Lebanon currency (kaleemullah)
- Update Polish złoty (holek)
- Move currency information into JSON storage! (stevemorris)
- Add ISO4217 Numeric codes (alovak)
- EEK currency is no longer used, kept for BC (#issue/110)
- Lithuanian Litas symbol position fixed (laurynas)
- Fixed README typos (phlipper)
- Fixed README typos (pwim)
- Fix specs (alovak)
- Add encoding indicator to top of Gemspec
- add Money#to_d (thanks Andrew White)
- Add Money.use_i18n, this allows you to enable/disable i18n from being used, even if it's required in your app.
- i18n enhancements (thanks eloyesp link)
- README updates (thanks pconnor)
- Break into modules
- Added
:no_cents_if_whole
format option - Update HKD from Ho to Cent
- Performance improvements (thanks weppos)
- Added Symbol#to_currency
- Added Gemfile for development
- Updated HUF currency to use
symbol_first => false
- Updated "Turkish New Lira" to "Turkish Lira"
- Floating point comparison needs to Epsilon aware (thanks Tobias Luetke)
- reimplement fix for #issue/43, enable Marshal.(load/dump)
- Add a symbol position option for Money#format (thanks Romain, Gil and Julien)
- Updated CNY to use "Fen" and subunit_to_unit of 100
- Updates to work with gem-testers.org
- Fixed issue with #format(:no_cents => true) (thanks Romain & Julien)
- Enhancements to Money::Currency (thanks Matthew McEachen)
- Replace delimiter with thousands_separator
- Replace separator with decimal_mark
- Added symbol_first and html_entity
- Added allocation algorithm for fair(ish) splitting of money between parties without loosing pennies (thanks Tobias Luetke)
- Always store cents as an Integer (thanks Abhay Kumar)
- Fixed TypeError in rate exchange (thanks Christian Billen)
- Cleanup #parse (thanks Tom Lianza)
- Added Currency#decimal_places.
- Fixed error with Money#to_s error with negative amounts that are only cents.
- Fixed an error in #to_s when cents is negative
- Fixed an error in #to_s which appended extra 0s incorrectly
- Removed erroneous require.
- Updated to RSpec2.
- Use i18n to lookup separator and delimiter signs.
- Removed all deprecated methods up to v3.5.0, including the following:
- Using Money#format with params instead of a Hash.
- Using a Hash with Money#new.
- Using Bank#exchange, use Bank#exchange_with instead.
- Updated Money#to_s to respect :separator and :subunit_to_unit.
- Fixed Money#format for :subunit_to_unit != 100. (#issue/37)
- Fixed String#to_money for :subunit_to_unit != 100. (#issue/36)
- Removed duplicate currencies. (#issue/38)
- Fixed issue related to JRuby returning 2 for Math.log10(1000).floor instead of correctly returning 3.
- Added support for creating objects with the main monetary unit instead of cents. (#issue/25)
- Deprecated
Money#format
with separate params instead of Hash. Deprecation target set to Money 3.5.0. (#issue/31) - Deprecated
Money#new(0, :currency => "EUR")
in favor ofMoney#new(0, "EUR")
. Deprecation target set to Money 3.5.0. (#issue/31) - Throw ArgumentError when trying to multiply two Money objects together. (#issue/29)
- Update Money#parse to use :subunit_to_unit (#issue/30)
- Downgraded required_rubygems_version to >= 1.3.6. (#issue/26)
- Use BigDecimal when floating point calculations are needed.
- Ruby 1.9.2 compatibility enhancements.
- Implemented
Money::Bank::Base
. (#issue/14) - Added
Money::Bank::Base#exchange_with
. - Deprecated
Money::Bank::Base#exchange
. Deprecation target set to Money 3.2.0. - Implented
Money::Bank::VariableExchange
- Deprecated
Money::VariableExchangeBank
. Deprecation target set to Money 3.2.0. - Deprecate
Money::SYMBOLS
,Money::SEPARATORS
andMoney::DELIMITERS
. Deprecation target set to Money 3.2.0. (#issue/16) - Implemented
#has
forMoney
andMoney::Currency
. - Refactored test suite to conform to RSpec conventions.
- Moved project from FooBarWidget to RubyMoney
- Added Simone Carletti to list of authors.
- Moved
@rounding_method
fromMoney::Bank::VariableExchange
toMoney::Bank::Base
. (#issue/18) - Added
#setup
toMoney::Bank::Base
. Called from#initialize
. (#issue/19) - Added google_currency to list of Currency Exchange Implementations.
- Added
#export_rates
toMoney::Bank::VariableExchange
. (#issue/21) - Added
#import_rates
toMoney::Bank::VariableExchange
. (#issue/21) - Removed dependency on Jeweler.
- Replaced usage of hanna with yardoc.
- Rewrote/reformatted all documentation.
- Fixed incorrect URLs in documentation. (#issue/17)
- Updated
:subunit_to_unit
for HKD from 10 to 100. (#issue/20) - Updated Ghanaian Cedi to use correct ISO Code, GHS. (#issue/22)
- Make
default
rake task callspec
. (#issue/23)
- Added google_currency to list of Currency Exchange Implementations.
- Added
#export_rates
toMoney::Bank::VariableExchange
. (#issue/21) - Added
#import_rates
toMoney::Bank::VariableExchange
. (#issue/21)
- Updated
:subunit_to_unit
for HKD from 10 to 100. (#issue/20)
- Moved
@rounding_method
fromMoney::Bank::VariableExchange
toMoney::Bank::Base
. (#issue/18) - Added
#setup
toMoney::Bank::Base
. Called from#initialize
. (#issue/19)
- Fixed incorrect URLs in documentation. (#issue/17)
- Implemented
Money::Bank::Base
. (#issue/14) - Added
Money::Bank::Base#exchange_with
. - Deprecated
Money::Bank::Base#exchange
. Deprecation target set to Money 3.2.0. - Implented
Money::Bank::VariableExchange
- Deprecated
Money::VariableExchangeBank
. Deprecation target set to Money 3.2.0. - Deprecate
Money::SYMBOLS
,Money::SEPARATORS
andMoney::DELIMITERS
. Deprecation target set to Money 3.2.0. (#issue/16) - Implemented
#has
forMoney
andMoney::Currency
. - Refactored test suite to conform to RSpec conventions.
- Moved project from FooBarWidget to RubyMoney
- Added Simone Carletti to list of authors.
- Fixed rounding error in
Numeric#to_money
. (#issue/15)
- Added
Money#abs
. - Added ability to pass a block to
VariableExchangeBank#new
or#exchange
, specifying a custom truncation method - Added optional
currency
argument toNumeric#to_money
. (#issue/11) - Added optional
currency
argument toString#to_money
. (#issue/11) - Use '¤' as the default currency symbol. (#issue/10)
- Updated
Currency#subunit_to_unit
documentation (it's an integer not a string). - Fixed issue when exchanging currencies with different
:subunit_to_unit
values. Numeric#to_money
now respects:subunit_to_unit
. (#issue/12)
- Use
:subunit_to_unit
in#to_s
,#to_f
and#format
. - Deprecated
Money#SEPARATORS
andMoney#DELIMITERS
.
- Updated
#exchange
to avoid floating point rounding errors. - Added
:separator
and:delimiter
toCurrency
- Updated the attributes of the Chilean Peso.
- Added
#currency_as_string
and#currency_as_string=
for easier integration with ActiveRecord/Rails
- Added
#div
,#divmod
,#modulo
,#%
and#remainder
toMoney
.
- Added
#eql?
toMoney
- Updated
Numeric#to_money
to work with all children ofNumeric
(i.e.BigDecimal
,Integer
,Fixnum
,Float
, etc)
- Version Bump due to compatibility changes with ActiveRecord. See conversation here for more information.
- Currency is now represented by a
Currency
Object instead of aString
.
- Can now divide two Money objects by one another using
#/
. - Can now convert a Money object to a float using
#to_f
. - Users can now specify Separators and Delimiters when using
#format
. - Support for Brazilian Real
Money.new(1_00, :BRL)
- Migrated to Jeweler