knife-tidy 0.3.4 → 0.3.5

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: e3cfe200db245cbbc9d519e5f60d48cff11d09f6
4
- data.tar.gz: 7aeaa1368615e9a3b2c3c4bbec5a310bcf16997b
3
+ metadata.gz: 2fc1d727190b5d98c1020db4370cb85525785081
4
+ data.tar.gz: 3da9ec48377cf236c391c97494863e0cf20ee15d
5
5
  SHA512:
6
- metadata.gz: 2d2a12af493e7e192dd166013133995f94843d855f8105b3bc014a88f284d080becd7673079b8087c14eb412f2e6a9f36e5f80d0847ecc071b5888ec2c04a967
7
- data.tar.gz: 8e08aab926a8db7582820337cba477d2f10c98de9cdf806665780b28503c911c86aa12fb1ba051d2c04666a9c867ae30bb2eed9de99d3eebb4843bb976b573a0
6
+ metadata.gz: d6af0d2b285e86999607a52a4daa64cd8969d0961b4e0902cf4f1e43907b73960402dc7b67b26cec8b5fb0eebe715be33b295952ec184c2d30fab1cee36a2978
7
+ data.tar.gz: 83239068fd7d85f677fe4faf9e007b29174d3e4042cd6c433589a84e36a5efde758b24acf2ea651ca0a9ce22be168fda6f8987b02c54bbf7cf4c0c0ae0385cd0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.3.5](https://github.com/chef-customers/knife-tidy/tree/0.3.5) (2017-09-20)
4
+ [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.4...0.3.5)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - Catch pins with no cookbooks [\#27](https://github.com/chef-customers/knife-tidy/pull/27) ([nsdavidson](https://github.com/nsdavidson))
9
+
3
10
  ## [0.3.4](https://github.com/chef-customers/knife-tidy/tree/0.3.4) (2017-09-16)
4
11
  [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.3...0.3.4)
5
12
 
@@ -156,13 +156,17 @@ class Chef
156
156
  end
157
157
 
158
158
  def check_cookbook_list(cb_list, cb, version)
159
- cb_list[cb].each do |v|
160
- if Gem::Dependency.new('', version).match?('', v)
161
- Chef::Log.debug("Pin of #{cb} can be satisfied by #{v}, adding to used list")
162
- return [v]
163
- else
164
- Chef::Log.debug("Pin of #{cb} version #{version} not satisfied by #{v}")
159
+ if cb_list[cb]
160
+ cb_list[cb].each do |v|
161
+ if Gem::Dependency.new('', version).match?('', v)
162
+ Chef::Log.debug("Pin of #{cb} can be satisfied by #{v}, adding to used list")
163
+ return [v]
164
+ else
165
+ Chef::Log.debug("Pin of #{cb} version #{version} not satisfied by #{v}")
166
+ end
165
167
  end
168
+ else
169
+ Chef::Log.info("Cookbook #{cb} version #{version} is pinned in an environment, but does not exist on the server in this org.")
166
170
  end
167
171
  return nil
168
172
  end
@@ -1,4 +1,4 @@
1
1
  module KnifeTidy
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  MAJOR, MINOR, TINY = VERSION.split('.')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-tidy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Miller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-16 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project:
147
- rubygems_version: 2.6.11
147
+ rubygems_version: 2.6.13
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Report on stale Chef Server nodes and cookbooks and clean up data integrity