Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on May 21, 2015
  1. @ismasan

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

    ismasan authored
    …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.
  2. @ismasan

    Tested that RatesStore::Memory#transaction uses mutex.

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

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

    ismasan authored
    …::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 authored
    A special circumstance for #== to recognize that  the value of 0 money
    will also equal 0 in any other currency.
Commits on May 7, 2015
  1. @semmons99

    Merge pull request #510 from printercu/patch-1

    semmons99 authored
    Less objects allocations in .from_amount
  2. @printercu
  3. @JuanitoFatas
Commits on Apr 21, 2015
  1. Fix the subunit_to_unit values of the CLP

    Filipe Goncalves authored
Commits on Feb 24, 2015
  1. @douglasmiller
  2. @douglasmiller
Commits on Feb 7, 2015
  1. @epidemian

    DRY-up specs by using an :infinite_precision tag

    epidemian authored
    Needed to update to RSpec 3.2 to be able to use a shared_context on single examples.
  2. @epidemian

    Remove Array.wrap definition from spec_helper

    epidemian authored
    Kernel#Array works just as good :D
  3. @epidemian

    Add Money.from_amount

    epidemian authored
Commits on Feb 3, 2015
  1. @georgemillo

    wrapping spec files in the 'Money' class/modules

    georgemillo authored
    This way we don't have to qualify every reference to 'Currency' etc
    by prefacing it with 'Money'
  2. @georgemillo
Commits on Feb 1, 2015
  1. @georgemillo
  2. @georgemillo

    `Currency#<=>` sorts alphabetically by `id` if the `priority`s are th…

    georgemillo authored
    …e same, and no longer raises an error if one of the priorities is missing.
Commits on Jan 31, 2015
  1. @georgemillo

    enhancements to Money::Currency.unregister.

    georgemillo authored
    1) It can take an ISO code argument in addition to a Hash
    2) It returns  if the given currency previously existed, and
       if it didn't.
    3) It has specs!
Commits on Jan 15, 2015
  1. @georgemillo
Commits on Jan 13, 2015
  1. @semmons99

    Merge pull request #477 from RubyMoney/constructors

    semmons99 authored
    Extracting 'constructor' functions to a module, adding aliases and GBP
  2. @georgemillo

    more helpful error message when trying to register

    georgemillo authored
    a currency without an iso_code.
    Fixing README: iso_code isn't optional
  3. @georgemillo
  4. @georgemillo

    DRYing currency_spec

    georgemillo authored
  5. @georgemillo

    adding methods for GBP

    georgemillo authored
  6. @georgemillo
  7. @georgemillo

    aliasing constructor methods to their 3-letter iso codes.

    georgemillo authored
    I had to move the methods inside the self << class block to get access to
  8. @georgemillo

    wrapping negative numbers in parentheses

    georgemillo authored
    Without them, I was getting an annoying warning in Vim:
    'ambiguous first argument; put parentheses or a space even after `-' operator'
Commits on Nov 10, 2014
  1. @clowder

    Ensure [UnknownMoney::Currency] is a subclass of argument error.

    clowder authored
    This means that we now have an easy way to catch all money & currency
    parsing errors (via [ArgumentError]).
Commits on Nov 3, 2014
  1. @newstler

    Updated Russian Ruble as it has now official symbol.

    newstler authored
    Update currency_iso.json
    Update formatting_spec.rb
    Update AUTHORS
    Added myself and sorted a little :)
Commits on Oct 25, 2014
  1. @mateusg
Commits on Oct 17, 2014
  1. @ggilder

    Switch default and alternate symbols for RUB

    ggilder authored
    According to [Wikipedia][1] and [XE][2], the "руб" symbol is more
    commonly used. Also added the "₽" symbol as an alternate, because it was
    only added to Unicode this year and probably isn't widely supported yet.
Commits on Oct 10, 2014
  1. @ggilder

    Change VND subunit_to_unit to 1

    ggilder authored
    According to [Wikipedia][1], the Vietnamese dong has not had subunits
    (hào or xu) since roughly 1985.
Commits on Sep 22, 2014
  1. @edwinv
Commits on Sep 16, 2014
Commits on Sep 10, 2014
  1. @tweymuth
Something went wrong with that request. Please try again.