byteme 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/byteme/convert.rb +1 -1
- data/lib/byteme/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 475d0da57ff8746f2152283fb396e9115550fcb1
|
4
|
+
data.tar.gz: ef5473c3b515e1dc09454bcabe7ef2f6a0159d7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 487a1cd190b7dfe798d09e0ca8bc1e82e67ee2fa5f6f6c8fc49776bb96d42fa10ff3f37a402efd1d230c14aef7e1aee7d749c280659836a27bf8c1321222f1c2
|
7
|
+
data.tar.gz: 8d5efbbb3b98f586d5dff4400f3a30260590a6ddaaf5c2dc1cc95abc24d438f8b4fc9e4708b57775a97b803591746d3ab563533cb457ee5708ad43ca66f4776f
|
data/lib/byteme/convert.rb
CHANGED
@@ -34,7 +34,7 @@ module Convert
|
|
34
34
|
if Parse.get
|
35
35
|
output = ( "%.5f" % raw_value ).sub(/\.?0*$/, '')
|
36
36
|
else
|
37
|
-
output = raw_value.to_s.sub(
|
37
|
+
output = raw_value.to_s.sub(/\.0*$/, '')
|
38
38
|
end
|
39
39
|
output_format = FORMULAS[key.to_sym][1]
|
40
40
|
rows.push([output_format, output])
|
data/lib/byteme/version.rb
CHANGED