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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +2 -2
- data/lib/chef/knife/tidy_backup_clean.rb +7 -5
- data/lib/knife-tidy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3cfe200db245cbbc9d519e5f60d48cff11d09f6
|
4
|
+
data.tar.gz: 7aeaa1368615e9a3b2c3c4bbec5a310bcf16997b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
-
|
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 (
|
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
|
180
|
-
|
181
|
-
|
182
|
-
|
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|
|
data/lib/knife-tidy/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2017-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|