chefspec-coveragereports 0.0.1 → 0.0.2

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.
data.tar.gz.sig CHANGED
Binary file
@@ -100,8 +100,8 @@ module ChefSpec
100
100
  results['totals']['covered'] = results['resources']['covered'].size
101
101
  results['totals']['uncovered'] = results['resources']['uncovered'].size
102
102
  results['totals']['percent'] = ((results['totals']['covered'] / results['totals']['resources'].to_f) * 100).round(2)
103
- results['totals']['percent'] = 0 if results['totals']['percent'].nan?
104
- results['totals']['percent'] = 100 if results['totals']['percent'].infinite?
103
+ results['totals']['percent'] = Float(0) if results['totals']['percent'].nan?
104
+ results['totals']['percent'] = Float(100) if results['totals']['percent'].infinite?
105
105
 
106
106
  results
107
107
  end
@@ -4,7 +4,7 @@ module ChefSpec
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- PATCH = 1
7
+ PATCH = 2
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefspec-coveragereports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
metadata.gz.sig CHANGED
Binary file