All Versions
43
Latest Version
Avg Release Cycle
53 days
Latest Release
-

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 everytime Money#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 and decimal_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)
  • 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.