Permalink
Commits on Jun 23, 2011
  1. clean up a test

    olbrich committed Jun 23, 2011
  2. rational definitions for inches, feet and pounds. This helps with rou…

    …nd off errors and fixes #16
    olbrich committed Jun 23, 2011
  3. refactor elimination of terms during conversion so that common factor…

    …s are eliminated before multiplying, which should reduce times when factors are converted to floats
    olbrich committed Jun 23, 2011
  4. Version bump to 1.3.1

    olbrich committed Jun 23, 2011
Commits on Apr 30, 2011
  1. update wayward test.

    Rubinius is still failing some tests.
    olbrich committed Apr 30, 2011
Commits on Apr 25, 2011
Commits on Apr 24, 2011
  1. improve support for running code coverage.

    Add specs to improve code coverage.
    olbrich committed Apr 24, 2011
  2. exlude .* files from gem

    olbrich committed Apr 24, 2011
Commits on Apr 23, 2011
  1. other minor changes

    olbrich committed Apr 23, 2011
  2. update VERSION

    olbrich committed Apr 23, 2011
  3. some changes to adjust for jruby

    olbrich committed Apr 23, 2011
  4. update parser to directly perform the conversion to a complex for rub…

    …ies that don't define it on string (like 1.8)
    olbrich committed Apr 23, 2011
  5. move stuff around, tweak regex used to recognize numbers so that it w…

    …ill handle units with only one character right.
    olbrich committed Apr 23, 2011
  6. add #pred to be consistent with #succ

    add specs
    olbrich committed Apr 23, 2011
Commits on Apr 22, 2011
  1. add specs for inverse

    minor error message updates and internal re-organization
    olbrich committed Apr 22, 2011
  2. add specs for power and root

    olbrich committed Apr 22, 2011
  3. * improve regex for Rational numbers used during parsing so that it c…

    …orrectly captures signs,
    
    * some internal cleanup for style.
    * add a mod operator
    * throw an exception when raising a unit to a complex power.  This may be doable, but it's just not implemented at this point
    * temperature conversions use rational numbers when possible for improved accuracy
    * add specs for temperature conversions and exponentiation
    * change specs for Complex... in ruby < 1.9 complex numbers are comparable, in 1.9+ they are not
    olbrich committed Apr 22, 2011
  4. add support to fixnum so that expressions like 10 / Unit("5 m") work …

    …in Ruby 1.8 and rubinius
    olbrich committed Apr 22, 2011
Commits on Apr 21, 2011
Commits on Apr 18, 2011
  1. *consolidate regex used for detecting temperatures and degrees

    *fix bug with caching that sometimes tripped up units with rational scalars
    olbrich committed Apr 18, 2011
  2. add more math specs

    olbrich committed Apr 18, 2011
  3. add specs around equivalence, equality, and comparisons.

    One significant change is that comparing incompatible types will return false instead of raising an exception.
    olbrich committed Apr 18, 2011
Commits on Apr 17, 2011
  1. make scalars for units integers when possible,

    update unit definitions to use rationals when possible
    update specs
    
    fixes #7,#9,#12
    olbrich committed Apr 17, 2011
Commits on Apr 16, 2011
  1. add specs related to Numerics

    olbrich committed Apr 16, 2011