All Versions
43
Latest Version
Avg Release Cycle
53 days
Latest Release
-
Changelog History
Page 4
Changelog History
Page 4
-
v6.5.1 Changes
- Fix format for BYR currency
-
v6.5.0 Changes
- Add method to round a given amount of money to the nearest possible value in cash (aka Swedish rounding).
- Fixed the subunit_to_unit values of the CLP and KRW currencies
- Add option for
disambiguate
symbols for formatting - Fixed the subunit_to_unit values of the VND currency
- Fix formatting of NGN - show symbol before amount
- Switch default and alternate symbols for RUB currency
- Fix symbol for TRY currency
- Add
Money.default_formatting_rules
hash, meant to define default rules for everytimeMoney#format
is called. They can be overwritten if provided on method call - Add support for the new official symbol for Russian Ruble (RUB) β Β«β½Β»
-
v6.2.1 Changes
- Ensure set is loaded
-
v6.2.0 Changes
- Fixes formatting error when both
thousands_separator
anddecimal_mark
was added to Money#format as options. - Add Money#to_i which returns the whole part of the value. i.e. Money.new(100, "USD").to_i # => 1
- Fix output on Ukrainian Hryvnia symbol in HTML.
- Add documentation about i18n in README.
- Update iso code, symbol, subunit for the new Turkmenistani manat (GH-181)
- Performance Improvements (1.99x faster on MRI, 1.85x on Rubinius, 41.4x faster on JRuby)
- Money can now add and subtract Fixnum 0
- Money#new uses Money.default_currency if currency arg is nil (GH-410)
- Fixed formatting of NOK, putting the symbol after numbers
- Fixed issue where rounded_infinite_precision formatting fails for some localized currencies (GH-422)
- Fixes formatting error when both
-
v6.1.1 Changes
- Remove lingering Monetize call
-
v6.1.0 Changes
- Remove deprecated methods.
- Fix issue with block form of rounding_mode.
-
v6.0.1 Changes
- Deprecated methods lists caller on print out for easier updating.
- Added support for Money::Currency#to_str and Money::Currency#to_sym
- Added ability to temporally change the rounding methond inside a given block
- Replaced parsing and core extensions with the monetize gem
-
v6.0.0 Changes
- π Fix BTC subunit
- π New option :sign_positive to add a + sign to positive numbers
- Only allow to multiply a money by a number (int, float)
- π Fix typo
- Wrap the currency symbol in a span if :html is specified in the rules
- β Added Money::Currency.all method
- π Allow combined comparison operator to handle zero values without rates
- β Added Money::Currency.unregister method
- π Works on Ruby 1.8.7
- β‘οΈ Update deps
- π Depreciate Money.parse
- Passing symbol: false when formatting 'JPY' currency in :ja locale will work as expected
- Divide now obeys the specified rounding mode
- β Add Money#round method. This is helpful when working in infinite_precision mode and would like to perform rounding at specific points in your work flow.
- In infinite precision mode, deserialized Money objects no longer return Float values from the
fractional
method. - π Changed
thousands_separator
for Swedish Krona from dot to blank space. - Allow mathematical operations with first argument being not an instance of Money (eg. 2 * money instead of money * 2).
- Money#dollars and Money#amount methods return numbers of type BigDecimal.
- Change Money.from_bigdecimal (and in that way .to_money too) to keep precision when using
Money.infinite_precision = true
- Add :rounded_infinite_precision option to .format
- π Changed the New Taiwan Dollar symbol position from after the amount to before the amount.
- Passing a Money instance to the Money constructor will obtain a new Money object with the same property values as the original
- β Add deprecation warning to comparators
- Add Money.disallow_currency_conversion! option
- π Allow to inherits from
Money
-
v5.1.1 Changes
- Added :sign_before_symbol option to format negative numbers as -Β£1 rather than Β£-1
- π Ensure BigDecimal.new always receives a string - compatibility fix for ruby-1.9.2-p320
- β‘οΈ Update Maldivian Currency to MVR and fix ή. to be ή
- β Add exponent to currency
- β Add find_numeric to find currencies by ISO 4217 numeric code.
- π Fixed regression where thousands separator was missing on certain currencies. (GH-245)
- Added :symbol_before_without_space option to add a space between currency symbol and amount.
-
v5.1.0 Changes
- π Fix currency assumption when parsing $ with a non-USD default currency.
- π Changed the Bulgarian lev symbol position from before the amount to after the amount.
- π Changed the symbol and html entity for INR. It is now "βΉ" instead of "β¨".
- β Added Money::Currency.analyze for determining potential currencies for a given string using powereful algorithms - will detect symbols, iso codes and names even if mixed with text.
- π Changed UGX symbol from 'Sh' to 'USh'.
- π Changed SYP symbol from "Β£ or Ω.Ψ³" to "Β£S". The previous symbols remain as alternates.
- π Changed RWF symbol from 'FR' to 'FRw'.
- π Changed RSD symbol from "din. or Π΄ΠΈΠ½." to 'Π Π‘Π'. The previous symbols remain as alternates.
- β Added MGA symbol 'Ar'
- β Added KGS symbol 'som'
- π Changed KES symbol from 'Sh' to 'KSh'
- β Added ETB symbol 'Br'
- π Changed EGP symbol from "Β£ or Ψ¬.Ω " to "Ψ¬.Ω "
- π Changed DJF symbol from 'Fr' to 'Fdj'
- π Changed CVE symbol from '$ or Esc' to '$'. 'Esc' remains as an alternate symbol.
- β Added BTN symbol 'Nu.'
- π Changed BAM symbol from 'KM or ΠΠ' to 'ΠΠ', the alternate (cyrillic script) remains as an alternate symbol.
- β Added alternate symbols for all currencies. For example, USD can be written as both '$' and 'US$', SEK can be 'Kr' or ':-', etc.
- π Renamed Money#cents to Money#fractional. Money#cents can still be used as a synonym and equivalent of Money#fractional.
- Added Money.new_with_amount and Money#amount. Money.new_with_dollars and Money#dollars remain as synonyms.
- Calling Bank::Base.instance doesn't make Bank::VariableExchange.instance return Bank::Base.instance anymore (semaperepelitsa)
- β‘οΈ Update Turkmenistan manat from TMM to TMT currency (GH-181). [Thanks @Exoth]
- π Moved ZWD Zimbabwean dollars to currency_bc.json, also added there ZWL, ZWN, and ZWR Zimbabwean dollars (GH-184).
- Switch to multi_json gem (GH-170)
- π Fix "warning: ambiguous first argument..." (GH-166)
- β‘οΈ Update dependencies to latest and greatest (GH-172)
- TravisBot is now watching Pull Request!!! (GH-171)
- Minor code cleaning
- β Remove subunit from South Korean won (KRW)
- π Fixed bug where bankers rounding wasn't being used everywhere.