knife-tidy 0.3.3 → 0.3.4

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: 430581b6c4b852bc0b345ce4159519c325be6841
4
- data.tar.gz: 4a4578f085705c816c1d5c011fc7772e37779401
3
+ metadata.gz: e3cfe200db245cbbc9d519e5f60d48cff11d09f6
4
+ data.tar.gz: 7aeaa1368615e9a3b2c3c4bbec5a310bcf16997b
5
5
  SHA512:
6
- metadata.gz: cc2cb8e6fd15cfe1ffe174b6416e2c886f79ee79399547bd9bad27e91c6a53dabe2f3328dd47c6f69f91689d1626429e54e50c62aebdf2605669688d023b67d2
7
- data.tar.gz: 5bff332dbfc245637da73d60a022ebabbd1e25ec2042e184d1b1db7e21f98b67621a6dbd81c69e1a6d754af9546b964bf5c21c76b6cc064fda38ce7bb610c52b
6
+ metadata.gz: 2d2a12af493e7e192dd166013133995f94843d855f8105b3bc014a88f284d080becd7673079b8087c14eb412f2e6a9f36e5f80d0847ecc071b5888ec2c04a967
7
+ data.tar.gz: 8e08aab926a8db7582820337cba477d2f10c98de9cdf806665780b28503c911c86aa12fb1ba051d2c04666a9c867ae30bb2eed9de99d3eebb4843bb976b573a0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.3.4](https://github.com/chef-customers/knife-tidy/tree/0.3.4) (2017-09-16)
4
+ [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.3...0.3.4)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - check if metadata.has\_key?\('platforms'\) [\#26](https://github.com/chef-customers/knife-tidy/pull/26) ([jeremymv2](https://github.com/jeremymv2))
9
+
3
10
  ## [0.3.3](https://github.com/chef-customers/knife-tidy/tree/0.3.3) (2017-09-15)
4
11
  [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.2...0.3.3)
5
12
 
data/README.md CHANGED
@@ -19,7 +19,7 @@ gem install knife-tidy
19
19
 
20
20
  Via Source
21
21
  ```bash
22
- git clone https://github.com/jeremymv2/knife-tidy.git
22
+ git clone https://github.com/chef-customers/knife-tidy.git
23
23
  cd knife-tidy
24
24
  gem build knife-tidy.gemspec && gem install knife-tidy-*.gem --no-ri --no-rdoc
25
25
  ```
@@ -69,7 +69,7 @@ org_unused_cookbooks.json | List of cookbooks and versions that do not appear to
69
69
  Run the following example before attempting the `knife ec backup restore` operation:
70
70
  ```bash
71
71
  knife tidy backup clean --gen-gsub
72
- NFO: Creating boiler plate gsub file: 'substitutions.json'
72
+ INFO: Creating boiler plate gsub file: 'substitutions.json'
73
73
  knife tidy backup clean --backup-path backups/ --gsub-file substitutions.json
74
74
  ```
75
75
 
@@ -13,7 +13,7 @@ class Chef
13
13
  require 'fileutils'
14
14
  end
15
15
 
16
- banner "knife tidy backup clean (OPTIONS)"
16
+ banner "knife tidy backup clean (options)"
17
17
 
18
18
  include Knife::TidyBase
19
19
 
@@ -176,10 +176,12 @@ class Chef
176
176
  md[key] = 'default value'
177
177
  end
178
178
  end
179
- metadata['platforms'].each_pair do |key, value|
180
- if value.kind_of?(Array) && value.empty?
181
- puts "REPAIRING: Fixing empty platform key for for key #{key} in #{json_path}"
182
- md['platforms'][key] = '>= 0.0.0'
179
+ if metadata.has_key?('platforms')
180
+ metadata['platforms'].each_pair do |key, value|
181
+ if value.kind_of?(Array) && value.empty?
182
+ puts "REPAIRING: Fixing empty platform key for for key #{key} in #{json_path}"
183
+ md['platforms'][key] = '>= 0.0.0'
184
+ end
183
185
  end
184
186
  end
185
187
  ::File.open(json_path, 'w') do |f|
@@ -1,4 +1,4 @@
1
1
  module KnifeTidy
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
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.3
4
+ version: 0.3.4
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-15 00:00:00.000000000 Z
11
+ date: 2017-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake