weighable 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/weighable/version.rb +1 -1
- data/lib/weighable/weight.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b515e43906733fc0b27547dfbe6dc4d5eca9cc93
|
4
|
+
data.tar.gz: 3753374a62b002904362ffcf2aaffe739a55b06c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6efbf87f525c9ef359ccf2f8905ef4494708b864048c29640a065e8b899e637be76d1e51e3199f93e1812b2ea1498b394f63a544bcdfd45d66aaa9a823ed198d
|
7
|
+
data.tar.gz: b9db169b73fef0810675e1ff4d487f2e56d2d39c639c1d583f531e59ed0d6a2575810e0e17c048f763eba2a3af7f2a49cdcc2b5c50e4e000fd7358e5eb0a0356
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.6
|
data/lib/weighable/version.rb
CHANGED
data/lib/weighable/weight.rb
CHANGED
@@ -89,7 +89,7 @@ module Weighable
|
|
89
89
|
def self.parse(string)
|
90
90
|
value, unit = string.split(' ')
|
91
91
|
unit = ABBREVIATION_ALIASES[unit]
|
92
|
-
fail ArgumentError, 'invalid weight' if unit.nil?
|
92
|
+
fail ArgumentError, 'invalid weight' if unit.nil? || value.nil?
|
93
93
|
Weight.new(value, unit)
|
94
94
|
end
|
95
95
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weighable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trae Robrock
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.4.5.
|
164
|
+
rubygems_version: 2.4.5.2
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: Like BigDecimal, but for weight. Includes Rails integration.
|