simple_approvals-chefspec 1.1.0 → 3.1.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
- SHA1:
3
- metadata.gz: d44c84fa68e39fc66d577ab139c838893f8967db
4
- data.tar.gz: 28a6b030ac1f076e82e5f797163435497fdd95c8
2
+ SHA256:
3
+ metadata.gz: 45fe9162da216ef43b1b2c0dbd0133284e68adbc046c21f272cb095c6b0861c6
4
+ data.tar.gz: 50e54fa5f7e90a5e596778dff9ce1329141a4e0a876154b1d47f2939778c9ac6
5
5
  SHA512:
6
- metadata.gz: 0b7b39d53a8568c08b3f31644393315dd196c4c3a806eec9c8ac5c9d2997de7a6b22c08b26c63a605dab199afe218213f7af59c49fb90a7a9895092ab90b5e3b
7
- data.tar.gz: 72c24b08a5fb8ae7d2de30baaea828ba6f51afe0849689cd81194fb70b124705b41b2b0b09474527d86ab6db6632c757bad788337084479183147631ced2b16c
6
+ metadata.gz: 1a866c2c75d19c389419254a2826237d7503feec3b1dbc1b7bb6528fc9726e95670595ef84fc7c26c1f0e3c70d10a21708c324ad9528932bc96e237108cafadb
7
+ data.tar.gz: 05b7b8f5058f6c249cafb5edf49a2f5e504e62e19b8c93d63039dd415a01e36ef6c52963009aedd498b4e16817a98d7388f04cb1aeb1d3874a7ee7b73bda831b
@@ -13,6 +13,7 @@ module RSpec
13
13
  # - not rendering in the cookbook (i.e. file does not exist where expected)
14
14
  # - rendering with unexpected content
15
15
  shared_examples_for 'an approved chef template' do |file|
16
+ puts "shared_examples_for: #{file.inspect}" if ENV.has_key?('DEBUG')
16
17
  describe file[:expected_path] do
17
18
  if file[:template]
18
19
  it 'defines the template resource' do
@@ -36,12 +37,14 @@ module RSpec
36
37
  # verify_chef_template(expected_path: '', approved path: '')
37
38
  #
38
39
  def verify_chef_template(**file)
40
+ puts "verify_chef_template: #{file.inspect}" if ENV.has_key?('DEBUG')
39
41
  file[:template] = true
40
42
  file[:scrubber] = ->(rendered_content) { yield rendered_content } if block_given?
41
43
  verify_chef_file(**file)
42
44
  end
43
45
 
44
- def verify_chef_file(**file)
46
+ def verify_chef_file(file)
47
+ puts "verify_chef_file: #{file.inspect}" if ENV.has_key?('DEBUG')
45
48
  file[:scrubber] = ->(rendered_content) { yield rendered_content } if block_given?
46
49
  include_examples 'an approved chef template', file
47
50
  end
@@ -65,7 +68,9 @@ module RSpec
65
68
  # which is taken care of in the shared lib/.chef-rubocop.yml
66
69
  #
67
70
  def verify_chef_templates(*specs)
71
+ puts "verify_chef_templates: #{specs.inspect}" if ENV.has_key?('DEBUG')
68
72
  specs.each do |file|
73
+ puts "verify_chef_templates.each: #{file.inspect}" if ENV.has_key?('DEBUG')
69
74
  file[:scrubber] = ->(rendered_content) { yield rendered_content } if block_given?
70
75
  file[:template] = true
71
76
  verify_chef_file(file)
@@ -73,7 +78,9 @@ module RSpec
73
78
  end
74
79
 
75
80
  def verify_chef_files(*specs)
81
+ puts "verify_chef_files: #{specs.inspect}" if ENV.has_key?('DEBUG')
76
82
  specs.each do |file|
83
+ puts "verify_chef_files.each: #{file.inspect}" if ENV.has_key?('DEBUG')
77
84
  file[:scrubber] = ->(rendered_content) { yield rendered_content } if block_given?
78
85
  verify_chef_file(file)
79
86
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_approvals-chefspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alpert
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-22 00:00:00.000000000 Z
11
+ date: 2023-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '7.0'
103
+ version: '9.3'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '7.0'
110
+ version: '9.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simple_approvals-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 3.1.2
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 3.1.2
125
125
  description: chefspec matchers for simple_approvals patterned after the ApprovalTests
126
126
  pattern
127
127
  email:
@@ -136,24 +136,23 @@ files:
136
136
  homepage: https://github.com/davidalpert/simple_approvals-chefspec/
137
137
  licenses: []
138
138
  metadata: {}
139
- post_install_message:
139
+ post_install_message:
140
140
  rdoc_options: []
141
141
  require_paths:
142
142
  - lib
143
143
  required_ruby_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ">="
145
+ - - "~>"
146
146
  - !ruby/object:Gem::Version
147
- version: '0'
147
+ version: '3.1'
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubyforge_project:
155
- rubygems_version: 2.6.11
156
- signing_key:
154
+ rubygems_version: 3.3.7
155
+ signing_key:
157
156
  specification_version: 4
158
157
  summary: ''
159
158
  test_files: []