puppet-lint-manifest_whitespace-check 0.2.6 → 0.2.7

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: bfd370ff80d1f947b2ff60f2328ec106465b4dbc6aa43b3e9b90d029cc217912
4
- data.tar.gz: 03ad9c1bbc4c4620a82201068606984ea7229165af7bd00572920ae5af0c4316
3
+ metadata.gz: f296fd04d6453e0737d586c3c64bcd76c1d92cbf906a4789c1b9a6797d032d82
4
+ data.tar.gz: f8c3e2ce53f3654bb1746e5132b049111ba3d1cfabc11174fb121c312ff403ab
5
5
  SHA512:
6
- metadata.gz: deec8f90369d519039c09c721087c289dd9c4c7225c2caa760b21cdaeacd4611f7b95470a2c3c2732fdd3e045f78d872ac8f8935d200e2a48b9e578bac4f0745
7
- data.tar.gz: 0b008268fd5686720c5e9d4173e78543f741dc8a41a7f9b97d2656cb4eae52a9b9b897fe07b59464d6f542a9f485bb9fdeaa5707e1650a21eb13f674467e9f4b
6
+ metadata.gz: f4a888c0b801d677132b618d21719ab02e93a446f5e473c3dc1a2bdc70c539396155e50ea312e8fa5de21affd8e3b1ead8521a884aa697978cedd30c820206d3
7
+ data.tar.gz: 6b7183ef9094d3f0c42ee80e34fd6f7d54a571a510431291d9025aa5b896bb0f98fbed5d262c0ab0fd53949b13c279baa7988af0159658fd8230b6dbe77f665d
@@ -153,9 +153,28 @@ describe 'manifest_whitespace_closing_bracket_before' do
153
153
  end
154
154
 
155
155
  describe 'manifest_whitespace_closing_bracket_after' do
156
- let(:closing_bracket_msg) {
156
+ let(:closing_bracket_msg) do
157
157
  'there should be either a bracket, punctuation mark, closing quote or a newline after a closing bracket, or whitespace and none of the aforementioned'
158
- }
158
+ end
159
+
160
+ context 'inside heredoc' do
161
+ let(:code) do
162
+ <<~EOF
163
+ class test::heredoc {
164
+ $unsupported = @("MESSAGE"/L)
165
+ This does not support ${facts['os']['name']} ${$facts['os']['release']['major']}; \
166
+ see ${support_urls['supported_platforms']} for more information\
167
+ | MESSAGE
168
+
169
+ fail($unsupported)
170
+ }
171
+ EOF
172
+ end
173
+
174
+ it 'should detect no problems' do
175
+ expect(problems).to be_empty
176
+ end
177
+ end
159
178
 
160
179
  context 'with many brackets' do
161
180
  let(:code) do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-manifest_whitespace-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo Vandeginste
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-19 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '3.0'
22
+ version: '4'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '1.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '3.0'
32
+ version: '4'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: coveralls
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +151,7 @@ licenses:
151
151
  - MIT
152
152
  metadata:
153
153
  rubygems_mfa_required: 'true'
154
- post_install_message:
154
+ post_install_message:
155
155
  rdoc_options: []
156
156
  require_paths:
157
157
  - lib
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubygems_version: 3.3.7
170
- signing_key:
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: A puppet-lint check to validate whitespace in manifests
173
173
  test_files: []