puppet-syntax 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/puppet-syntax/manifests.rb +2 -2
- data/lib/puppet-syntax/version.rb +1 -1
- data/spec/fixtures/test_module/manifests/schedule_notice.pp +5 -0
- data/spec/puppet-syntax/manifests_spec.rb +8 -0
- data/spec/puppet-syntax/tasks/puppet-syntax_spec.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db77920a61d0b8ea3ccbc521c7dad372f382fe897f7cabb6532acb7a154ae49a
|
|
4
|
+
data.tar.gz: c61d81fc4bb5eb0a655c951c849d0124e3123253ca2fa5de2ecabbe1b524f9e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d51df8b8a2975e90d44fa9fad4892609b331a95bd459e226af0a7d80589458e059e06149da6412aae6d32de0e0ab058a0517e552be3ab9edf07670c712c3bba7
|
|
7
|
+
data.tar.gz: 8aa88875e46d83c30eac88b28219f1daef4e905782c6997cb0fe8973c84bbbaec6d891d171ecd66930e1e6ab4a9e7154db63a87f4eef99317f000e7ffcf3667c
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [v3.0.1](https://github.com/voxpupuli/puppet-syntax/tree/v3.0.1) (2020-05-27)
|
|
6
|
+
|
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/puppet-syntax/compare/v3.0.0...v3.0.1)
|
|
8
|
+
|
|
9
|
+
**Merged pull requests:**
|
|
10
|
+
|
|
11
|
+
- Avoid failure on schedule metaparameter warning [\#122](https://github.com/voxpupuli/puppet-syntax/pull/122) ([ffapitalle](https://github.com/ffapitalle))
|
|
12
|
+
|
|
5
13
|
## [v3.0.0](https://github.com/voxpupuli/puppet-syntax/tree/v3.0.0) (2020-05-09)
|
|
6
14
|
|
|
7
15
|
[Full Changelog](https://github.com/voxpupuli/puppet-syntax/compare/v2.6.1...v3.0.0)
|
|
@@ -42,6 +50,7 @@ All notable changes to this project will be documented in this file.
|
|
|
42
50
|
|
|
43
51
|
**Merged pull requests:**
|
|
44
52
|
|
|
53
|
+
- Test on ruby 2.6 [\#111](https://github.com/voxpupuli/puppet-syntax/pull/111) ([alexjfisher](https://github.com/alexjfisher))
|
|
45
54
|
- Adding KMS tags to allowed EYAML methods [\#105](https://github.com/voxpupuli/puppet-syntax/pull/105) ([craigwatson](https://github.com/craigwatson))
|
|
46
55
|
|
|
47
56
|
## [v2.5.0](https://github.com/voxpupuli/puppet-syntax/tree/v2.5.0) (2019-07-07)
|
|
@@ -41,9 +41,9 @@ module PuppetSyntax
|
|
|
41
41
|
e =~ /^You cannot collect( exported resources)? without storeconfigs being set/
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
# tag
|
|
44
|
+
# tag and schedule parameters in class raise warnings notice in output that prevent from succeed
|
|
45
45
|
output.reject! { |e|
|
|
46
|
-
e =~ /^tag is a metaparam; this value will inherit to all contained resources in the /
|
|
46
|
+
e =~ /^(tag|schedule) is a metaparam; this value will inherit to all contained resources in the /
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
deprecations = output.select { |e|
|
|
@@ -24,6 +24,14 @@ describe PuppetSyntax::Manifests do
|
|
|
24
24
|
expect(has_errors).to eq(false)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
it 'should return nothing from a valid file with a class using schedule parameter' do
|
|
28
|
+
files = fixture_manifests('schedule_notice.pp')
|
|
29
|
+
output, has_errors = subject.check(files)
|
|
30
|
+
|
|
31
|
+
expect(output).to eq([])
|
|
32
|
+
expect(has_errors).to eq(false)
|
|
33
|
+
end
|
|
34
|
+
|
|
27
35
|
it 'should return an error from an invalid file' do
|
|
28
36
|
files = fixture_manifests('fail_error.pp')
|
|
29
37
|
output, has_errors = subject.check(files)
|
|
@@ -18,7 +18,7 @@ describe 'PuppetSyntax rake tasks' do
|
|
|
18
18
|
it 'should generate FileList of manifests relative to Rakefile' do
|
|
19
19
|
list = PuppetSyntax::RakeTask.new.filelist_manifests
|
|
20
20
|
expect(list).to include(known_pp)
|
|
21
|
-
expect(list.count).to eq
|
|
21
|
+
expect(list.count).to eq 9
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
it 'should generate FileList of templates relative to Rakefile' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppet-syntax
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vox Pupuli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -118,6 +118,7 @@ files:
|
|
|
118
118
|
- spec/fixtures/test_module/manifests/future_syntax.pp
|
|
119
119
|
- spec/fixtures/test_module/manifests/pass.pp
|
|
120
120
|
- spec/fixtures/test_module/manifests/pass_storeconfigs.pp
|
|
121
|
+
- spec/fixtures/test_module/manifests/schedule_notice.pp
|
|
121
122
|
- spec/fixtures/test_module/manifests/tag_notice.pp
|
|
122
123
|
- spec/fixtures/test_module/manifests/test_app.pp
|
|
123
124
|
- spec/fixtures/test_module/templates/fail_error.epp
|
|
@@ -176,6 +177,7 @@ test_files:
|
|
|
176
177
|
- spec/fixtures/test_module/manifests/future_syntax.pp
|
|
177
178
|
- spec/fixtures/test_module/manifests/pass.pp
|
|
178
179
|
- spec/fixtures/test_module/manifests/pass_storeconfigs.pp
|
|
180
|
+
- spec/fixtures/test_module/manifests/schedule_notice.pp
|
|
179
181
|
- spec/fixtures/test_module/manifests/tag_notice.pp
|
|
180
182
|
- spec/fixtures/test_module/manifests/test_app.pp
|
|
181
183
|
- spec/fixtures/test_module/templates/fail_error.epp
|