powerbar 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/lib/powerbar.rb CHANGED
@@ -318,7 +318,7 @@ class PowerBar
318
318
  end
319
319
 
320
320
  def round(number, digit)
321
- if number.zero? or number.nan?
321
+ if number.zero? or number.nan? or number.infinite?
322
322
  number
323
323
  else
324
324
  factor = 10.0 ** digit
@@ -1,3 +1,3 @@
1
1
  class Powerbar
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.11"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: powerbar
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 10
10
- version: 1.0.10
9
+ - 11
10
+ version: 1.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Moe