knife-tidy 1.0.0 → 1.0.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: 1e5c5c4edef9b63996bbfa1caf5890a40f443ee0
4
- data.tar.gz: 36eed111cf84de44150c8d39486ae05939cf37e1
3
+ metadata.gz: ec26fb4a7cf8f9acf3f6bdc47c74086120fa64bc
4
+ data.tar.gz: d33295fc06282011d316c1d5b17a1b009da99ecb
5
5
  SHA512:
6
- metadata.gz: edc4d0d480d39c99c0b59b54180003fa60c259c600d30a987bb4cd4e69ec67a54c6f6fc37b31a958d3d725f9f95f0bf79660cf6b554e664fcf764be00bda979b
7
- data.tar.gz: 05b0a59b86a3f5a95ed136222555f984bbbe583fdd6acb2064398571b2c88c1ffa9abc7da7fd0917e984be5018c5d3a8c2ab25593ec1e8b0d831ea45012964c5
6
+ metadata.gz: 37ec3f61124ab2e314242d268496781f41f3a4272564ce5f4f33e6f29fc07c93e1ae0e5ebfefa81e32e5e9458abade0df5f15b5e0cf7fa5cc32fbe74de29764e
7
+ data.tar.gz: c5dde500fa0cb884f0fa4a5cb920f6f6a0aafabc5dffbbdd05f33cddb5c9b425dcb0bbec2d1b4421428ca1e2562ab521e751506360f9167e4fe6eaadc08de6d6
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.0.1](https://github.com/chef-customers/knife-tidy/tree/1.0.1) (2017-12-12)
4
+ [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/1.0.0...1.0.1)
5
+
6
+ **Closed issues:**
7
+
8
+ - Clean up references to tidy methods [\#68](https://github.com/chef-customers/knife-tidy/issues/68)
9
+ - A stale search index can generate inaccurate tidy reports [\#62](https://github.com/chef-customers/knife-tidy/issues/62)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - Fix validate\_user\_acls and default\_user\_acl methods [\#73](https://github.com/chef-customers/knife-tidy/pull/73) ([itmustbejj](https://github.com/itmustbejj))
14
+
3
15
  ## [1.0.0](https://github.com/chef-customers/knife-tidy/tree/1.0.0) (2017-12-04)
4
16
  [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.7.0...1.0.0)
5
17
 
@@ -206,4 +218,4 @@
206
218
 
207
219
 
208
220
 
209
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
221
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -184,7 +184,7 @@ class Chef
184
184
  end
185
185
  end
186
186
 
187
- def default_user_acl
187
+ def default_user_acl(client)
188
188
  return {:create=>{:actors=>["pivotal", client], :groups=>["::server-admins"]},
189
189
  :read=>{:actors=>["pivotal", client], :groups=>["::server-admins", "::#{@org}_read_access_group"]},
190
190
  :update=>{:actors=>["pivotal", client], :groups=>["::server-admins"]},
@@ -207,7 +207,7 @@ class Chef
207
207
  user_acl = FFI_Yajl::Parser.parse(::File.read(user_acl_path), symbolize_names: false)
208
208
  rescue Errno::ENOENT
209
209
  @tidy.ui.stdout.puts "REPAIRING: Replacing missing user acl for #{member[:user][:username]}."
210
- @tidy.write_new_file(default_user_acl, client_acl_path, backup=false)
210
+ @tidy.write_new_file(default_user_acl(member), user_acl_path, backup=false)
211
211
  user_acl = FFI_Yajl::Parser.parse(::File.read(user_acl_path), symbolize_names: false)
212
212
  end
213
213
  ensure_global_group_acls(user_acl_path)
@@ -1,4 +1,4 @@
1
1
  module KnifeTidy
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
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: 1.0.0
4
+ version: 1.0.1
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-12-04 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.6.13
148
+ rubygems_version: 2.6.11
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Report on stale Chef Server nodes and cookbooks and clean up data integrity