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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5efa461330416f6cffe0518ff6af0c111b5c7731d0f61ad10fc52947181a5d7d
4
- data.tar.gz: 5050d5e596af634f1280d41155e5397e9dd8e21e21cae6f9c5ed464b5ab76026
3
+ metadata.gz: db77920a61d0b8ea3ccbc521c7dad372f382fe897f7cabb6532acb7a154ae49a
4
+ data.tar.gz: c61d81fc4bb5eb0a655c951c849d0124e3123253ca2fa5de2ecabbe1b524f9e7
5
5
  SHA512:
6
- metadata.gz: ba169dc6d36d2d4fc68a661b8fbd4e1f090ecb94d978c77c692003487b82b86646e3965a42afe5e50b654aaae904ec89c4fbfb5576f4d3014adabeedaf90b7cb
7
- data.tar.gz: b1be324753efdaa626f242d8d53ffad7e81804bb02334a8200d610a880c038f79bda94af125b7188c6d52ff4f00589cd93637614c3d5a37549bd18d3ffb15db9
6
+ metadata.gz: d51df8b8a2975e90d44fa9fad4892609b331a95bd459e226af0a7d80589458e059e06149da6412aae6d32de0e0ab058a0517e552be3ab9edf07670c712c3bba7
7
+ data.tar.gz: 8aa88875e46d83c30eac88b28219f1daef4e905782c6997cb0fe8973c84bbbaec6d891d171ecd66930e1e6ab4a9e7154db63a87f4eef99317f000e7ffcf3667c
@@ -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 parameter in class raise warnings notice in output that prevent from succeed
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|
@@ -1,3 +1,3 @@
1
1
  module PuppetSyntax
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
@@ -0,0 +1,5 @@
1
+ class schedule_parameter_test ($schedule=undef){
2
+ notify { 'schedule_should pass':
3
+ message => 'with flying colours',
4
+ }
5
+ }
@@ -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 8
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.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-09 00:00:00.000000000 Z
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