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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3fee0e0d95938db84e9dbe97c3fa4532129043c
4
- data.tar.gz: 4d6121fc8e91db199265e7e055d89d01187aad21
3
+ metadata.gz: 5f62e2dfea488d68900ce02255064e9867dbfe31
4
+ data.tar.gz: 192c0d35012684af94024a3c38259506b250cf2f
5
5
  SHA512:
6
- metadata.gz: bc74c8df82a1cfbf6803a54ae6cb52315cf88526c69a7aeb82372e8af4302dba2c78bc473aad58e048a4d8675b07045b68d1806801713fc7ca6d6aeac6e03162
7
- data.tar.gz: 7845adf7ce9cd5a03c3d1943ac76cfdc95f21410443988b271110179af52d4966f98c798baa60163106c3cfa7e563079655b8888f3b23aab417f7998e6b19f17
6
+ metadata.gz: b3f3b813b2305202c9976d14756a5788cdfc8bdfee4ce5fe336cbfdeba791409c52f25409f49a1ac65ae772bf782a2a78625d1769a5fecf3d5a0d04b0d47ef91
7
+ data.tar.gz: 71570d45df1f1c58d5701419546fed51bb5e8cf9c4f6deda17a08c8c500e0f0c89a0274fbe2d3d7e4fdb9d4dfdcda881d42d640a2bb0808383b3528bde7b70ab
@@ -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
- when Numeric
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
@@ -1,3 +1,3 @@
1
1
  module Percentable
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percentable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Roberts