kitchen-shopify-provisioner 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a0b0849df7ac94aee0e4ba2eaa1441b0663eeb7
4
- data.tar.gz: 8e85bf15ca8f8f106daf3f935aedf9b54184581d
3
+ metadata.gz: fb937d5d96774f6e3f54736be0695e10d60c147e
4
+ data.tar.gz: e2a8966b6573d0da2d67c03ffecee46c949e7517
5
5
  SHA512:
6
- metadata.gz: ed0a809d5c218cbf86954d735118e592782eda5fa29415f71ae713b7d1137964ed49da2d463bc29eb591f5c32e59c69e50fcd8dd5f9f3829a3156a2f95e79e03
7
- data.tar.gz: 9c94355449a388b53d8f7235a7c422858404ae3813ee2b8072ef73b4fc8b4588d0400a29b6b9e75fb9ca350c5a32a6d1374aa5b7deee3a98decbc621d61e5282
6
+ metadata.gz: a7763d8526f133dafc7433912eeba512a48d7849dc7dec564ca839535062042ab080290ae5a6de6d148a9970311afdc2536c4fa0ec826d274c3c08ac305723a7
7
+ data.tar.gz: 03e914fa94831b27b5451dc7faf51f5a04cf6ee86b70f01b40cfbbebc775ee2e232ef99c3e5478aa1de3a71f0f0c06fb9494e02e9d5706cefda631cc585fb5f6
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ['lib']
19
19
 
20
20
  s.add_runtime_dependency 'chef', ['~> 12']
21
- s.add_runtime_dependency 'test-kitchen', ['~> 1.9']
21
+ s.add_runtime_dependency 'test-kitchen', ['~> 1.7']
22
22
  s.add_development_dependency 'rspec', ['~> 3.4']
23
23
  s.add_development_dependency 'rake', ['~> 10.4']
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module KitchenShopifyProvisioner
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -15,14 +15,20 @@ module Kitchen
15
15
  FileUtils.rm_rf(tmpdir)
16
16
  end
17
17
 
18
- Dir.glob(File.join(config[:roles_path], '**', '*.rb')).each do |rb_file|
19
- obj = ::Chef::Role.new
20
- obj.from_file(rb_file)
21
- json_file = rb_file.sub(/\.rb$/, '.json').gsub(config[:roles_path], '').sub(/^\//, '').split('/').join('--')
22
- File.write(File.join(tmpdir, json_file), ::Chef::JSONCompat.to_json_pretty(obj))
18
+ # This block generates exceptions if we don't have a roles directory in ./
19
+ # or :roles_path is not configured in .kitchen.yml. So just call the
20
+ # superclass version and be done with it.
21
+ unless config[:roles_path].nil?
22
+ Dir.glob(File.join(config[:roles_path], '**', '*.rb')).each do |rb_file|
23
+ obj = ::Chef::Role.new
24
+ obj.from_file(rb_file)
25
+ json_file = rb_file.sub(/\.rb$/, '.json').gsub(config[:roles_path], '').sub(/^\//, '').split('/').join('--')
26
+ File.write(File.join(tmpdir, json_file), ::Chef::JSONCompat.to_json_pretty(obj))
27
+ end
28
+
29
+ config[:roles_path] = tmpdir
23
30
  end
24
31
 
25
- config[:roles_path] = tmpdir
26
32
  super
27
33
  end
28
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-shopify-provisioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-03 00:00:00.000000000 Z
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.9'
33
+ version: '1.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.9'
40
+ version: '1.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.4.8
106
+ rubygems_version: 2.2.3
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Work around Shopify specific cookbook quirks