puppet-lint-anchor-check 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +23 -5
  3. data/spec/spec_helper.rb +26 -0
  4. metadata +20 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 973065a6dc4e56d783261252389437062b6ae9b4
4
- data.tar.gz: 3c16f68ccec57d362b5a453f10f72e4812b2f4f6
2
+ SHA256:
3
+ metadata.gz: 4e36f86abb0ce83609fd9890d8c70fc0417ca61839f9d41a22fd6bd07968b3cb
4
+ data.tar.gz: f17ad39ae2838809a115e836c4e13b01f48ac01cbf201a17ec871a813c4892f0
5
5
  SHA512:
6
- metadata.gz: 9c40abf769c153dfba97a31955dd3d6e21323866de3c4b610042e366b20970e9f590f8a60f278c25342f33717ed855dfb3efcdd0820eedf123d11adb0e42af0a
7
- data.tar.gz: 0d29caa0dd3a967a507a3223bf87321b6a7b9e89726b813b8c4a9a108e0e71e867747d46bb4e2a83108780350429c5b89f0c80431a50ae4b8e95b9918f22528b
6
+ metadata.gz: 2f31ae615f8cc02f25df2b09743c8213bbf8ece0d40561a0976b995f101da621b496e12234b0eabe21c5bad6fbb0378e25b6a1088b35246849716e80eaa04fab
7
+ data.tar.gz: ca86f5f5321a5f579a232ac4a06eecf2ba0d308d6cf787128479edcf99a2d997604321909eb0e9606c0c8bdbcd1ac311e55affc2631da67cd29750764e778a09
data/README.md CHANGED
@@ -1,6 +1,14 @@
1
1
  puppet-lint-anchor-check
2
2
  ========================
3
3
 
4
+ [![License](https://img.shields.io/github/license/voxpupuli/puppet-lint-anchor-check.svg)](https://github.com/voxpupuli/puppet-lint-anchor-check/blob/master/LICENSE)
5
+ [![Test](https://github.com/voxpupuli/puppet-lint-anchor-check/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/puppet-lint-anchor-check/actions/workflows/test.yml)
6
+ [![codecov](https://codecov.io/gh/voxpupuli/puppet-lint-anchor-check/branch/master/graph/badge.svg?token=Mypkl78hvK)](https://codecov.io/gh/voxpupuli/puppet-lint-anchor-check)
7
+ [![Release](https://github.com/voxpupuli/puppet-lint-anchor-check/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-lint-anchor-check/actions/workflows/release.yml)
8
+ [![RubyGem Version](https://img.shields.io/gem/v/puppet-lint-anchor-check.svg)](https://rubygems.org/gems/puppet-lint-anchor-check)
9
+ [![RubyGem Downloads](https://img.shields.io/gem/dt/puppet-lint-anchor-check.svg)](https://rubygems.org/gems/puppet-lint-anchor-check)
10
+ [![Donated by Alexander Fisher](https://img.shields.io/badge/donated%20by-Alexander%20Fisher-fb7047.svg)](#copyright)
11
+
4
12
  A puppet-lint plugin to check that `anchor` resources are unused.
5
13
 
6
14
  ## Installing
@@ -27,15 +35,15 @@ The anchor pattern should be replaced with the `contain` function.
27
35
 
28
36
  ```puppet
29
37
  anchor { 'foo::begin': }
30
- -> class { 'foo::install': }
31
- -> class { 'foo::config': }
32
- ~> class { 'foo::service': }
33
- -> anchor { 'foo::end': }
38
+ -> class { 'foo::install': }
39
+ -> class { 'foo::config': }
40
+ ~> class { 'foo::service': }
41
+ -> anchor { 'foo::end': }
34
42
  ```
35
43
 
36
44
  #### What you should have done
37
45
 
38
- ```
46
+ ```puppet
39
47
  contain 'foo::install'
40
48
  contain 'foo::config'
41
49
  contain 'foo::service'
@@ -60,3 +68,13 @@ distributed under the License is distributed on an "AS IS" BASIS,
60
68
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
61
69
  See the License for the specific language governing permissions and
62
70
  limitations under the License.
71
+
72
+ ## Release information
73
+
74
+ To make a new release, please do:
75
+ * update the version in the gemspec file
76
+ * Install gems with `bundle install --with release --path .vendor`
77
+ * generate the changelog with `bundle exec rake changelog`
78
+ * Check if the new version matches the closed issues/PRs in the changelog
79
+ * Create a PR with it
80
+ * After it got merged, push a tag. GitHub actions will do the actual release to rubygems and GitHub Packages
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ begin
4
+ require 'simplecov'
5
+ require 'simplecov-console'
6
+ require 'codecov'
7
+ rescue LoadError
8
+ else
9
+ SimpleCov.start do
10
+ track_files 'lib/**/*.rb'
11
+
12
+ add_filter '/spec'
13
+
14
+ enable_coverage :branch
15
+
16
+ # do not track vendored files
17
+ add_filter '/vendor'
18
+ add_filter '/.vendor'
19
+ end
20
+
21
+ SimpleCov.formatters = [
22
+ SimpleCov::Formatter::Console,
23
+ SimpleCov::Formatter::Codecov,
24
+ ]
25
+ end
26
+
1
27
  require 'puppet-lint'
2
28
 
3
29
  PuppetLint::Plugins.load_spec_helper
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-anchor-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-07 00:00:00.000000000 Z
11
+ date: 2022-11-29 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.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '3.0'
22
+ version: '4'
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.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '3.0'
32
+ version: '4'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -86,8 +86,21 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
- description: |2
90
- A check for puppet-lint that validates no anchor resources are used
89
+ - !ruby/object:Gem::Dependency
90
+ name: simplecov
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ description: " A check for puppet-lint that validates no anchor resources are used\n"
91
104
  email: voxpupuli@groups.io
92
105
  executables: []
93
106
  extensions: []
@@ -117,8 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
130
  - !ruby/object:Gem::Version
118
131
  version: '0'
119
132
  requirements: []
120
- rubyforge_project:
121
- rubygems_version: 2.6.13
133
+ rubygems_version: 3.2.33
122
134
  signing_key:
123
135
  specification_version: 4
124
136
  summary: puppet-lint check to validate legacy anchor pattern is not used