puppet-lint-resource_reference_syntax 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +112 -0
  3. data/README.md +28 -3
  4. data/spec/spec_helper.rb +26 -0
  5. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a46a1903b6d2e1c4f769806edb8969fd1aecfaa0be25a0fe8be7831a94fb634f
4
- data.tar.gz: 7bd63f489f10957be998878845fb88be834390fe6f9947a040e3fffe78189ab5
3
+ metadata.gz: 9c9a6ebde35f12d98df1cce4eca6e732f53066211bd1206b8bbc936abe80d901
4
+ data.tar.gz: 20a5912273e3c6b3721b0c0a0e080d542bf7b3fc9d4175a33345fd1c8a5a50f0
5
5
  SHA512:
6
- metadata.gz: a5a10f947b16541ee913f1ad16a4ba2ffaa978c01228269c42b7a166b172b85911fd1f30752f41e87d67fea4da44637c5210974cae00def70ccdd6512d532d8f
7
- data.tar.gz: 4b555f5fe5fb76d656dbad267d1756d53a19ae8dc07861a094f36c33542c687d2dcfa602ff38bc1d21a12ed44519dbfd16634c2d81d99ef0b986c72743e89f59
6
+ metadata.gz: f99e959beb3b512758423243365efe2fa0006c573595111bca0bebc67c652e699e007ba372931cecd2b277dae4f32a16f4c0ba4e2bf6b36a4be806fbc9cff566
7
+ data.tar.gz: 0f5030dc3ecf4aaba141da1656b4a90feff01721954e8114d28e3bda4ad90f989cb46e60c055daec36e8de8ab0dc27aee978a1d87745ac011d92d3d40629fc76
data/CHANGELOG.md ADDED
@@ -0,0 +1,112 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [1.2.0](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.2.0) (2022-11-29)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.1.0...1.2.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - puppet-lint: Allow 3.x [\#24](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/24) ([bastelfreak](https://github.com/bastelfreak))
12
+
13
+ **Merged pull requests:**
14
+
15
+ - cleanup README.md/gemspec [\#21](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/21) ([bastelfreak](https://github.com/bastelfreak))
16
+
17
+ ## [1.1.0](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.1.0) (2020-04-14)
18
+
19
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.14...1.1.0)
20
+
21
+ **Implemented enhancements:**
22
+
23
+ - Break out quoted refs check and add fix [\#16](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/16) ([danzilio](https://github.com/danzilio))
24
+
25
+ **Closed issues:**
26
+
27
+ - Doesn't detect spaces when using chaining arrows syntax \("Class \['A'\] -\> Class \['B'\]"\) [\#14](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/issues/14)
28
+
29
+ **Merged pull requests:**
30
+
31
+ - Remove ruby 1.9 from testing, add ruby 2.5 [\#17](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/17) ([tuxmea](https://github.com/tuxmea))
32
+
33
+ ## [1.0.14](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.14) (2018-01-04)
34
+
35
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.13...1.0.14)
36
+
37
+ ## [1.0.13](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.13) (2018-01-03)
38
+
39
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.12...1.0.13)
40
+
41
+ ## [1.0.12](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.12) (2018-01-03)
42
+
43
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.11...1.0.12)
44
+
45
+ **Closed issues:**
46
+
47
+ - false resource\_reference\_without\_whitespace on resource collection [\#15](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/issues/15)
48
+ - resource\_reference\_without\_whitespace error on resource collection [\#9](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/issues/9)
49
+
50
+ ## [1.0.11](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.11) (2017-12-30)
51
+
52
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.10...1.0.11)
53
+
54
+ **Merged pull requests:**
55
+
56
+ - release 1.0.10 [\#13](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/13) ([tuxmea](https://github.com/tuxmea))
57
+
58
+ ## [1.0.10](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.10) (2016-11-17)
59
+
60
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.8...1.0.10)
61
+
62
+ **Closed issues:**
63
+
64
+ - False positive for require [\#10](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/issues/10)
65
+
66
+ **Merged pull requests:**
67
+
68
+ - Restrict checking to the matched parameter only [\#12](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/12) ([cbowman0](https://github.com/cbowman0))
69
+ - Improve message for resources missing quotes [\#11](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/11) ([domcleal](https://github.com/domcleal))
70
+ - add travis with voxpupili key [\#8](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/8) ([tuxmea](https://github.com/tuxmea))
71
+ - Release 1.0.9 [\#7](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/7) ([bastelfreak](https://github.com/bastelfreak))
72
+
73
+ ## [1.0.8](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.8) (2016-03-17)
74
+
75
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.7...1.0.8)
76
+
77
+ **Closed issues:**
78
+
79
+ - False warning: resource reference with title with capital letter [\#4](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/issues/4)
80
+ - False warning: whitespce between reference type and title [\#3](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/issues/3)
81
+
82
+ ## [1.0.7](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.7) (2016-03-16)
83
+
84
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.6...1.0.7)
85
+
86
+ **Merged pull requests:**
87
+
88
+ - iterate over resource reference arrays [\#5](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/5) ([tuxmea](https://github.com/tuxmea))
89
+
90
+ ## [1.0.6](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.6) (2016-01-25)
91
+
92
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.5...1.0.6)
93
+
94
+ **Closed issues:**
95
+
96
+ - Wrong match when a variable is in the title [\#1](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/issues/1)
97
+
98
+ **Merged pull requests:**
99
+
100
+ - Fix wrong match on titles with variables \(fixes \#1\) [\#2](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/pull/2) ([vStone](https://github.com/vStone))
101
+
102
+ ## [1.0.5](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.5) (2015-11-26)
103
+
104
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/1.0.4...1.0.5)
105
+
106
+ ## [1.0.4](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/tree/1.0.4) (2015-10-18)
107
+
108
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/compare/5ef5832a944246df5d3e7c781085e3a76357b641...1.0.4)
109
+
110
+
111
+
112
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # puppet-lint plugin resource reference check
2
2
 
3
- **Note, this plugin will check for Puppet resource reference syntax which will no
4
- longer work with Puppet 4.x.**
3
+ [![License](https://img.shields.io/github/license/voxpupuli/puppet-lint-resource_reference_syntax.svg)](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/blob/master/LICENSE)
4
+ [![Test](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/actions/workflows/test.yml)
5
+ [![Release](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-lint-resource_reference_syntax/actions/workflows/release.yml)
6
+ [![RubyGem Version](https://img.shields.io/gem/v/puppet-lint-resource_reference_syntax.svg)](https://rubygems.org/gems/puppet-lint-resource_reference_syntax)
7
+ [![RubyGem Downloads](https://img.shields.io/gem/dt/puppet-lint-resource_reference_syntax.svg)](https://rubygems.org/gems/puppet-lint-resource_reference_syntax)
8
+ [![Donated by example42](https://img.shields.io/badge/donated%20by-example42-fb7047.svg)](#transfer-notice)
9
+
10
+ **Note, this plugin will check for Puppet resource reference syntax which will no longer work with Puppet 4.x.**
5
11
 
6
12
  ## Installation
7
13
 
@@ -55,7 +61,26 @@ The following references are good code for Puppet 4:
55
61
 
56
62
  ```
57
63
  require => Service['apache'],
58
- require => Service['apache', 'mysql'],
64
+ require => Service['apache', 'mysql'],
59
65
  require => [ Service['apache'], Service['mysql'] ],
60
66
  ```
61
67
 
68
+ ## Transfer Notice
69
+
70
+ This plugin was originally authored by [example42](https://example42.de).
71
+ The maintainer preferred that Puppet Community take ownership of the module for future improvement and maintenance.
72
+ Existing pull requests and issues were transferred over, please fork and continue to contribute here instead of Camptocamp.
73
+
74
+ ## License
75
+
76
+ This gem is licensed under the Apache-2 license.
77
+
78
+ ## Release information
79
+
80
+ To make a new release, please do:
81
+ * update the version in the gemspec file
82
+ * Install gems with `bundle install --with release --path .vendor`
83
+ * generate the changelog with `bundle exec rake changelog`
84
+ * Check if the new version matches the closed issues/PRs in the changelog
85
+ * Create a PR with it
86
+ * 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-resource_reference_syntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Martin Alfke
7
+ - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-14 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.0'
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.0'
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
@@ -102,12 +102,13 @@ dependencies:
102
102
  version: '0'
103
103
  description: " Extends puppet-lint to ensure that the reference syntax follows
104
104
  Puppet 4 style\n"
105
- email: ma@example42.com
105
+ email: voxpupuli@groups.io
106
106
  executables: []
107
107
  extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
110
  - ".rspec"
111
+ - CHANGELOG.md
111
112
  - LICENSE
112
113
  - README.md
113
114
  - lib/puppet-lint/plugins/resource_reference_chain_without_whitespace.rb
@@ -121,7 +122,7 @@ files:
121
122
  - spec/spec_helper.rb
122
123
  homepage: https://github.com/voxpupuli/puppet-lint-resource_reference_syntax
123
124
  licenses:
124
- - APL2
125
+ - Apache-2.0
125
126
  metadata: {}
126
127
  post_install_message:
127
128
  rdoc_options: []
@@ -138,14 +139,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  - !ruby/object:Gem::Version
139
140
  version: '0'
140
141
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.7.7
142
+ rubygems_version: 3.2.33
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: puppet-lint reference_syntax check
146
146
  test_files:
147
- - spec/spec_helper.rb
148
- - spec/puppet-lint/plugins/resource_reference_without_whitespace_spec.rb
149
- - spec/puppet-lint/plugins/resource_reference_without_title_capital_spec.rb
150
147
  - spec/puppet-lint/plugins/resource_reference_chain_without_whitespace_spec.rb
151
148
  - spec/puppet-lint/plugins/resource_reference_with_unquoted_title_spec.rb
149
+ - spec/puppet-lint/plugins/resource_reference_without_title_capital_spec.rb
150
+ - spec/puppet-lint/plugins/resource_reference_without_whitespace_spec.rb
151
+ - spec/spec_helper.rb