ruby-units 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/CHANGELOG.txt +3 -1
  2. data/README.txt +3 -1
  3. data/lib/ruby-units.rb +2 -2
  4. metadata +1 -1
data/CHANGELOG.txt CHANGED
@@ -154,4 +154,6 @@ Change Log for Ruby-units
154
154
  "HH:MM:SS:usec"
155
155
 
156
156
  2006-12-15 0.3.8 * Any object that supports a 'to_unit' method will now be
157
- automatically coerced to a unit during math operations.
157
+ automatically coerced to a unit during math operations.
158
+
159
+ 2006-12-15 0.3.9 * forgot to increment the version in the gem file..ooops.
data/README.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  =Ruby Units
2
2
 
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
 
5
5
  Kevin C. Olbrich, Ph.D.
6
6
  kevin.olbrich@gmail.com
@@ -83,6 +83,8 @@ Units can be converted to other units in a couple of ways.
83
83
  unit1 + unit2 >> "ft" # converts result of math to 'ft'
84
84
  (unit1 + unit2).to('ft') # converts result to 'ft'
85
85
 
86
+ Any object that defines a 'to_unit' method will be automatically coerced to a unit during calculations.
87
+
86
88
  ==Text Output
87
89
  Units will display themselves nicely based on the preferred abbreviation for the units and prefixes.
88
90
  Since Unit implements a Unit#to_s, all that is needed in most cases is:
data/lib/ruby-units.rb CHANGED
@@ -2,7 +2,7 @@ require 'mathn'
2
2
  require 'rational'
3
3
  require 'date'
4
4
  require 'parsedate'
5
- # = Ruby Units 0.3.8
5
+ # = Ruby Units 0.3.9
6
6
  #
7
7
  # Copyright 2006 by Kevin C. Olbrich, Ph.D.
8
8
  #
@@ -40,7 +40,7 @@ require 'parsedate'
40
40
  class Unit < Numeric
41
41
  require 'units'
42
42
  # pre-generate hashes from unit definitions for performance.
43
- VERSION = '0.3.8'
43
+ VERSION = '0.3.9'
44
44
  @@USER_DEFINITIONS = {}
45
45
  @@PREFIX_VALUES = {}
46
46
  @@PREFIX_MAP = {}
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ruby-units
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.8
6
+ version: 0.3.9
7
7
  date: 2006-12-15 00:00:00 -05:00
8
8
  summary: A model that performs unit conversions and unit math
9
9
  require_paths: