percentable 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percentable/percent.rb +2 -2
- data/lib/percentable/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: 5f62e2dfea488d68900ce02255064e9867dbfe31
|
4
|
+
data.tar.gz: 192c0d35012684af94024a3c38259506b250cf2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f3b813b2305202c9976d14756a5788cdfc8bdfee4ce5fe336cbfdeba791409c52f25409f49a1ac65ae772bf782a2a78625d1769a5fecf3d5a0d04b0d47ef91
|
7
|
+
data.tar.gz: 71570d45df1f1c58d5701419546fed51bb5e8cf9c4f6deda17a08c8c500e0f0c89a0274fbe2d3d7e4fdb9d4dfdcda881d42d640a2bb0808383b3528bde7b70ab
|
data/lib/percentable/percent.rb
CHANGED
@@ -50,8 +50,8 @@ module Percentable
|
|
50
50
|
case other
|
51
51
|
when Percent
|
52
52
|
self.class.new(value.public_send(operator, other.value))
|
53
|
-
|
54
|
-
self.class.new(value.public_send(operator, other))
|
53
|
+
else
|
54
|
+
self.class.new(value.public_send(operator, other.to_f))
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
data/lib/percentable/version.rb
CHANGED