Skip to content
Commits on Jan 1, 2014
  1. make counting and unitless units incompatible

    Kevin Olbrich committed Jan 1, 2014
  2. add 'counting?' check for units, related to issue #67

    Kevin Olbrich committed Jan 1, 2014
  3. add specs and fix check... unitless? is not the right check for count…

    …ing units
    Kevin Olbrich committed Jan 1, 2014
  4. unitless units are only equivalent if they use the same unit name. Th…

    …is prevents unitless units from incorrectly being detected as equivalent to unrelated units.
    Kevin Olbrich committed Jan 1, 2014
  5. Merge pull request #94 from olbrich/83-bug-mixed-fractions

    83 bug mixed fractions
    committed Jan 1, 2014
  6. add better parsing for rationals. Now allows for rationals to be expr…

    …essed as '-6 1/2'
    Kevin Olbrich committed Jan 1, 2014
  7. add pry

    Kevin Olbrich committed Jan 1, 2014
  8. Merge pull request #92 from eostrom/round-complex-units

    Fixed round/ceil/floor for units with >2 factors.  This looks good.  Thanks for contributing!
    committed Jan 1, 2014
Commits on Dec 30, 2013
  1. Merge pull request #93 from eostrom/add-tons-alias

    Added plural aliases to short-ton unit.
    committed Dec 30, 2013
Commits on Dec 29, 2013
  1. @eostrom

    Added plural aliases to short-ton unit.

    Also reordered the existing aliases abbreviation-first, because
    that's the kind of guy I am.
    eostrom committed Dec 28, 2013
Commits on Dec 28, 2013
  1. @eostrom

    Fixed round/ceil/floor for units with >2 factors.

    E.g., m^3 or kg*m^2.
    
    Fixes #91.
    eostrom committed Dec 28, 2013
Commits on Nov 27, 2013
  1. make some exception messages more consistent and provide more informa…

    …tion. Fixes #65
    Kevin Olbrich committed Nov 27, 2013
  2. Merge branch 'master' of github.com:olbrich/ruby-units

    Kevin Olbrich committed Nov 27, 2013
  3. allow passing optional ms parameter to Time.at. Fixes #79 and #80

    Kevin Olbrich committed Nov 27, 2013
  4. Merge pull request #86 from mutewinter/patch-1

    Update Namespace Require Examples
    committed Nov 27, 2013
  5. Merge pull request #89 from JoeStanton/string-coercion

    Test for zero? before using to fix Unit <=> string comparisons
    committed Nov 27, 2013
  6. Merge pull request #88 from JoeStanton/deprecations

    Replace deprecated #stub! -> #stub
    committed Nov 27, 2013
  7. @JoeStanton
  8. @JoeStanton
Commits on Nov 26, 2013
  1. @JoeStanton
  2. Merge pull request #85 from rage-shadowman/issue-84-fix

    Fixed point and pica definitions
    committed Nov 25, 2013
  3. Swapped pica and point into correct init order

    Ralph Jennings committed Nov 25, 2013
Commits on Nov 25, 2013
  1. @mutewinter

    Update Namespaced Required Examples

    The previous example did not work.
    
    Tested with Ruby 1.9.3-p448 and Ruby 2.0.0-p247
    mutewinter committed Nov 25, 2013
Commits on Nov 22, 2013
  1. Fixed point and pica definitions

    Ralph Jennings committed Nov 22, 2013
Commits on Sep 20, 2013
  1. Merge pull request #82 from gentooboontoo/fix-negative-no-space

    Fix negative units without spaces
    committed Sep 20, 2013
Commits on Sep 12, 2013
  1. @gentooboontoo
Commits on Sep 3, 2013
  1. Merge pull request #81 from badgerious/best_prefix_with_0_scalar

    Return base unit from #best_prefix if scalar is 0.
    committed Sep 2, 2013
Commits on Sep 1, 2013
  1. @badgerious

    Return base unit from #best_prefix if scalar is 0

    Without this, #best_prefix will raise FloatDomainError while trying to
    call #floor on '-Infinity' if the scalar is 0.
    badgerious committed Sep 1, 2013
Commits on Aug 13, 2013
  1. @plantoeat
Commits on Jul 19, 2013
  1. Regenerate gemspec for version 1.4.4

    Kevin Olbrich committed Jul 19, 2013
  2. update changelog

    Kevin Olbrich committed Jul 19, 2013
  3. update documentation

    Kevin Olbrich committed Jul 19, 2013
  4. add specs

    Kevin Olbrich committed Jul 19, 2013
Something went wrong with that request. Please try again.