knife-inspect 0.16.0 → 0.16.1

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: f39c7e1b8d24ab8cbffba2cecf25f67a150ec914
4
- data.tar.gz: 1d8fe6a5dc61ea505489b79a394f951befce0f5d
3
+ metadata.gz: a3dc9ac73ee766b656ceb6066ac7ae0718b22dde
4
+ data.tar.gz: 27bc3ebefeb54a5913b2a5e025552620abd80bd8
5
5
  SHA512:
6
- metadata.gz: f72623d67317afbd8fd60daac3c96104f68bf9860021255508ae6f992222728c405b0b78379b6d1e105e3de84dc15847b14d23917346a89cde377cb52b7aabd7
7
- data.tar.gz: 62c05875bb16f172986de1da3c26f559b6465a7b99fb021c047ef0525496e1420a15fe031bd671b1f47cbaa905515f4a998012107f1a4ea001372cd51adcfceb
6
+ metadata.gz: ce127c9ffc6c8369ae692c1e91eb25a1a069cecda7a6854c3f011377be32b0cf2101db779f278eb7f9d9cf98925ce51df33ed3b0790a23250df2fb638a24bba2
7
+ data.tar.gz: c5011f7ffbe7378461a7f51b3905cab962183851adc1409f803fbaf676294a381ba89d71e9f5507c6696acf741990d2e260393d3b026d65a126b3e813872b0d7
@@ -1,10 +1,10 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.3.3
4
+ - 2.3.5
5
5
  env:
6
- - CHEF_VERSION=12.19.36
7
- - CHEF_VERSION=12.7.2
6
+ - CHEF_VERSION=13.6.4
7
+ - CHEF_VERSION=12.21.1
8
8
  - CHEF_VERSION=11.18.12
9
9
  notifications:
10
10
  email: false
data/HISTORY.md CHANGED
@@ -1,6 +1,11 @@
1
+ ## 0.16.1 ( 2017-11-24 )
2
+
3
+ * Support Chef 13 ([#51][#51]). No other change.
4
+
5
+
1
6
  ## 0.16.0 ( 2017-03-14 )
2
7
 
3
- * Remove explicit dependency on rack (let chef-zero deal with it) (([#50][#50])
8
+ * Remove explicit dependency on rack (let chef-zero deal with it) ([#50][#50])
4
9
  Thanks for catching that @jonlives! I introduced the issue in 0.15.0
5
10
 
6
11
 
@@ -220,3 +225,5 @@ instead.
220
225
  [#42]: https://github.com/bmarini/knife-inspect/issues/42
221
226
  [#34]: https://github.com/bmarini/knife-inspect/pull/34
222
227
  [#46]: https://github.com/bmarini/knife-inspect/pull/46
228
+ [#50]: https://github.com/bmarini/knife-inspect/pull/50
229
+ [#51]: https://github.com/bmarini/knife-inspect/pull/51
data/README.md CHANGED
@@ -68,7 +68,8 @@ when everything is in sync or 1 if it's not.
68
68
 
69
69
  ## Compatibility
70
70
 
71
- This gem is tested with Ruby 2.1 and 2.2 and has been tested with Chef 12 and Chef 11.
71
+ This gem is tested with Ruby 2.3 and has been tested with Chef 13, 12
72
+ and 11.
72
73
 
73
74
  ## Contributors
74
75
 
@@ -42,7 +42,13 @@ module HealthInspector
42
42
  messages = []
43
43
 
44
44
  Chef::CookbookVersion::COOKBOOK_SEGMENTS.each do |segment|
45
- cookbook.manifest[segment].each do |manifest_record|
45
+ manifest_records = if Gem::Version.new(Chef::VERSION) < Gem::Version.new('13.0.0')
46
+ # `files_for` was introduced in Chef 13
47
+ cookbook.manifest[segment]
48
+ else
49
+ cookbook.files_for(segment)
50
+ end
51
+ manifest_records.each do |manifest_record|
46
52
  path = cookbook_path.join("#{manifest_record['path']}")
47
53
  next if path.basename.to_s == '.git'
48
54
 
@@ -1,3 +1,3 @@
1
1
  module HealthInspector
2
- VERSION = '0.16.0'
2
+ VERSION = '0.16.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-inspect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Karékinian
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-14 00:00:00.000000000 Z
12
+ date: 2017-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.6.8
193
+ rubygems_version: 2.6.13
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Inspect your chef repo as it is compared to what is on your chef server