Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 27, 2015
  1. @semmons99

    v6.6.1

    semmons99 authored
  2. @nilbus

    Report the actual class in Money#inspect

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

    Support subclassing of Money by never instantiating it by name

    nilbus authored
    Scenario:
    
        class SpecialMoney < Money
          # ...
        end
    
        SpecialMoney.new(val1) + SpecialMoney.new(val2)
        # => 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 authored
    Refactor Currency#new method
Commits on Jul 15, 2015
  1. @semmons99

    v6.6.0

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

    Refactor Currency#new method

    antstorm authored
Commits on Jul 12, 2015
  1. @antstorm
Commits on Jul 1, 2015
  1. @takiy33

    Fix YARD warnings

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

    Removed unneccessary calls

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

    Revert 917369d.

    jimpo authored
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

    typos

    ismasan authored
  2. @ismasan

    Document custom stores.

    ismasan authored
  3. @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.
  4. @ismasan
  5. @ismasan

    Tested that RatesStore::Memory#transaction uses mutex.

    ismasan authored
    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 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.
    
    Todo:
    
    * 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 13, 2015
  1. @mikerodrigues
  2. @mikerodrigues
Commits on May 7, 2015
  1. @printercu
Commits on Apr 10, 2015
  1. @semmons99

    Merge pull request #499 from douglasmiller/master

    semmons99 authored
    Adding support for translating currency symbols
Commits on Mar 12, 2015
  1. @arthurkarganyan
Commits on Feb 24, 2015
  1. @douglasmiller
  2. @douglasmiller
  3. @douglasmiller
Commits on Feb 7, 2015
  1. @epidemian

    Add Money.from_amount

    epidemian authored
Commits on Feb 6, 2015
  1. @epidemian
  2. @epidemian
Something went wrong with that request. Please try again.