knife 18.8.13 → 18.8.65

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: 947a92dbe3f969e49b8a064a00d3f48e9e2ea21668ac06a7ec30516ed152084c
4
- data.tar.gz: 94ce940ff4591d74d0f4ac11a6d94d05f0865ae3173e1a1e88359395cddd534a
3
+ metadata.gz: 58805e9e530880fd8b1d22a9bbf4e8ed7834f098c4e49102bcc919317b98f6c3
4
+ data.tar.gz: '06922ce94fdf2739de01ebe96863c35972266021bf7da8c3547d090801373529'
5
5
  SHA512:
6
- metadata.gz: fedb26a1a3e59e4bd36a3aa48960f2aa3b1552e9b080bf8d55a4410afb1b6fb67f9232b98f2215099e338e3e63a11bc79e3b9d5ad03475b88b0b45590a436f93
7
- data.tar.gz: 2fd51a2cec9d9b39bd86008a49b2bd52db896f177400661a4213f2c11778b33c481c8c52f4f8f70161cdcfa19619736e04e4e6e9673450de3f25bbcf229c814a
6
+ metadata.gz: 1d3d50ab7c09aea6479cac9c842460dfe4d57a5f27136d5bd0ad11d4b401e19f309958c1138277186a4c54fa5b8f3c801118bbd4d9af8533d7c33a12249801d9
7
+ data.tar.gz: ac88975c0690bed0daa32b7f2302efecf82e426b81b94564e7b13112b684787f12f577656c03a90f281d7867c9d41b9f54f33769e8fea69b9513f30a6d4efe58
@@ -17,7 +17,7 @@
17
17
  class Chef
18
18
  class Knife
19
19
  KNIFE_ROOT = File.expand_path("../..", __dir__)
20
- VERSION = "18.8.13".freeze
20
+ VERSION = "18.8.65".freeze
21
21
  end
22
22
  end
23
23
 
@@ -51,7 +51,9 @@ class Chef::Knife::YamlConvert < Chef::Knife
51
51
  yaml_contents = File.read(yaml_file)
52
52
 
53
53
  # YAML can contain multiple documents (--- is the separator), let's not support that.
54
- if ::YAML.load_stream(yaml_contents).length > 1
54
+ # Count document separators instead of using unsafe load_stream
55
+ doc_count = yaml_contents.scan(/^---\s*$/).length
56
+ if doc_count > 1
55
57
  ui.fatal!("YAML recipe '#{yaml_file}' contains multiple documents, only one is supported")
56
58
  end
57
59
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.8.13
4
+ version: 18.8.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-08-18 00:00:00.000000000 Z
10
+ date: 2025-12-04 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: chef-config
@@ -1177,7 +1176,6 @@ metadata:
1177
1176
  homepage_uri: https://www.chef.io
1178
1177
  mailing_list_uri: https://discourse.chef.io/
1179
1178
  source_code_uri: https://github.com/chef/chef/
1180
- post_install_message:
1181
1179
  rdoc_options: []
1182
1180
  require_paths:
1183
1181
  - lib
@@ -1192,8 +1190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1192
1190
  - !ruby/object:Gem::Version
1193
1191
  version: '0'
1194
1192
  requirements: []
1195
- rubygems_version: 3.3.7
1196
- signing_key:
1193
+ rubygems_version: 3.6.2
1197
1194
  specification_version: 4
1198
1195
  summary: The knife CLI for Chef Infra.
1199
1196
  test_files: []