knife-zero 2.2.1 → 2.3.0

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
  SHA256:
3
- metadata.gz: b9cfc726271f222ea45360d830cebf4128ce16d6884ea4b03f46c55b4bef5476
4
- data.tar.gz: 738031d2485f4c387a1e508485216118808ae8c53c6f7b77da5559ccd9f17624
3
+ metadata.gz: ac67b410005680ab38ee1746311ffb1ba52909983081436b720fd957f6e75564
4
+ data.tar.gz: cdb89df6d2e69fed589df841cebd9701afda1d4875ee18d83d462a7eaa46f486
5
5
  SHA512:
6
- metadata.gz: 8e604bbb4255b4c3d9569db10de82b7923d06566e533507fe6db439ed336b7beefc7a23006574dffeaee82dd92252de4df195f6644306c405f9521b99c11f599
7
- data.tar.gz: 8db2f78de4a6f59b15b08da09eda513c8ab35266cf7a94af8e483846b49d090116ae4286fe40975ae81413ceb2f1c359c20789257bfe7f1c32e3775c9497efb2
6
+ metadata.gz: d0fa31dcf279e4db60b673cb4970eb7f14c67b92af10ed46a7bd99f71c2a37c0d87c4f905f459abdee5cda49fa5671128d98f5aec2299679a258cf1eb2d014d8
7
+ data.tar.gz: 37f2d61abb130e6fe1273fbc1150b5021bd0895c9bff33f4ed5d82d5f832b08263213e1225a6a52600b2bd488b66c0ac39fa9d70a1d600c1973e221edee756c5
@@ -4,6 +4,11 @@
4
4
 
5
5
  none.
6
6
 
7
+ ## v2.3.0
8
+
9
+ - use `allowd_` instead.
10
+ - ref: [Renamed Client Configuration Options - Chef Infra Client 16.3 released!](https://discourse.chef.io/t/chef-infra-client-16-3-released/17449)
11
+
7
12
  ## v2.2.1
8
13
 
9
14
  - path --validation_key option to resolve crash bootstraping in cinc 15.6 [#138](https://github.com/higanworks/knife-zero/pull/138)
@@ -18,16 +18,19 @@ class Chef
18
18
  alias_method :orig_config_content, :config_content
19
19
  def config_content # rubocop:disable Metrics/AbcSize
20
20
  client_rb = orig_config_content
21
- white_lists = []
22
- %w{automatic_attribute_whitelist default_attribute_whitelist normal_attribute_whitelist override_attribute_whitelist}.each do |white_list|
23
- next unless Chef::Config[:knife][white_list.to_sym]&.is_a?(Array)
21
+ allowed_lists = []
22
+ %w{
23
+ automatic_attribute_whitelist default_attribute_whitelist normal_attribute_whitelist override_attribute_whitelist
24
+ allowed_automatic_attributes allowed_default_attributes allowed_normal_attributes allowed_override_attributes
25
+ }.each do |allowed_list|
26
+ next unless Chef::Config[:knife][allowed_list.to_sym]&.is_a?(Array)
24
27
 
25
- white_lists.push([
26
- white_list,
27
- Chef::Config[:knife][white_list.to_sym].to_s
28
+ allowed_lists.push([
29
+ allowed_list,
30
+ Chef::Config[:knife][allowed_list.to_sym].to_s
28
31
  ].join(' '))
29
32
  end
30
- client_rb << white_lists.join("\n")
33
+ client_rb << allowed_lists.join("\n")
31
34
 
32
35
  ## For support policy_document_native_api
33
36
  if @config[:policy_name]
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = '2.2.1'.freeze
3
+ VERSION = '2.3.0'.freeze
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-14 00:00:00.000000000 Z
11
+ date: 2020-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -177,7 +177,7 @@ homepage: http://knife-zero.github.io
177
177
  licenses:
178
178
  - Apache-2.0
179
179
  metadata: {}
180
- post_install_message:
180
+ post_install_message:
181
181
  rdoc_options: []
182
182
  require_paths:
183
183
  - lib
@@ -192,9 +192,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubyforge_project:
196
- rubygems_version: 2.7.6.2
197
- signing_key:
195
+ rubygems_version: 3.1.2
196
+ signing_key:
198
197
  specification_version: 4
199
198
  summary: Run chef-client at remote node with chef-zero(local-mode) via HTTP over SSH
200
199
  port fowarding.