puppet-ghostbuster 0.8.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +5 -5
  2. data/.github/dependabot.yml +17 -0
  3. data/.github/workflows/release.yml +33 -0
  4. data/.github/workflows/test.yml +57 -0
  5. data/.gitignore +5 -4
  6. data/.rubocop.yml +8 -0
  7. data/.rubocop_todo.yml +170 -0
  8. data/CHANGELOG.md +209 -90
  9. data/Gemfile +13 -1
  10. data/README.md +15 -5
  11. data/Rakefile +31 -9
  12. data/lib/puppet-ghostbuster/puppetdb.rb +31 -8
  13. data/lib/puppet-ghostbuster/version.rb +1 -1
  14. data/lib/puppet-lint/plugins/check_ghostbuster_classes.rb +4 -4
  15. data/lib/puppet-lint/plugins/check_ghostbuster_defines.rb +5 -6
  16. data/lib/puppet-lint/plugins/check_ghostbuster_facts.rb +14 -15
  17. data/lib/puppet-lint/plugins/check_ghostbuster_files.rb +17 -20
  18. data/lib/puppet-lint/plugins/check_ghostbuster_functions.rb +8 -8
  19. data/lib/puppet-lint/plugins/check_ghostbuster_hiera_files.rb +31 -30
  20. data/lib/puppet-lint/plugins/check_ghostbuster_templates.rb +13 -10
  21. data/lib/puppet-lint/plugins/check_ghostbuster_types.rb +5 -5
  22. data/puppet-ghostbuster.gemspec +21 -19
  23. data/spec/fixtures/hiera.yaml +11 -12
  24. data/spec/fixtures/modules/foo/lib/facter/bar.rb +2 -0
  25. data/spec/fixtures/modules/foo/lib/facter/baz.rb +2 -0
  26. data/spec/fixtures/modules/foo/lib/facter/foo.rb +2 -0
  27. data/spec/fixtures/modules/foo/lib/facter/multi.rb +2 -0
  28. data/spec/fixtures/modules/foo/lib/facter/quux.rb +2 -0
  29. data/spec/fixtures/modules/foo/lib/puppet/parser/functions/bar.rb +8 -2
  30. data/spec/fixtures/modules/foo/lib/puppet/parser/functions/baz.rb +8 -2
  31. data/spec/fixtures/modules/foo/lib/puppet/parser/functions/foo.rb +8 -2
  32. data/spec/fixtures/modules/foo/lib/puppet/parser/functions/quux.rb +8 -2
  33. data/spec/fixtures/modules/foo/lib/puppet/type/bar.rb +2 -0
  34. data/spec/fixtures/modules/foo/lib/puppet/type/foo.rb +2 -0
  35. data/spec/puppet-lint/plugins/ghostbuster_classes_spec.rb +10 -9
  36. data/spec/puppet-lint/plugins/ghostbuster_defines_spec.rb +11 -11
  37. data/spec/puppet-lint/plugins/ghostbuster_facts_spec.rb +21 -20
  38. data/spec/puppet-lint/plugins/ghostbuster_files_spec.rb +25 -25
  39. data/spec/puppet-lint/plugins/ghostbuster_functions_spec.rb +16 -15
  40. data/spec/puppet-lint/plugins/ghostbuster_hiera_files_spec.rb +30 -30
  41. data/spec/puppet-lint/plugins/ghostbuster_templates_spec.rb +17 -16
  42. data/spec/puppet-lint/plugins/ghostbuster_types_spec.rb +10 -9
  43. data/spec/spec_helper.rb +45 -4
  44. metadata +78 -38
  45. data/.travis.yml +0 -20
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-ghostbuster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camptocamp
8
+ - Vox Pupuli
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
12
+ date: 2024-01-08 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: coveralls
@@ -16,56 +17,74 @@ dependencies:
16
17
  requirements:
17
18
  - - ">="
18
19
  - !ruby/object:Gem::Version
19
- version: '0'
20
+ version: '0.8'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '0.9'
20
24
  type: :development
21
25
  prerelease: false
22
26
  version_requirements: !ruby/object:Gem::Requirement
23
27
  requirements:
24
28
  - - ">="
25
29
  - !ruby/object:Gem::Version
26
- version: '0'
30
+ version: '0.8'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
27
34
  - !ruby/object:Gem::Dependency
28
- name: rake
35
+ name: jgrep
29
36
  requirement: !ruby/object:Gem::Requirement
30
37
  requirements:
31
38
  - - ">="
32
39
  - !ruby/object:Gem::Version
33
- version: '0'
40
+ version: 1.0.0
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: 2.0.0
34
44
  type: :development
35
45
  prerelease: false
36
46
  version_requirements: !ruby/object:Gem::Requirement
37
47
  requirements:
38
48
  - - ">="
39
49
  - !ruby/object:Gem::Version
40
- version: '0'
50
+ version: 1.0.0
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: 2.0.0
41
54
  - !ruby/object:Gem::Dependency
42
- name: rspec
55
+ name: rake
43
56
  requirement: !ruby/object:Gem::Requirement
44
57
  requirements:
45
- - - "~>"
58
+ - - ">="
46
59
  - !ruby/object:Gem::Version
47
- version: '3.0'
60
+ version: 13.0.0
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: 14.0.0
48
64
  type: :development
49
65
  prerelease: false
50
66
  version_requirements: !ruby/object:Gem::Requirement
51
67
  requirements:
52
- - - "~>"
68
+ - - ">="
53
69
  - !ruby/object:Gem::Version
54
- version: '3.0'
70
+ version: 13.0.0
71
+ - - "<"
72
+ - !ruby/object:Gem::Version
73
+ version: 14.0.0
55
74
  - !ruby/object:Gem::Dependency
56
- name: rspec-its
75
+ name: rspec
57
76
  requirement: !ruby/object:Gem::Requirement
58
77
  requirements:
59
78
  - - "~>"
60
79
  - !ruby/object:Gem::Version
61
- version: '1.0'
80
+ version: '3.0'
62
81
  type: :development
63
82
  prerelease: false
64
83
  version_requirements: !ruby/object:Gem::Requirement
65
84
  requirements:
66
85
  - - "~>"
67
86
  - !ruby/object:Gem::Version
68
- version: '1.0'
87
+ version: '3.0'
69
88
  - !ruby/object:Gem::Dependency
70
89
  name: rspec-collection_matchers
71
90
  requirement: !ruby/object:Gem::Requirement
@@ -81,61 +100,73 @@ dependencies:
81
100
  - !ruby/object:Gem::Version
82
101
  version: '1.0'
83
102
  - !ruby/object:Gem::Dependency
84
- name: github_changelog_generator
103
+ name: rspec-its
85
104
  requirement: !ruby/object:Gem::Requirement
86
105
  requirements:
87
- - - ">="
106
+ - - "~>"
88
107
  - !ruby/object:Gem::Version
89
- version: '0'
108
+ version: '1.0'
90
109
  type: :development
91
110
  prerelease: false
92
111
  version_requirements: !ruby/object:Gem::Requirement
93
112
  requirements:
94
- - - ">="
113
+ - - "~>"
95
114
  - !ruby/object:Gem::Version
96
- version: '0'
115
+ version: '1.0'
97
116
  - !ruby/object:Gem::Dependency
98
- name: jgrep
117
+ name: voxpupuli-rubocop
99
118
  requirement: !ruby/object:Gem::Requirement
100
119
  requirements:
101
- - - ">="
120
+ - - "~>"
102
121
  - !ruby/object:Gem::Version
103
- version: '0'
122
+ version: 2.2.0
104
123
  type: :development
105
124
  prerelease: false
106
125
  version_requirements: !ruby/object:Gem::Requirement
107
126
  requirements:
108
- - - ">="
127
+ - - "~>"
109
128
  - !ruby/object:Gem::Version
110
- version: '0'
129
+ version: 2.2.0
111
130
  - !ruby/object:Gem::Dependency
112
131
  name: json
113
132
  requirement: !ruby/object:Gem::Requirement
114
133
  requirements:
115
134
  - - ">="
116
135
  - !ruby/object:Gem::Version
117
- version: '0'
136
+ version: '2.0'
137
+ - - "<"
138
+ - !ruby/object:Gem::Version
139
+ version: '3.0'
118
140
  type: :runtime
119
141
  prerelease: false
120
142
  version_requirements: !ruby/object:Gem::Requirement
121
143
  requirements:
122
144
  - - ">="
123
145
  - !ruby/object:Gem::Version
124
- version: '0'
146
+ version: '2.0'
147
+ - - "<"
148
+ - !ruby/object:Gem::Version
149
+ version: '3.0'
125
150
  - !ruby/object:Gem::Dependency
126
151
  name: puppet
127
152
  requirement: !ruby/object:Gem::Requirement
128
153
  requirements:
129
154
  - - ">="
130
155
  - !ruby/object:Gem::Version
131
- version: '0'
156
+ version: '6.0'
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: '9.0'
132
160
  type: :runtime
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
164
  - - ">="
137
165
  - !ruby/object:Gem::Version
138
- version: '0'
166
+ version: '6.0'
167
+ - - "<"
168
+ - !ruby/object:Gem::Version
169
+ version: '9.0'
139
170
  - !ruby/object:Gem::Dependency
140
171
  name: puppet-lint
141
172
  requirement: !ruby/object:Gem::Requirement
@@ -145,7 +176,7 @@ dependencies:
145
176
  version: '1.0'
146
177
  - - "<"
147
178
  - !ruby/object:Gem::Version
148
- version: '3.0'
179
+ version: '5.0'
149
180
  type: :runtime
150
181
  prerelease: false
151
182
  version_requirements: !ruby/object:Gem::Requirement
@@ -155,29 +186,39 @@ dependencies:
155
186
  version: '1.0'
156
187
  - - "<"
157
188
  - !ruby/object:Gem::Version
158
- version: '3.0'
189
+ version: '5.0'
159
190
  - !ruby/object:Gem::Dependency
160
191
  name: puppetdb-ruby
161
192
  requirement: !ruby/object:Gem::Requirement
162
193
  requirements:
194
+ - - "~>"
195
+ - !ruby/object:Gem::Version
196
+ version: '1.1'
163
197
  - - ">="
164
198
  - !ruby/object:Gem::Version
165
- version: '0'
199
+ version: 1.1.1
166
200
  type: :runtime
167
201
  prerelease: false
168
202
  version_requirements: !ruby/object:Gem::Requirement
169
203
  requirements:
204
+ - - "~>"
205
+ - !ruby/object:Gem::Version
206
+ version: '1.1'
170
207
  - - ">="
171
208
  - !ruby/object:Gem::Version
172
- version: '0'
209
+ version: 1.1.1
173
210
  description: Try and find dead code in Puppet receipts
174
211
  email:
175
212
  executables: []
176
213
  extensions: []
177
214
  extra_rdoc_files: []
178
215
  files:
216
+ - ".github/dependabot.yml"
217
+ - ".github/workflows/release.yml"
218
+ - ".github/workflows/test.yml"
179
219
  - ".gitignore"
180
- - ".travis.yml"
220
+ - ".rubocop.yml"
221
+ - ".rubocop_todo.yml"
181
222
  - CHANGELOG.md
182
223
  - Gemfile
183
224
  - LICENSE
@@ -219,7 +260,7 @@ files:
219
260
  - spec/puppet-lint/plugins/ghostbuster_templates_spec.rb
220
261
  - spec/puppet-lint/plugins/ghostbuster_types_spec.rb
221
262
  - spec/spec_helper.rb
222
- homepage: http://github.com/camptocamp/puppet-ghostbuster
263
+ homepage: http://github.com/voxpupuli/puppet-ghostbuster
223
264
  licenses:
224
265
  - Apache-2.0
225
266
  metadata: {}
@@ -231,15 +272,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
272
  requirements:
232
273
  - - ">="
233
274
  - !ruby/object:Gem::Version
234
- version: '0'
275
+ version: '2.7'
235
276
  required_rubygems_version: !ruby/object:Gem::Requirement
236
277
  requirements:
237
278
  - - ">="
238
279
  - !ruby/object:Gem::Version
239
280
  version: '0'
240
281
  requirements: []
241
- rubyforge_project:
242
- rubygems_version: 2.5.1
282
+ rubygems_version: 3.2.33
243
283
  signing_key:
244
284
  specification_version: 4
245
285
  summary: Dead code detector for Puppet
data/.travis.yml DELETED
@@ -1,20 +0,0 @@
1
- ---
2
- language: ruby
3
- sudo: false
4
- cache: bundler
5
- script:
6
- bundle exec rake spec
7
- rvm:
8
- - 2.1.5
9
- matrix:
10
- fast_finish: true
11
- deploy:
12
- provider: rubygems
13
- api_key:
14
- secure: HR9PryqDCSGRJlhjdZHpNLMV5FD6oiJ46WzOebYeIGjZRH64vvV2XmxarH/UZpQLRC1x8V0SJV7ju1f727n3Mp2D36kVLxGkn3QbKL4QFDXdRfCKF+jmckzYM5aAxMl/bbNXegdcNOC0eUODzXyMQffd1c1wvlvxSGRCKBD05ug=
15
- gem: puppet-ghostbuster
16
- on:
17
- tags: true
18
- repo: camptocamp/puppet-ghostbuster
19
- notifications:
20
- email: false