knife-zero 2.5.2 → 2.6.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: 432ac5bd7af8f8aef7d74a88aadb2ed3ec6686765f537857d42b93714bbe55d0
4
- data.tar.gz: 3e10697cd00a95823dd3bc7a4f4f74270e8296ec2ca72148ea343d32c1672586
3
+ metadata.gz: 225edc1d8bc9d2381ddd789b6878fd55dc5f8716d58ea0762c205cec8d75d804
4
+ data.tar.gz: af3b922921837b55f832f5e26918f4cd3e7d18894f6dda2f3e5c4f5842bf8efd
5
5
  SHA512:
6
- metadata.gz: 45f3f6874ca9587e016b5afd16c6a76e214a99ca8b0e5b05e9c3a7d87ce1b2a2508e44087fdd6424c0f94ad3da425331d313e2e8decbb5663d4acbfe7aa0cf71
7
- data.tar.gz: 4aa6b08829720cdcfd39d33c10177e17301d2c3d2abe3df7c8076141605abff024fe9469580384a2413f0effc55ec637b116d5359fabbba2737497bdc75c2d9e
6
+ metadata.gz: a28ad7f0b533c06b6f296876d07d1254d23dd300c4b272361061556b2c90546f8eedf3521b34b239c355b9a8396edbfab06c094910f7edcd5ad2216f37bb097a
7
+ data.tar.gz: d4afa54db5f31218df7fd20b40de3f855469935af835fc20f832333e150935fbe2a61283b594c23a79fdf0572eb5174f9a17b2322c0f9461c452862c9d7279da
data/CHANGELOG.md CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- none.
5
+
6
+ ## v2.6.0
7
+
8
+ - Bootstrap: Include blocked attribute lists in config [#171](https://github.com/higanworks/knife-zero/pull/171) HT [@cgunther](https://github.com/cgunther)
6
9
 
7
10
  ## v2.5.2
8
11
 
@@ -18,19 +18,21 @@ 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
- allowed_lists = []
21
+ attribute_lists = []
22
22
  %w{
23
23
  automatic_attribute_whitelist default_attribute_whitelist normal_attribute_whitelist override_attribute_whitelist
24
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)
25
+ automatic_attribute_blacklist default_attribute_blacklist normal_attribute_blacklist override_attribute_blacklist
26
+ blocked_automatic_attributes blocked_default_attributes blocked_normal_attributes blocked_override_attributes
27
+ }.each do |attribute_list|
28
+ next unless Chef::Config[:knife][attribute_list.to_sym]&.is_a?(Array)
27
29
 
28
- allowed_lists.push([
29
- allowed_list,
30
- Chef::Config[:knife][allowed_list.to_sym].to_s
30
+ attribute_lists.push([
31
+ attribute_list,
32
+ Chef::Config[:knife][attribute_list.to_sym].to_s
31
33
  ].join(' '))
32
34
  end
33
- client_rb << allowed_lists.join("\n")
35
+ client_rb << attribute_lists.join("\n")
34
36
 
35
37
  ## For support policy_document_native_api
36
38
  if @config[:policy_name]
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Zero
3
- VERSION = '2.5.2'.freeze
3
+ VERSION = '2.6.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.5.2
4
+ version: 2.6.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: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -191,7 +191,7 @@ homepage: http://knife-zero.github.io
191
191
  licenses:
192
192
  - Apache-2.0
193
193
  metadata: {}
194
- post_install_message:
194
+ post_install_message:
195
195
  rdoc_options: []
196
196
  require_paths:
197
197
  - lib
@@ -206,8 +206,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  - !ruby/object:Gem::Version
207
207
  version: '0'
208
208
  requirements: []
209
- rubygems_version: 3.3.26
210
- signing_key:
209
+ rubygems_version: 3.1.6
210
+ signing_key:
211
211
  specification_version: 4
212
212
  summary: Run chef-client at remote node with chef-zero(local-mode) via HTTP over SSH
213
213
  port fowarding.