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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5feeb8c06393876406d3d53aa65b7c6c88aaf61f
4
- data.tar.gz: 460821c2f12d26d5a8055a783107e9cd87fdb64c
3
+ metadata.gz: fa02a86e6813498d4a4c73b0d7f968003f34878c
4
+ data.tar.gz: b03370fdbbda88588e840b6f0f070af15d92a349
5
5
  SHA512:
6
- metadata.gz: 319c13c8fa72f93bd616f511d0c8f4b3ff559f1c42899eb45f546085dc6991f9e7e94f67a42df6e7b0941e2ba910b123b9c80edb98ffc8677178d4a06b5e71e1
7
- data.tar.gz: 9039516e110734c5ce892ad0d3630ecd41f3872887883393f945411b1a97bd5ce4d830ad823d2dec8700f7072a0c0853050b4f7ba1290ec5a55d907c8df3a18c
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 < Error
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" \
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module ChefSpec
2
- VERSION = '3.1.2'
2
+ VERSION = '3.1.3'
3
3
  end
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.2
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: 2013-12-30 00:00:00.000000000 Z
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: Write RSpec examples for Opscode Chef recipes
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://acrmp.github.com/chefspec
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: chefspec-3.1.2
266
+ summary: Write RSpec examples and generate coverage reports for Chef recipes!
265
267
  test_files: []
266
268
  has_rdoc: