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

Changelog History
Page 5

  • v5.0.0 Changes

    • ๐Ÿ›  Minor bugfix - incorrect use of character range resulted in botched results for Money::Parsing#extract_cents (GH-162)
    • ๐Ÿšš Money::Currency::TABLE removed. Use Money::Currency.register to add additional currencies (GH-143)
    • ๐Ÿ›  Fix rounding error in Numeric.to_money (GH-145)
    • ๐Ÿ‘ Allow on-the-fly calculation of decimal places if not known already (GH-146,GH-147,GH-148)
    • ๐Ÿšš Move Euro symbol ahead of amount (GH-151)
    • ๐Ÿ’… Changed settings for Polish currency (GH-152)
    • Fall back to symbol if there is no html_entity present (GH-153)
    • ๐Ÿ“œ Optionally Allow parsing of money values prefixed by symbols in key currencies (GH-155)
    • ๐Ÿ›  Fix bug where rates exported to a file from VariableExchange leave the File object open (GH-154)
    • โž• Added Money#positive? and Money#negative? methods (GH-157)
    • ๐Ÿ›  Fix format function output for custom currencies (GH-156)
    • ๐Ÿ›  Fix parsing of strings with 3 decimal digits (GH-158)
    • โšก๏ธ Updated development dependencies
    • ๐Ÿ’Ž Said goodbye to RubyForge
  • v4.0.2 Changes

    • Money.to_money now understands a currency option (GH-121)
    • โž• Added Money#-@ method to change object polarity (GH-122)
    • Added Money#symbol_or_iso_code utility method (GH-128)
    • ๐Ÿ“œ Money.parse now understands trailing - as negative inputs (GH-133)
    • Money::Currency.new now validates input to avoid memory leaks (GH-137)

    • ๐Ÿ‘ฎ Forced UTF-8 encoding on currency JSON (GH-117)

    • ๐Ÿ›  Fixed position of Philippine peso sign (GH-124)

    • ๐Ÿ›  Fixed position of Danish currency sign (GH-127)

  • v4.0.1 Changes

    • โž• Add missing config dir.

    Money 4.0.0

    ๐Ÿš€ 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.

    ๐Ÿ”‹ Features

    • 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)

    ๐Ÿ›  Bugfixes

    • ๐Ÿ’Ž 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)

    Money 3.7.1

    ๐Ÿ›  Bugfixes

    • โž• Add encoding indicator to top of Gemspec

    Money 3.7.0

    ๐Ÿ”‹ Features

    • โž• 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.

    Money 3.6.2

    ๐Ÿ”‹ Features

    • ๐Ÿ’Ž 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"

    Money 3.6.1

    ๐Ÿ›  Bugfixes

    • Floating point comparison needs to Epsilon aware (thanks Tobias Luetke)
    • reimplement fix for #issue/43, enable Marshal.(load/dump)

    Money 3.6.0

    ๐Ÿ”‹ Features

    • 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

    ๐Ÿ›  Bugfixes

    • Fixed issue with #format(no_cents: true) (thanks Romain & Julien)

    Money 3.5.5

    ๐Ÿ”‹ Features

    • 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 losing pennies (thanks Tobias Luetke)

    ๐Ÿ›  Bugfixes

    • Always store cents as an Integer (thanks Abhay Kumar)
    • Fixed TypeError in rate exchange (thanks Christian Billen)
    • Cleanup #parse (thanks Tom Lianza)

    Money 3.5.4

    ๐Ÿ”‹ Features

    • Added Currency#decimal_places.

    ๐Ÿ›  Bugfixes

    • Fixed error with Money#to_s error with negative amounts that are only cents.

    Money 3.5.3

    ๐Ÿ›  Bugfixes

    • Fixed an error in #to_s when cents is negative

    Money 3.5.2

    ๐Ÿ›  Bugfixes

    • Fixed an error in #to_s which appended extra 0s incorrectly

    Money 3.5.1

    ๐Ÿ›  Bugfixes

    • Removed erroneous require.

    Money 3.5.0

    ๐Ÿ”‹ Features

    • 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.

    ๐Ÿ›  Bugfixes

    • 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.

    Money 3.1.5

    ๐Ÿ”‹ Features

    • 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 of Money#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)

    ๐Ÿ›  Bugfixes

    • Downgraded required_rubygems_version to >= 1.3.6. (#issue/26)
    • Use BigDecimal when floating point calculations are needed.
    • Ruby 1.9.2 compatibility enhancements.

    Money 3.1.0

    ๐Ÿ”‹ Features

    • 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 and Money::DELIMITERS. Deprecation target set to Money 3.2.0. (#issue/16)
    • Implemented #has for Money and Money::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 from Money::Bank::VariableExchange to Money::Bank::Base. (#issue/18)
    • Added #setup to Money::Bank::Base. Called from #initialize. (#issue/19)
    • Added google_currency to list of Currency Exchange Implementations.
    • Added #export_rates to Money::Bank::VariableExchange. (#issue/21)
    • Added #import_rates to Money::Bank::VariableExchange. (#issue/21)
    • Removed dependency on Jeweler.
    • Replaced usage of hanna with yardoc.
    • Rewrote/reformatted all documentation.

    ๐Ÿ›  Bugfixes

    • 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 call spec. (#issue/23)

    Money 3.1.0.pre3

    ๐Ÿ”‹ Features

    • Added google_currency to list of Currency Exchange Implementations.
    • Added #export_rates to Money::Bank::VariableExchange. (#issue/21)
    • Added #import_rates to Money::Bank::VariableExchange. (#issue/21)

    ๐Ÿ›  Bugfixes

    • Updated :subunit_to_unit for HKD from 10 to 100. (#issue/20)

    Money 3.1.0.pre2

    ๐Ÿ”‹ Features

    • Moved @rounding_method from Money::Bank::VariableExchange to Money::Bank::Base. (#issue/18)
    • Added #setup to Money::Bank::Base. Called from #initialize. (#issue/19)

    ๐Ÿ›  Bugfixes

    • Fixed incorrect URLs in documentation. (#issue/17)

    Money 3.1.0.pre1

    ๐Ÿ”‹ Features

    • 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 and Money::DELIMITERS. Deprecation target set to Money 3.2.0. (#issue/16)
    • Implemented #has for Money and Money::Currency.
    • Refactored test suite to conform to RSpec conventions.
    • Moved project from FooBarWidget to RubyMoney
    • Added Simone Carletti to list of authors.

    ๐Ÿ›  Bugfixes

    • Fixed rounding error in Numeric#to_money. (#issue/15)

    Money 3.0.5

    ๐Ÿ”‹ Features

    • 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 to String#to_money. (#issue/11)
    • Use 'ยค' as the default currency symbol. (#issue/10)

    ๐Ÿ›  Bugfixes

    • 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)

    Money 3.0.4

    ๐Ÿ”‹ Features

    • Use :subunit_to_unit in #to_s, #to_f and #format.
    • Deprecated Money#SEPARATORS and Money#DELIMITERS.

    ๐Ÿ›  Bugfixes

    • Updated #exchange to avoid floating point rounding errors.
    • Added :separator and :delimiter to Currency
    • Updated the attributes of the Chilean Peso.

    Money 3.0.3

    ๐Ÿ”‹ Features

    • Added #currency_as_string and #currency_as_string= for easier integration with ActiveRecord/Rails

    Money 3.0.2

    ๐Ÿ”‹ Features

    • Added #div, #divmod, #modulo, #% and #remainder to Money.

    Money 3.0.1

    ๐Ÿ”‹ Features

    • Added #eql? to Money
    • Updated Numeric#to_money to work with all children of Numeric (i.e. BigDecimal, Integer, Fixnum, Float, etc)

    Money 3.0.0

    ๐Ÿ”‹ Features

    • Version Bump due to compatibility changes with ActiveRecord. See conversation here for more information.

    Money 2.3.0

    ๐Ÿ”‹ Features

    • Currency is now represented by a Currency Object instead of a String.

    Money 2.2.0

    ๐Ÿ”‹ Features

    • 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