puppet-lint-manifest_whitespace-check 0.2.7 → 0.2.8

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: f296fd04d6453e0737d586c3c64bcd76c1d92cbf906a4789c1b9a6797d032d82
4
- data.tar.gz: f8c3e2ce53f3654bb1746e5132b049111ba3d1cfabc11174fb121c312ff403ab
3
+ metadata.gz: 3a88d7225a7ea73adc00bc91018d5b78e220ad0a8056c221690e7373ed5f26ab
4
+ data.tar.gz: 01a9be5a5bbecf5c4c3c668d2afd5e41f41dabcd6e4369134ce23695f725c2fc
5
5
  SHA512:
6
- metadata.gz: f4a888c0b801d677132b618d21719ab02e93a446f5e473c3dc1a2bdc70c539396155e50ea312e8fa5de21affd8e3b1ead8521a884aa697978cedd30c820206d3
7
- data.tar.gz: 6b7183ef9094d3f0c42ee80e34fd6f7d54a571a510431291d9025aa5b896bb0f98fbed5d262c0ab0fd53949b13c279baa7988af0159658fd8230b6dbe77f665d
6
+ metadata.gz: 9682a9aa02a6110d8204ec9035f92e958be68d55489ae7a46548bb133fd0d2f002130e9150f1de31e885d3dcb044e64e6068f9f934e2ac5b1dd704edf46ed26c
7
+ data.tar.gz: e22271195239f6e9c25d631853734379c8f911899379e1f2c805cf7e195cf4679d5d73e4da01b6f8563f20fb07ff023559b1009d0989c9be368230bb02cb8fc5
@@ -5,6 +5,25 @@ require 'spec_helper'
5
5
  describe 'manifest_whitespace_opening_bracket_before' do
6
6
  let(:opening_bracket_msg) { 'there should be a single space before an opening bracket' }
7
7
 
8
+ context 'inside heredoc' do
9
+ let(:code) do
10
+ <<~EOF
11
+ class test::heredoc {
12
+ $unsupported = @("MESSAGE"/L)
13
+ This does not support ${facts['os']['name']} ${$facts['os']['release']['major']}; \
14
+ see ${support_urls['supported_platforms']} for more information\
15
+ | MESSAGE
16
+
17
+ fail($unsupported)
18
+ }
19
+ EOF
20
+ end
21
+
22
+ it 'should detect no problems' do
23
+ expect(problems).to be_empty
24
+ end
25
+ end
26
+
8
27
  context 'with comment' do
9
28
  let(:code) do
10
29
  <<~EOF
@@ -87,6 +106,7 @@ describe 'manifest_whitespace_opening_bracket_before' do
87
106
  if fact["${var}"] != $var2.keys[0] {
88
107
  # noop
89
108
  }
109
+ $variable_customfact = $facts['customfact_name'][$variable]
90
110
 
91
111
  $value = [{ 'key' => 'value' }]
92
112
  $value2 = [
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.7
4
+ version: 0.2.8
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-11-30 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint
@@ -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
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.3.7
170
- signing_key:
169
+ rubygems_version: 3.3.5
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: A puppet-lint check to validate whitespace in manifests
173
173
  test_files: []