Money v6.7.0 Release Notes
-
- Changed
Money#<=>
to returnnil
if the comparison is inappropriate. (#584) - Remove implicit conversion of values being compared. Only accept
Money
and subclasses ofMoney
for comparisons and raise TypeError otherwise. - When comparing fails due to
Money::Bank::UnknownRate
Money#<=>
will now returnnil
asComparable#==
will not rescue exceptions in the next release. - Fix
Currency
specs for#exponent
and#decimal_places
not making assertions. - Fix a couple of Ruby warnings found in specs.
- Fix
Money#-
,Money#+
arithmetics for Ruby 2.3+ : check for zero value without using eql? with a Fixnum. (#577) - Use
Money#decimal_mark
when formatting withrounded_infinite_precision
rule set totrue
. - Replaced meta-defined
thousands_separator
anddecimal_mark
methods with regular methods. (#579)
- Changed