ruby-units 2.3.0 → 2.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 1a7f0ef586984958760da336474f343c66b598b063991b55c7b1cbedda49d630
4
- data.tar.gz: 71831000f4bcdd187ea834ca7e227c40eb2e143f8ccdddef4c0b3e4c0d3c385d
2
+ SHA1:
3
+ metadata.gz: 19bfae0dcf246cead7fffec58cbe413c2fdbd01e
4
+ data.tar.gz: 8fb923f68a8ba4134705703c7e77ecfe168f77fd
5
5
  SHA512:
6
- metadata.gz: bdab6e591cc0aaa668382d49d9e8a01846da31f46f2a3330f66a7b66445b5f649287d21943b1bd75648de3cce44b64e7f06070e00a070f50e8f1794451675511
7
- data.tar.gz: 55723037f57f90d181643792f47452a8bd4c5150ae6ddc4038d998a4f30b9331aa73e331d3fc090776fdf3a0424032975cd0a5fb56c85d289b545f0c2ff682af
6
+ metadata.gz: a8251aeeee0cdcb8231f7a465cf08ee551bb966a66586d4fe65d9f53190ab1a6496920e917a250d067a1418f121f680ec2886b451d1b3da0bf26f4894fba739d
7
+ data.tar.gz: 23a5d68881dd1a8df5664a4cc351b924fee950b085c9b8ab73bc796f1a473b34f3178f58533c5b7b56a787bfd037fc494d1987315bd47509d4c96ddde4eb7dcc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.3.1
@@ -847,7 +847,7 @@ module RubyUnits
847
847
  RubyUnits::Unit.new(scalar: (other.scalar + convert_to(other.temperature_scale).scalar), numerator: other.numerator, denominator: other.denominator, signature: other.signature)
848
848
  end
849
849
  else
850
- RubyUnits::Unit.new(scalar: (base_scalar + other.base_scalar), numerator: base.numerator, denominator: base.denominator, signature: @signature).to(units)
850
+ RubyUnits::Unit.new(scalar: (base_scalar + other.base_scalar), numerator: base.numerator, denominator: base.denominator, signature: @signature).convert_to(self)
851
851
  end
852
852
  else
853
853
  raise ArgumentError, "Incompatible Units ('#{self}' not compatible with '#{other}')"
@@ -883,7 +883,7 @@ module RubyUnits
883
883
  elsif other.temperature?
884
884
  raise ArgumentError, 'Cannot subtract a temperature from a differential degree unit'
885
885
  else
886
- RubyUnits::Unit.new(scalar: (base_scalar - other.base_scalar), numerator: base.numerator, denominator: base.denominator, signature: @signature).to(units)
886
+ RubyUnits::Unit.new(scalar: (base_scalar - other.base_scalar), numerator: base.numerator, denominator: base.denominator, signature: @signature).convert_to(self)
887
887
  end
888
888
  else
889
889
  raise ArgumentError, "Incompatible Units ('#{self}' not compatible with '#{other}')"
@@ -2,20 +2,19 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: ruby-units 2.3.0 ruby lib
5
+ # stub: ruby-units 2.3.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "ruby-units".freeze
9
- s.version = "2.3.0"
9
+ s.version = "2.3.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Kevin Olbrich, Ph.D.".freeze]
14
- s.date = "2018-03-06"
14
+ s.date = "2018-09-26"
15
15
  s.description = "Provides classes and methods to perform unit math and conversions".freeze
16
16
  s.email = ["kevin.olbrich+ruby_units@gmail.com".freeze]
17
17
  s.extra_rdoc_files = [
18
- "CHANGELOG.txt",
19
18
  "LICENSE.txt",
20
19
  "README.md"
21
20
  ]
@@ -46,7 +45,7 @@ Gem::Specification.new do |s|
46
45
  ]
47
46
  s.homepage = "https://github.com/olbrich/ruby-units".freeze
48
47
  s.licenses = ["MIT".freeze]
49
- s.rubygems_version = "2.7.4".freeze
48
+ s.rubygems_version = "2.6.14".freeze
50
49
  s.summary = "A class that performs unit conversions and unit math".freeze
51
50
 
52
51
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-units
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Olbrich, Ph.D.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-06 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,7 +128,6 @@ email:
128
128
  executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files:
131
- - CHANGELOG.txt
132
131
  - LICENSE.txt
133
132
  - README.md
134
133
  files:
@@ -175,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
174
  version: '0'
176
175
  requirements: []
177
176
  rubyforge_project:
178
- rubygems_version: 2.7.4
177
+ rubygems_version: 2.6.14
179
178
  signing_key:
180
179
  specification_version: 4
181
180
  summary: A class that performs unit conversions and unit math