weighable 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/weighable/version.rb +1 -1
- data/lib/weighable/weight.rb +8 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a155dbbd10cee4a21cc13ebc1a5a969300769ad4
|
4
|
+
data.tar.gz: 4f97a0edd85e49594f10e5943ecf33ee24bc0205
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceeea2e12b3fe8a059ccdbc5c6b0b4f2aff15507c000c9ebf7c6e223682f95929b4700d47d009313fab67b0b5d7c61cf07ca92fdd3c10b3398283d62d15ff040
|
7
|
+
data.tar.gz: 80ce64586b1c5ef60d9a8904676e1e52e90b0e7f755d5d8a8d600b8686cdc690fc53c51f752911f44118270f836187f3a963c952aba93ef4576321897041c1bb
|
data/lib/weighable/version.rb
CHANGED
data/lib/weighable/weight.rb
CHANGED
@@ -23,13 +23,14 @@ module Weighable
|
|
23
23
|
}.freeze
|
24
24
|
|
25
25
|
ABBREVIATION_ALIASES = {
|
26
|
-
'g'
|
27
|
-
'oz'
|
28
|
-
'lb'
|
29
|
-
'mg'
|
30
|
-
'kg'
|
31
|
-
'ea'
|
32
|
-
|
26
|
+
'g' => :gram,
|
27
|
+
'oz' => :ounce,
|
28
|
+
'lb' => :pound,
|
29
|
+
'mg' => :milligram,
|
30
|
+
'kg' => :kilogram,
|
31
|
+
'ea' => :unit,
|
32
|
+
'each' => :unit,
|
33
|
+
nil => :unit
|
33
34
|
}.freeze
|
34
35
|
|
35
36
|
GRAMS_PER_OUNCE = BigDecimal.new('28.34952')
|
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.8.
|
4
|
+
version: 0.8.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: 2017-09-
|
11
|
+
date: 2017-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|