Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Nov 9, 2015
  1. @sime

    :drop_trailing_zeros option

    sime committed
Commits on Oct 12, 2015
  1. @focusshifter
  2. @focusshifter
Commits on Sep 29, 2015
  1. @semmons99

    Merge pull request #535 from antstorm/fix-coerce

    semmons99 committed
    Ensure coerce only applies to multiplication
Commits on Sep 2, 2015
  1. @phlegx
Commits on Sep 1, 2015
  1. @phlegx
Commits on Aug 29, 2015
  1. @createdbypete

    Formatting uses #decimal_mark on Money not Currency

    createdbypete committed
    - Currency#decimal_mark is fixed for the currency and ignores i18n
      delimiter and separator of the application
Commits on Aug 27, 2015
  1. @createdbypete

    Return nil when currency cannot be converted for comparison

    createdbypete committed
    - In the next Ruby release #== will no longer rescue exceptions and
      expects #<=> to return nil if the comparison is inappropriate
    - Comparable#== will not rescue exceptions of #<=> in the next
  2. @createdbypete

    Do not attempt to convert comparison value

    createdbypete committed
    - When used with Monetize gem Money can act strangely when compared to
      non Money objects due to the conversion with #to_money
Commits on Aug 15, 2015
  1. @takiy33

    Fix typo

    takiy33 committed
Commits on Jul 27, 2015
  1. @semmons99


    semmons99 committed
  2. @nilbus

    Report the actual class in Money#inspect

    nilbus committed
    Currency#inspect is also defined but already does this.
  3. @nilbus

    Support subclassing of Money by never instantiating it by name

    nilbus committed
        class SpecialMoney < Money
          # ...
        # => returns Money instead of SpecialMoney, thus losing the
        # SpecialMoney extensions.
Commits on Jul 16, 2015
  1. @semmons99

    Merge pull request #538 from antstorm/refactor-currency-new

    semmons99 committed
    Refactor Currency#new method
Commits on Jul 15, 2015
  1. @semmons99


    semmons99 committed
Commits on Jul 14, 2015
  1. @antstorm

    Refactor Currency#new method

    antstorm committed
Commits on Jul 12, 2015
  1. @antstorm
Commits on Jul 6, 2015
  1. @semmons99 @antstorm
Commits on Jul 1, 2015
  1. @takiy33

    Fix YARD warnings

    takiy33 committed
Commits on Jun 18, 2015
  1. @Funfun
  2. @Funfun
  3. @Funfun

    Removed unneccessary calls

    Funfun committed
  4. @Funfun
  5. @Funfun
Commits on Jun 17, 2015
  1. @jimpo

    Revert 917369d.

    jimpo committed
Commits on Jun 16, 2015
  1. @jimpo
Commits on Jun 4, 2015
  1. @printercu
Commits on May 24, 2015
  1. @ismasan
Commits on May 21, 2015
  1. @ismasan


    ismasan committed
  2. @ismasan

    Document custom stores.

    ismasan committed
  3. @ismasan

    Simplified RatesStore API and decoupled RateStore::Memory’s internal …

    ismasan committed
    …index from bank’s export/import.
    * RatesStore#each_rate returns Enumerator used by Bank’s export_data method.
    * RateStore::Memory mutex flag is passed on initialisation, not on every call to #add_rate and #get_rate. Defaults to thread-safe.
    * RateStore::Memory and Bank::VariableExchange happen to index / export data with “_TO_” separator, but these two clases should not about eachother’s internal serialisation.
  4. @ismasan
  5. @ismasan

    Tested that RatesStore::Memory#transaction uses mutex.

    ismasan committed
    Bank::VariableExchange doesn’t know anything about mutexes (that’s the Store’s job).
  6. @ismasan

    Move exchange rates storage from Bank::VariableExchange to RatesStore…

    ismasan committed
    …::Memory. VariableExchange uses that store by default.
    This allows us to swap the storage mechanism (i.e. Redis, memcache, database, file, etc) without losing the behaviour in VariableExchange, or having to subclass or re-implement it. Composition > Inheritance.
    RatesStore::Memory only deals in currency iso codes: type checking and coercing stops at the bank.
    Removed testing of private #rate_key_for method.
    * do not test instance variables! (@mutex). Find a better way to test thread-safety.
    * move thread-safety tests to store tests. Bank doesn’t need to know about it.
Commits on May 17, 2015
  1. @crftr

    0 in one currency should equal 0 in any other currency

    crftr committed
    A special circumstance for #== to recognize that  the value of 0 money
    will also equal 0 in any other currency.
Something went wrong with that request. Please try again.