bpm_manager 0.10.2 → 0.10.3

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: 812dcaf2fee09beb883986496440fb7607269789
4
- data.tar.gz: e844a51c8f7f1ecf2c9550c5ad2d1c225dd5fdd9
3
+ metadata.gz: 54c829bd5df2a65a364ea08c042236831ffdc510
4
+ data.tar.gz: 7e1d9b794d05afc0ee6ec7eb969d6f091692eab8
5
5
  SHA512:
6
- metadata.gz: 6a50d275053fcbef61c8ac5ab7fd6b6d2ad2aa38a64531957f35afcb15c4e5e2159a0e1291ecb8d01baaaf730cc3257a8382ef8c2b3816c059da5fc3dc980eb5
7
- data.tar.gz: 75a82a3854f394792afee073451f40b34ee8ce220233166cf58a498c7bf0b57017210144f4750230a55f8469641dc819c03399f2efd1c068381ff39c3ffd840e
6
+ metadata.gz: 7265f03127359956e532bb2341bc1086898174c357584cffdb4b4a2c39f284323e3b0350a1237958280a9af1af611f4a215fbdc0712d027e2439b243c8085877
7
+ data.tar.gz: d93f30bc67665a046dbcd7d218d9adb859bda69b50023ed8bf143453ae6f626f141b2cb1ae85c9a301cb28dde10abb3c962a99fbb577da169a3606670150d980
@@ -173,6 +173,11 @@ module BpmManager
173
173
  percent.yellow = Time.now.utc <= start.utc + total * offset_pcg ? 0.0 : (offset - (start.utc + total - Time.now.utc).to_f * 100 / (total * offset_pcg).to_f).round(2)
174
174
  percent.red = 0.0
175
175
  end
176
+
177
+ # Safe to 0.0
178
+ percent.green = percent.green < 0.0 ? 0.0 : percent.green
179
+ percent.yellow = percent.yellow < 0.0 ? 0.0 : percent.yellow
180
+ percent.red = percent.red < 0.0 ? 0.0 : percent.red
176
181
  else
177
182
  percent.green = 100.0
178
183
  percent.yellow = 0.0
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpm_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client