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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab98e294f2fca107af47cf5b27c13eb5d1a00ed0
4
- data.tar.gz: aba32f7c95881c7cf21ae4c8f4b8e498cb83807e
3
+ metadata.gz: b515e43906733fc0b27547dfbe6dc4d5eca9cc93
4
+ data.tar.gz: 3753374a62b002904362ffcf2aaffe739a55b06c
5
5
  SHA512:
6
- metadata.gz: 22cfb1c699adfd3f7f08cc1b76674b64428420bdc60edc6b285159f6b4ffb0aee8e11647ed0e3bb379498c48ed0f61568de7d4639d92fcadb9546cd9c813bd8b
7
- data.tar.gz: 8d8190bd122ea598661cf626edc66a6df70819218563523b8842997ad7d694d5397b3b42f3b7585652a1844165e77532fc83ff2b11d7efdb21427d8a307e7132
6
+ metadata.gz: 6efbf87f525c9ef359ccf2f8905ef4494708b864048c29640a065e8b899e637be76d1e51e3199f93e1812b2ea1498b394f63a544bcdfd45d66aaa9a823ed198d
7
+ data.tar.gz: b9db169b73fef0810675e1ff4d487f2e56d2d39c639c1d583f531e59ed0d6a2575810e0e17c048f763eba2a3af7f2a49cdcc2b5c50e4e000fd7358e5eb0a0356
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.5
1
+ 2.2.6
@@ -1,3 +1,3 @@
1
1
  module Weighable
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.1'.freeze
3
3
  end
@@ -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.0
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: 2016-08-31 00:00:00.000000000 Z
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.1
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.