chef 16.17.39-universal-mingw32 → 16.17.51-universal-mingw32

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
  SHA256:
3
- metadata.gz: 97553446988eb8ef8a235a6e562f859725cd644ebc1637b5b3efd2882480022d
4
- data.tar.gz: 6576305cf572967887de2699dc78be073d30076767f5f69f157e40d557c59717
3
+ metadata.gz: e393b6b1ef502963fc7b6638e4026c754569d53b6f8812d933cf1b92f5ff1da8
4
+ data.tar.gz: 9d268133ba1992db7a357933c6e9c3de040501bc55d4dda1f364f17319ff6961
5
5
  SHA512:
6
- metadata.gz: b15383f06266844ae5569e7745aebcd608e0971daf8b07f12c4a8ca0524fca43fd0d2724774984380383f1fe4200b97c94c06f49a502e4490874cfdb346a3dce
7
- data.tar.gz: 3c82a18793806152a4215ce9dae7b6c6096dc1e84427265162624446247e0766d7e22b47a672ab07c4313915b9eeb2e6abacbce8e20f997ae7eda0ad286326d1
6
+ metadata.gz: 9546d5fc6f9829b8e43166f51885b10b5d9fb4e32222a69e1457bf86d2265d88183c14b3bc0875c1f3851652f91f7514b1c5f935eb9d6fd80c3680209353e463
7
+ data.tar.gz: c80518566e1d96223de075c3790b15d21817b73099ac698169b0961c35b759d51a290035e717c1a6eb96546a984cc30e0f01ea001ab668724ba8b496cc4b2fe5
@@ -20,6 +20,12 @@
20
20
 
21
21
  require_relative "../resource"
22
22
  require "fileutils" unless defined?(FileUtils)
23
+ begin
24
+ # ffi-libarchive must be eager loaded see: https://github.com/chef/chef/issues/12228
25
+ require "ffi-libarchive" unless defined?(Archive::Reader)
26
+ rescue LoadError
27
+ STDERR.puts "ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available"
28
+ end
23
29
 
24
30
  class Chef
25
31
  class Resource
@@ -88,8 +94,6 @@ class Chef
88
94
  action :extract do
89
95
  description "Extract and archive file."
90
96
 
91
- require_libarchive
92
-
93
97
  unless ::File.exist?(new_resource.path)
94
98
  raise Errno::ENOENT, "No archive found at #{new_resource.path}! Cannot continue."
95
99
  end
@@ -127,10 +131,6 @@ class Chef
127
131
  end
128
132
 
129
133
  action_class do
130
- def require_libarchive
131
- require "ffi-libarchive"
132
- end
133
-
134
134
  def define_resource_requirements
135
135
  if new_resource.mode.is_a?(Integer)
136
136
  Chef.deprecated(:archive_file_integer_file_mode, "The mode property should be passed to archive_file resources as a String and not an Integer to ensure the value is properly interpreted.")
data/lib/chef/version.rb CHANGED
@@ -23,7 +23,7 @@ require_relative "version_string"
23
23
 
24
24
  class Chef
25
25
  CHEF_ROOT = File.expand_path("..", __dir__)
26
- VERSION = Chef::VersionString.new("16.17.39")
26
+ VERSION = Chef::VersionString.new("16.17.51")
27
27
  end
28
28
 
29
29
  #
@@ -17,7 +17,19 @@
17
17
 
18
18
  require "spec_helper"
19
19
 
20
- describe Chef::Resource::ArchiveFile do
20
+ begin
21
+ require "ffi-libarchive"
22
+ rescue LoadError
23
+ module Archive
24
+ class Reader
25
+ def close; end
26
+ def each_entry; end
27
+ def extract(entry, flags = 0, destination: nil); end
28
+ end
29
+ end
30
+ end
31
+
32
+ describe Chef::Resource::ArchiveFile, :not_supported_on_aix do
21
33
  let(:node) { Chef::Node.new }
22
34
  let(:events) { Chef::EventDispatch::Dispatcher.new }
23
35
  let(:run_context) { Chef::RunContext.new(node, {}, events) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.17.39
4
+ version: 16.17.51
5
5
  platform: universal-mingw32
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-27 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 16.17.39
19
+ version: 16.17.51
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 16.17.39
26
+ version: 16.17.51
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef-utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 16.17.39
33
+ version: 16.17.51
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 16.17.39
40
+ version: 16.17.51
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: train-core
43
43
  requirement: !ruby/object:Gem::Requirement