operation 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be82414fd2137ed8b06ee7f96919261d7edee2a3
4
- data.tar.gz: 41dc68a32b8132991005ac074c0c1bc64bc82240
3
+ metadata.gz: 240fa15d0de09d2362be3f5dc553378fdf3ef7d6
4
+ data.tar.gz: 8157c76386132a5ada8bdfe1b60d51238859f297
5
5
  SHA512:
6
- metadata.gz: 7ae55dcfe4d13a682328ba2e2eb01b799dd9393a9aa36260a1bd0663cb3933ba30662e202cf5ffe76e1863cebada6dcc9d466256cd2f73e1b5628524252708af
7
- data.tar.gz: 9722629bcda72c73ebf845994b6b9d4898316c1bdd4f1eeb2d9b23bae02f6d04e0a89da1dda202fb9098d33c5585ce6f528909a2e5bf73db7f1b1eaf587713c4
6
+ metadata.gz: 80e05ca1686e0c1f676db56678fdb923af2c4a5d883af563f8f6f75c3e10aed435b02ae2726abfcaa2a3bad9a9c1a4cb57ef7d6566863553c7828b07b83a2ce1
7
+ data.tar.gz: 1db9224e66d2911afe79783ce5875afd0234b148f354ad4f1b55df88a341c7697c104d7b2db6a1c72262c9cae965dc6d18c0305df34a68cea3b52d16573d77c0
@@ -15,7 +15,8 @@ class Operation
15
15
  end
16
16
 
17
17
  def of(total)
18
- self.class.new (percent.to_f / total.to_i).to_i, code
18
+ partial_percent = (percent.to_f / total.to_i).to_i
19
+ self.class.new partial_percent, code
19
20
  end
20
21
 
21
22
  end
@@ -2,7 +2,7 @@ class Operation
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join '.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: operation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo