chefspec 7.3.4 → 7.4.0

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: '087946db9144fc3c278e7b18e1afefd129d6f964f1008114b00ab5bbe5fbb34e'
4
- data.tar.gz: 47809ae0412a69c75c8e2e0eb8f7109adfe86befc62270aa5e3b4659a0d5737b
3
+ metadata.gz: 811f21e393d16be39c8162bbe17c1157d214ce0eb378e8d19e686683fad4160b
4
+ data.tar.gz: 764db71993cd015961d195d39dc1c99a74bda29311a3fc69210961e4482d6ba9
5
5
  SHA512:
6
- metadata.gz: 0e988f0d741d4dce1f20c21cf6d8d19eaa6cae90261eaa9e090e99483ef6a249c54a544017fda8aba6bf67d3a7e753c9614c42e75c464733382969eb811ebe67
7
- data.tar.gz: 7279c57f503a0b662d840608f79a8cd5b445e19fe3a7302043b3162bd044369a61729ea69098ae9e064539d54e8d7c9691a7922659b5ab5eeca027660178ce21
6
+ metadata.gz: b7b68c00204307439f31270eb1ae14360d1750aabc7e7f87c2128337331fb29b6041858132f218fee76fd65c8d2903739816c1be4a8f268646c66fd10449b5a9
7
+ data.tar.gz: d25a404af72648245718dc0ee6519023754c0c6f111f87746edb611e6c17856571bc183e17fd1284b33709ddebd8a0ba36c91a0f4245403db49bbd0d7e2a09b3
data/Rakefile CHANGED
@@ -23,7 +23,7 @@ start_time = nil
23
23
  namespace :acceptance do |ns|
24
24
  begin
25
25
  Dir.foreach("examples") do |dir|
26
- next if dir == '.' or dir == '..'
26
+ next if %w(. .. .DS_Store).include?(dir)
27
27
  desc "#{dir} acceptance tests"
28
28
  task dir.to_sym do
29
29
  start_time ||= Time.now
@@ -21,9 +21,9 @@ Gem::Specification.new do |s|
21
21
  s.files = %w{LICENSE Rakefile Gemfile chefspec.gemspec} + Dir.glob("{lib,templates,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
22
22
  s.require_paths = ['lib']
23
23
 
24
- s.required_ruby_version = '>= 2.2'
24
+ s.required_ruby_version = '>= 2.3'
25
25
 
26
- s.add_dependency 'chef', '>= 12.16.42'
27
- s.add_dependency 'fauxhai', '>= 4'
26
+ s.add_dependency 'chef', '>= 13'
27
+ s.add_dependency 'fauxhai', '>= 6.11'
28
28
  s.add_dependency 'rspec', '~> 3.0'
29
29
  end
@@ -1,4 +1,5 @@
1
1
  require "chef/version"
2
+ require "mixlib/shellout"
2
3
 
3
4
  module ChefSpec
4
5
  module API
@@ -22,7 +22,10 @@ module ChefSpec
22
22
  # Setup and install the necessary dependencies in the temporary directory
23
23
  #
24
24
  def setup!
25
- policyfile_path = File.join(Dir.pwd, 'Policyfile.rb')
25
+ policyfile_path = RSpec.configuration.policyfile_path
26
+ if policyfile_path.nil?
27
+ policyfile_path = File.join(Dir.pwd, 'Policyfile.rb')
28
+ end
26
29
 
27
30
  installer = ChefDK::PolicyfileServices::Install.new(
28
31
  policyfile: policyfile_path,
@@ -4,6 +4,7 @@ RSpec.configure do |config|
4
4
  end
5
5
 
6
6
  config.add_setting :berkshelf_options, default: {}
7
+ config.add_setting :policyfile_path
7
8
  config.add_setting :file_cache_path
8
9
  config.add_setting :cookbook_root
9
10
  config.add_setting :cookbook_path
@@ -1,3 +1,3 @@
1
1
  module ChefSpec
2
- VERSION = '7.3.4'
2
+ VERSION = '7.4.0'
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: 7.3.4
4
+ version: 7.4.0
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: 2018-12-27 00:00:00.000000000 Z
12
+ date: 2019-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 12.16.42
20
+ version: '13'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 12.16.42
27
+ version: '13'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: fauxhai
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '4'
34
+ version: '6.11'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '4'
41
+ version: '6.11'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -191,15 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: '2.2'
194
+ version: '2.3'
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - ">="
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
200
  requirements: []
201
- rubyforge_project:
202
- rubygems_version: 2.7.7
201
+ rubygems_version: 3.0.3
203
202
  signing_key:
204
203
  specification_version: 4
205
204
  summary: Write RSpec examples and generate coverage reports for Chef recipes!