puppet-syntax 3.3.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,35 +5,35 @@ describe PuppetSyntax do
5
5
  PuppetSyntax.exclude_paths = []
6
6
  end
7
7
 
8
- it 'should default exclude_paths to include the pkg directory' do
8
+ it 'defaults exclude_paths to include the pkg directory' do
9
9
  expect(PuppetSyntax.exclude_paths).to include('pkg/**/*')
10
10
  end
11
11
 
12
- it 'should support setting exclude_paths' do
13
- PuppetSyntax.exclude_paths = ["foo", "bar/baz"]
14
- expect(PuppetSyntax.exclude_paths).to eq(["foo", "bar/baz"])
12
+ it 'supports setting exclude_paths' do
13
+ PuppetSyntax.exclude_paths = ['foo', 'bar/baz']
14
+ expect(PuppetSyntax.exclude_paths).to eq(['foo', 'bar/baz'])
15
15
  end
16
16
 
17
- it 'should support appending exclude_paths' do
18
- PuppetSyntax.exclude_paths << "foo"
19
- expect(PuppetSyntax.exclude_paths).to eq(["foo"])
17
+ it 'supports appending exclude_paths' do
18
+ PuppetSyntax.exclude_paths << 'foo'
19
+ expect(PuppetSyntax.exclude_paths).to eq(['foo'])
20
20
  end
21
21
 
22
- it 'should support a fail_on_deprecation_notices setting' do
22
+ it 'supports a fail_on_deprecation_notices setting' do
23
23
  PuppetSyntax.fail_on_deprecation_notices = false
24
24
  expect(PuppetSyntax.fail_on_deprecation_notices).to eq(false)
25
25
  end
26
26
 
27
- it 'should support forcing EPP only templates' do
27
+ it 'supports forcing EPP only templates' do
28
28
  PuppetSyntax.epp_only = true
29
29
  expect(PuppetSyntax.epp_only).to eq(true)
30
30
  end
31
31
 
32
- it 'should support setting paths for manifests, templates and hiera' do
32
+ it 'supports setting paths for manifests, templates and hiera' do
33
33
  PuppetSyntax.hieradata_paths = []
34
34
  expect(PuppetSyntax.hieradata_paths).to eq([])
35
- PuppetSyntax.manifests_paths = ["**/environments/production/**/*.pp"]
36
- expect(PuppetSyntax.manifests_paths).to eq(["**/environments/production/**/*.pp"])
35
+ PuppetSyntax.manifests_paths = ['**/environments/production/**/*.pp']
36
+ expect(PuppetSyntax.manifests_paths).to eq(['**/environments/production/**/*.pp'])
37
37
  PuppetSyntax.templates_paths = []
38
38
  expect(PuppetSyntax.templates_paths).to eq([])
39
39
  end
metadata CHANGED
@@ -1,71 +1,91 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 4.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: 2023-02-08 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: puppet
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '7'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '9'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: '7'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '9'
27
33
  - !ruby/object:Gem::Dependency
28
- name: puppet
34
+ name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ">="
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '5'
39
+ version: '13.1'
34
40
  type: :runtime
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
- - - ">="
44
+ - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '5'
46
+ version: '13.1'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: pry
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - ">="
51
+ - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '0'
53
+ version: 0.14.2
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - ">="
58
+ - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '0'
60
+ version: 0.14.2
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rb-readline
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - ">="
65
+ - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '0'
67
+ version: 0.5.5
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - ">="
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.5.5
75
+ - !ruby/object:Gem::Dependency
76
+ name: voxpupuli-rubocop
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: 2.5.0
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
67
87
  - !ruby/object:Gem::Version
68
- version: '0'
88
+ version: 2.5.0
69
89
  description: Syntax checks for Puppet manifests and templates
70
90
  email:
71
91
  - voxpupuli@groups.io
@@ -73,9 +93,12 @@ executables: []
73
93
  extensions: []
74
94
  extra_rdoc_files: []
75
95
  files:
96
+ - ".github/dependabot.yml"
76
97
  - ".github/workflows/release.yml"
77
98
  - ".github/workflows/test.yml"
78
99
  - ".gitignore"
100
+ - ".rubocop.yml"
101
+ - ".rubocop_todo.yml"
79
102
  - CHANGELOG.md
80
103
  - Gemfile
81
104
  - HISTORY.md
@@ -95,7 +118,6 @@ files:
95
118
  - spec/fixtures/hiera/data/test/hiera_4.eyaml
96
119
  - spec/fixtures/hiera/hiera_bad.eyaml
97
120
  - spec/fixtures/hiera/hiera_bad.yaml
98
- - spec/fixtures/hiera/hiera_bad_18.yaml
99
121
  - spec/fixtures/hiera/hiera_badkey.yaml
100
122
  - spec/fixtures/hiera/hiera_good.yaml
101
123
  - spec/fixtures/hiera/hiera_key_empty.yaml
@@ -136,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
158
  requirements:
137
159
  - - ">="
138
160
  - !ruby/object:Gem::Version
139
- version: '2.4'
161
+ version: '2.7'
140
162
  required_rubygems_version: !ruby/object:Gem::Requirement
141
163
  requirements:
142
164
  - - ">="
@@ -147,39 +169,4 @@ rubygems_version: 3.3.26
147
169
  signing_key:
148
170
  specification_version: 4
149
171
  summary: Syntax checks for Puppet manifests, templates, and Hiera YAML
150
- test_files:
151
- - spec/fixtures/hiera/data/hiera_1.yaml
152
- - spec/fixtures/hiera/data/hiera_2.eyaml
153
- - spec/fixtures/hiera/data/test/hiera_3.yaml
154
- - spec/fixtures/hiera/data/test/hiera_4.eyaml
155
- - spec/fixtures/hiera/hiera_bad.eyaml
156
- - spec/fixtures/hiera/hiera_bad.yaml
157
- - spec/fixtures/hiera/hiera_bad_18.yaml
158
- - spec/fixtures/hiera/hiera_badkey.yaml
159
- - spec/fixtures/hiera/hiera_good.yaml
160
- - spec/fixtures/hiera/hiera_key_empty.yaml
161
- - spec/fixtures/test_module/manifests/deprecation_notice.pp
162
- - spec/fixtures/test_module/manifests/fail_error.pp
163
- - spec/fixtures/test_module/manifests/fail_warning.pp
164
- - spec/fixtures/test_module/manifests/future_syntax.pp
165
- - spec/fixtures/test_module/manifests/pass.pp
166
- - spec/fixtures/test_module/manifests/pass_storeconfigs.pp
167
- - spec/fixtures/test_module/manifests/schedule_notice.pp
168
- - spec/fixtures/test_module/manifests/tag_notice.pp
169
- - spec/fixtures/test_module/manifests/test_app.pp
170
- - spec/fixtures/test_module/templates/fail_error.epp
171
- - spec/fixtures/test_module/templates/fail_error.erb
172
- - spec/fixtures/test_module/templates/fail_error_also.epp
173
- - spec/fixtures/test_module/templates/fail_warning.erb
174
- - spec/fixtures/test_module/templates/ignore.tpl
175
- - spec/fixtures/test_module/templates/pass.epp
176
- - spec/fixtures/test_module/templates/pass.erb
177
- - spec/fixtures/test_module/templates/pass_also.epp
178
- - spec/fixtures/test_module/templates/pass_unbound_var.erb
179
- - spec/fixtures/test_module/templates/typeerror_shouldwin.erb
180
- - spec/puppet-syntax/hiera_spec.rb
181
- - spec/puppet-syntax/manifests_spec.rb
182
- - spec/puppet-syntax/tasks/puppet-syntax_spec.rb
183
- - spec/puppet-syntax/templates_spec.rb
184
- - spec/puppet-syntax_spec.rb
185
- - spec/spec_helper.rb
172
+ test_files: []
@@ -1,3 +0,0 @@
1
- ---
2
- !!!str
3
- foo