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 +4 -4
- data/lib/chefspec/policyfile.rb +5 -1
- data/lib/chefspec/solo_runner.rb +1 -1
- data/lib/chefspec/version.rb +1 -1
- data/spec/support/hash.rb +1 -1
- metadata +3 -5
- data/lib/chefspec/extensions/.DS_Store +0 -0
- data/lib/chefspec/extensions/chef/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c591860face48faae7220ef702958dba8182d08b9c237319a855dd58f964bf8
|
4
|
+
data.tar.gz: ad0b365fa68475e88a3f4ed5baefb5ff4d336a5a1562a9825c226496ba1872b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08b0fb3188da8303bb14e210229ab058f03d98d0a8668eafe578184bfbf4d07b792e7727ebdcd465c4e190af5b7bcd4689953fb9dfa30bd2a257e038fb2de7ae'
|
7
|
+
data.tar.gz: 3e94b4fda970eb1a55f7229b11898d4dd47fa1d3bc663418fe8a1b2f8a20b479f12c2994cfc40e15da8c3d89bab1f1f9ec394027eb110ba0cf431bdb57d5ed7a
|
data/lib/chefspec/policyfile.rb
CHANGED
@@ -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
|
data/lib/chefspec/solo_runner.rb
CHANGED
@@ -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.
|
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
|
|
data/lib/chefspec/version.rb
CHANGED
data/spec/support/hash.rb
CHANGED
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.
|
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:
|
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.
|
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
|