chefspec 3.1.2 → 3.1.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/deprecations.rb +2 -2
- data/lib/chefspec/renderer.rb +5 -0
- data/lib/chefspec/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa02a86e6813498d4a4c73b0d7f968003f34878c
|
4
|
+
data.tar.gz: b03370fdbbda88588e840b6f0f070af15d92a349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c353f63cd8f5c517953bc662944c3c9a37d25916b9f9c6c5d997361217b9e0be1fff8b1cd4a48e775cf363a74e6c799db8156bd6360a1514204531dd4c1680b
|
7
|
+
data.tar.gz: f0b5cc3ebc85afa21f678b8441f9cbcc438f746433ebfce40ac945a0b7d2fe356df0d99c55a561d38211c4130832ebda63475691611ca0c58e0f7d4acf6a828f
|
@@ -141,8 +141,8 @@ module ChefSpec::API
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
|
-
module ChefSpec
|
145
|
-
class NoConversionError <
|
144
|
+
module ChefSpec::Error
|
145
|
+
class NoConversionError < ChefSpecError
|
146
146
|
def initialize(matcher)
|
147
147
|
message = "I cannot convert `#{matcher}` to use a new matcher format!" \
|
148
148
|
" Please see the ChefSpec documentation and CHANGELOG for details" \
|
data/lib/chefspec/renderer.rb
CHANGED
@@ -69,6 +69,11 @@ module ChefSpec
|
|
69
69
|
:node => chef_run.node,
|
70
70
|
:template_finder => template_finder(chef_run, cookbook_name),
|
71
71
|
}.merge(template.variables))
|
72
|
+
if template.respond_to?(:helper_modules) # Chef 11.4+
|
73
|
+
template.helper_modules.each do |helper_module|
|
74
|
+
template_context.extend(helper_module)
|
75
|
+
end
|
76
|
+
end
|
72
77
|
template_context.render_template(template_location)
|
73
78
|
else
|
74
79
|
template.provider.new(template, chef_run.run_context).send(:render_with_context, template_location) do |file|
|
data/lib/chefspec/version.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: 3.1.
|
4
|
+
version: 3.1.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: 2014-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -143,7 +143,9 @@ dependencies:
|
|
143
143
|
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0.5'
|
146
|
-
description:
|
146
|
+
description: ChefSpec is a unit testing and resource coverage (code coverage) framework
|
147
|
+
for testing Chef cookbooks ChefSpec makes it easy to write examples and get fast
|
148
|
+
feedback on cookbook changes without the need for virtual machines or cloud servers.
|
147
149
|
email:
|
148
150
|
executables: []
|
149
151
|
extensions: []
|
@@ -238,7 +240,7 @@ files:
|
|
238
240
|
- lib/chefspec/stubs/stub.rb
|
239
241
|
- lib/chefspec/util.rb
|
240
242
|
- lib/chefspec/version.rb
|
241
|
-
homepage: http://
|
243
|
+
homepage: http://code.sethvargo.com/chefspec
|
242
244
|
licenses:
|
243
245
|
- MIT
|
244
246
|
metadata: {}
|
@@ -261,6 +263,6 @@ rubyforge_project:
|
|
261
263
|
rubygems_version: 2.2.0
|
262
264
|
signing_key:
|
263
265
|
specification_version: 4
|
264
|
-
summary:
|
266
|
+
summary: Write RSpec examples and generate coverage reports for Chef recipes!
|
265
267
|
test_files: []
|
266
268
|
has_rdoc:
|