puppet-lint-manifest_whitespace-check 0.2.9 → 0.3.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: 3fc583d9842a6466e61e1f6f2f9403f8fc5cb8e0958fafa9f5bd5f5fc80696ca
4
- data.tar.gz: d4ab05139da0cc924d211d1f1b48fe78126bf44d554f8fa43ec01c13d1025daf
3
+ metadata.gz: e7a82b75562b3f216e849bb8b6600982ccfd262bb0eb7fe97a1669510187c061
4
+ data.tar.gz: 1b00868a696b0dfeee05148f58d413244c579e50d35fcb47f05f3d68b5c18117
5
5
  SHA512:
6
- metadata.gz: ed6e8917d9cb0cb98fc3f4d1be0ff82c15f7328b8dbd0fda51a156eb6ca9546dbb5af389321da9a3b16308fdc3870280c5dd48457344b90d09fb3ce177938e17
7
- data.tar.gz: f9fe4bf529999d65acf13efaa4cea04410714cf6f122e2986b82c3eca6c9ad28dc8369b2cf937547e3e464a6bccf5544e90500b0e1528e16aad57ec6a111e929
6
+ metadata.gz: b2c308c27fb7b90390fddd309c125cd72036af8d24ae43ae871a8de1f0d97bfc9126099c0a30fdf052bc8fedb6da4c5800dbd6ca35d418d59e826578d7a540d6
7
+ data.tar.gz: 7fda90bd22b2c51a73f6782874ba8ff2009532a54a233424537a6a5fe2cc234edc4e05ffc9038148ed225d3e0232f47ee69793bdad4ce5a3216ee755d30213c4
@@ -47,5 +47,20 @@ describe 'manifest_whitespace_missing_newline_end_of_file' do
47
47
  expect(manifest).to eq("class example { }\n")
48
48
  end
49
49
  end
50
+
51
+ context 'inside heredoc' do
52
+ let(:code) do
53
+ <<~CODE
54
+ $value = @("END_OF_HD")
55
+ SomeData
56
+ | - END_OF_HD
57
+ $other_value = 5
58
+ CODE
59
+ end
60
+
61
+ it 'detects no problems' do
62
+ expect(problems).to be_empty
63
+ end
64
+ end
50
65
  end
51
66
  end
@@ -31,14 +31,28 @@ describe 'manifest_whitespace_opening_brace_before' do
31
31
  end
32
32
  end
33
33
 
34
+ context 'with an iterator' do
35
+ let(:code) do
36
+ <<~CODE
37
+ $slave_ifnames = $bonds.reduce({}) |$l, $i| {
38
+ $l + split($i['attached_devices'], /,/).reduce({}) |$sl, $d| { $sl + { $d => $i['identifier'] } }
39
+ }
40
+ CODE
41
+ end
42
+
43
+ it 'detects no problems' do
44
+ expect(problems).to be_empty
45
+ end
46
+ end
47
+
34
48
  context 'inside, inline with function' do
35
49
  let(:code) do
36
50
  <<~CODE
37
51
  $sssd_config = {
38
- 'sssd' => merge($config, {
39
- ▏ ▏ ▏ 'domains' => $domains,
40
- ▏ ▏ ▏ 'services' => 'nss,pam',
41
- }),
52
+ 'sssd' => merge($config, {
53
+ 'domains' => $domains,
54
+ 'services' => 'nss,pam',
55
+ }),
42
56
  }
43
57
  CODE
44
58
  end
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.9
4
+ version: 0.3.0
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: 2023-01-05 00:00:00.000000000 Z
11
+ date: 2023-04-22 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: '4'
22
+ version: '5'
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: '4'
32
+ version: '5'
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
@@ -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.5
170
- signing_key:
169
+ rubygems_version: 3.4.8
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: A puppet-lint check to validate whitespace in manifests
173
173
  test_files: []