chefspec 9.3.0 → 9.3.3

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: 925cb2abc56b376354e60cc27bc9e4539d5841e2d78ecc617dd287052f9340eb
4
- data.tar.gz: 0534af872e3c3d8feb88564ccb66d976ac23c368f8e2aa85e37d7fbe3429c6ba
3
+ metadata.gz: 0c591860face48faae7220ef702958dba8182d08b9c237319a855dd58f964bf8
4
+ data.tar.gz: ad0b365fa68475e88a3f4ed5baefb5ff4d336a5a1562a9825c226496ba1872b8
5
5
  SHA512:
6
- metadata.gz: 89d4e0d603e9ee1c162b68836fe711e3040e31b7d950aebb25212df1f08d2381f573011665b4a8b5346881f2bf6cf72d19f2d0034fcf8d3f46f6a2373436f411
7
- data.tar.gz: b9811de2bdba005fa11fb6f3649651310aa9748dd9f91340ab44a65c52120fe7305152b0a41a6706ebff2421b20d3f1fcb2bd55890b27b7324fe3fdcd3286e2b
6
+ metadata.gz: '08b0fb3188da8303bb14e210229ab058f03d98d0a8668eafe578184bfbf4d07b792e7727ebdcd465c4e190af5b7bcd4689953fb9dfa30bd2a257e038fb2de7ae'
7
+ data.tar.gz: 3e94b4fda970eb1a55f7229b11898d4dd47fa1d3bc663418fe8a1b2f8a20b479f12c2994cfc40e15da8c3d89bab1f1f9ec394027eb110ba0cf431bdb57d5ed7a
@@ -1,6 +1,7 @@
1
1
  begin
2
2
  require "chef-cli/policyfile_services/export_repo"
3
3
  require "chef-cli/policyfile_services/install"
4
+ require "chef/workstation_config_loader"
4
5
  rescue LoadError
5
6
  raise ChefSpec::Error::GemLoadError.new(gem: "chef-cli", name: "ChefCLI")
6
7
  end
@@ -27,9 +28,12 @@ module ChefSpec
27
28
  policyfile_path = File.join(Dir.pwd, "Policyfile.rb")
28
29
  end
29
30
 
31
+ Chef::WorkstationConfigLoader.new(nil).load
32
+
30
33
  installer = ChefCLI::PolicyfileServices::Install.new(
31
34
  policyfile: policyfile_path,
32
- ui: ChefCLI::UI.null
35
+ ui: ChefCLI::UI.null,
36
+ config: Chef::Config
33
37
  )
34
38
 
35
39
  installer.run
@@ -208,7 +208,7 @@ module ChefSpec
208
208
  #
209
209
  def find_resource(type, name, action = nil)
210
210
  resource_collection.all_resources.reverse_each.find do |resource|
211
- resource.declared_type == type.to_sym && (name === resource.identity || name === resource.name) && (action.nil? || resource.performed_action?(action))
211
+ resource.declared_type == type.to_sym && (name === resource.name || name === resource.identity) && (action.nil? || resource.performed_action?(action))
212
212
  end
213
213
  end
214
214
 
@@ -1,3 +1,3 @@
1
1
  module ChefSpec
2
- VERSION = "9.3.0".freeze
2
+ VERSION = "9.3.3".freeze
3
3
  end
data/spec/support/hash.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  class Hash
7
7
  # Like, seriously Windows?
8
- undef_method(:timeout)
8
+ undef_method(:timeout) if method_defined?(:timeout)
9
9
 
10
10
  #
11
11
  # Monkey-patch to allow mash-style look ups for tests
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.0
4
+ version: 9.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Crump
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-04 00:00:00.000000000 Z
12
+ date: 2022-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -105,8 +105,6 @@ files:
105
105
  - lib/chefspec/errors.rb
106
106
  - lib/chefspec/expect_exception.rb
107
107
  - lib/chefspec/extensions.rb
108
- - lib/chefspec/extensions/.DS_Store
109
- - lib/chefspec/extensions/chef/.DS_Store
110
108
  - lib/chefspec/extensions/chef/client.rb
111
109
  - lib/chefspec/extensions/chef/conditional.rb
112
110
  - lib/chefspec/extensions/chef/cookbook/gem_installer.rb
@@ -216,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
214
  - !ruby/object:Gem::Version
217
215
  version: '0'
218
216
  requirements: []
219
- rubygems_version: 3.2.15
217
+ rubygems_version: 3.3.3
220
218
  signing_key:
221
219
  specification_version: 4
222
220
  summary: Write RSpec examples and generate coverage reports for Chef recipes!
Binary file
Binary file