simple_approvals-chefspec 1.0.4 → 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
2
  SHA256:
3
- metadata.gz: cedb9c81230afbcf31d0a50aff69de728497a024775403ea1afe85a9c971ecee
4
- data.tar.gz: 366db247f72c28cb8bca688603dd6f882a3e3495c7b1f0a89c0c596ad91566c7
3
+ metadata.gz: 45fe9162da216ef43b1b2c0dbd0133284e68adbc046c21f272cb095c6b0861c6
4
+ data.tar.gz: 50e54fa5f7e90a5e596778dff9ce1329141a4e0a876154b1d47f2939778c9ac6
5
5
  SHA512:
6
- metadata.gz: b689125609a2b39b8fec091a564b21fbd399ad73f9ef43f11c46b9f6e25f9f88b3b086ee2eea8b96ca1855f42cc3ca6c714ccfc03c6f01f79177b5b62dda6f34
7
- data.tar.gz: ad50452befdbfb686a85c9a490e0d49e762f9e804108a2c36d4921ddf879eb04ff36f1b6fd3f40dd6e6b6ed78ec0842020411d5afc3b9e5fe24daca611b6744f
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.0.4
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-04-17 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
@@ -98,30 +98,30 @@ dependencies:
98
98
  name: chefspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '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: '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.7.9
156
- signing_key:
154
+ rubygems_version: 3.3.7
155
+ signing_key:
157
156
  specification_version: 4
158
157
  summary: ''
159
158
  test_files: []