ruby-units 1.4.3 → 1.4.4
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.
- data/CHANGELOG.txt +6 -0
- data/README.md +19 -6
- data/VERSION +1 -1
- data/lib/ruby-units.rb +8 -13
- data/lib/ruby_units.rb +8 -13
- data/lib/ruby_units/array.rb +4 -4
- data/lib/ruby_units/cache.rb +2 -2
- data/lib/ruby_units/definition.rb +6 -6
- data/lib/ruby_units/fixnum.rb +2 -2
- data/lib/ruby_units/math.rb +12 -12
- data/lib/ruby_units/namespaced.rb +16 -0
- data/lib/ruby_units/numeric.rb +3 -3
- data/lib/ruby_units/string.rb +5 -5
- data/lib/ruby_units/time.rb +9 -8
- data/lib/ruby_units/unit.rb +1408 -1385
- data/lib/ruby_units/unit_definitions.rb +3 -3
- data/lib/ruby_units/unit_definitions/base.rb +16 -16
- data/lib/ruby_units/unit_definitions/prefix.rb +2 -2
- data/lib/ruby_units/unit_definitions/standard.rb +268 -268
- data/lib/ruby_units/version.rb +7 -5
- data/ruby-units.gemspec +3 -2
- metadata +4 -3
    
        data/lib/ruby_units/version.rb
    CHANGED
    
    | @@ -1,6 +1,8 @@ | |
| 1 | 
            -
             | 
| 2 | 
            -
               | 
| 3 | 
            -
             | 
| 4 | 
            -
                 | 
| 1 | 
            +
            module RubyUnits
         | 
| 2 | 
            +
              class Unit < Numeric
         | 
| 3 | 
            +
                # Pull the version number from the VERSION file
         | 
| 4 | 
            +
                module Version
         | 
| 5 | 
            +
                  STRING = File.read(File.dirname(__FILE__) + "/../../VERSION")
         | 
| 6 | 
            +
                end
         | 
| 5 7 | 
             
              end
         | 
| 6 | 
            -
            end
         | 
| 8 | 
            +
            end
         | 
    
        data/ruby-units.gemspec
    CHANGED
    
    | @@ -5,11 +5,11 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = "ruby-units"
         | 
| 8 | 
            -
              s.version = "1.4. | 
| 8 | 
            +
              s.version = "1.4.4"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["Kevin Olbrich, Ph.D."]
         | 
| 12 | 
            -
              s.date = "2013- | 
| 12 | 
            +
              s.date = "2013-07-19"
         | 
| 13 13 | 
             
              s.description = "Provides classes and methods to perform unit math and conversions"
         | 
| 14 14 | 
             
              s.email = ["kevin.olbrich+ruby_units@gmail.com"]
         | 
| 15 15 | 
             
              s.extra_rdoc_files = [
         | 
| @@ -32,6 +32,7 @@ Gem::Specification.new do |s| | |
| 32 32 | 
             
                "lib/ruby_units/definition.rb",
         | 
| 33 33 | 
             
                "lib/ruby_units/fixnum.rb",
         | 
| 34 34 | 
             
                "lib/ruby_units/math.rb",
         | 
| 35 | 
            +
                "lib/ruby_units/namespaced.rb",
         | 
| 35 36 | 
             
                "lib/ruby_units/numeric.rb",
         | 
| 36 37 | 
             
                "lib/ruby_units/object.rb",
         | 
| 37 38 | 
             
                "lib/ruby_units/string.rb",
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: ruby-units
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.4. | 
| 4 | 
            +
              version: 1.4.4
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2013- | 
| 12 | 
            +
            date: 2013-07-19 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: bundler
         | 
| @@ -67,6 +67,7 @@ files: | |
| 67 67 | 
             
            - lib/ruby_units/definition.rb
         | 
| 68 68 | 
             
            - lib/ruby_units/fixnum.rb
         | 
| 69 69 | 
             
            - lib/ruby_units/math.rb
         | 
| 70 | 
            +
            - lib/ruby_units/namespaced.rb
         | 
| 70 71 | 
             
            - lib/ruby_units/numeric.rb
         | 
| 71 72 | 
             
            - lib/ruby_units/object.rb
         | 
| 72 73 | 
             
            - lib/ruby_units/string.rb
         | 
| @@ -130,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 130 131 | 
             
                  version: '0'
         | 
| 131 132 | 
             
                  segments:
         | 
| 132 133 | 
             
                  - 0
         | 
| 133 | 
            -
                  hash:  | 
| 134 | 
            +
                  hash: 3933693209796499850
         | 
| 134 135 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 135 136 | 
             
              none: false
         | 
| 136 137 | 
             
              requirements:
         |