Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Commits on Feb 3, 2015
  1. @georgemillo
  2. @seongreen

    Merge pull request #490 from seongreen/up-version-to-6-5-1

    seongreen authored
    Up version to 6.5.1
  3. @seongreen

    Up vesion to 6.5.1

    seongreen authored
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.
  3. @georgemillo
  4. @georgemillo
Something went wrong with that request. Please try again.