puppet-lint-optional_default-check 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0859f8a9068f1cb24f9add5622e123bdce3bd32bdf686c2445442806add79dad'
4
- data.tar.gz: 212ef6664c4ad98b77160e490d72b69e2404c8c32cff3de0a4265e380579c1fe
3
+ metadata.gz: df560d3834ffbfff9719ff5a8116b46d4776532bd454a05065c7f8e7ea4b4af8
4
+ data.tar.gz: dd6fd1ca00c18c75c7685e8a94782ffaacbb12f2720f450ce0ba28438b86f6d7
5
5
  SHA512:
6
- metadata.gz: 751ab59ba4cd193955767a5b6bc8090f871ef204a2c7ad52dc8b286936d443c775800b677723d85f4b0619bb164a5da58782dc0ee8c332090f589f6ac6b5c1c4
7
- data.tar.gz: f24cb90b805fbc43e91de287a22ba7beefe578d5c0c82947526af5e56bf36cd286d94c3987d22d8886c7270bc04d6ff13b53c3c630abc86964c770620b1b9dd9
6
+ metadata.gz: 5fee8bed935766d12c7e36ed0cc8543867972ed891725ed888efe8b16b6248c323be7744d85be812912b35687b4aaf85c9625f82ab4bc4e5630b2ccdad2e45ab
7
+ data.tar.gz: abb52f36460b04b8648cf6775f5650d3f3f6b0f735a0bf034611c7fa75074966ed13970edd5521172d2504a3bda435f8c61c52e98325fd5398503444cc2914f0
data/CHANGELOG.md ADDED
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [2.0.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/2.0.0) (2023-04-21)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/1.1.0...2.0.0)
8
+
9
+ **Breaking changes:**
10
+
11
+ - Drop Ruby \< 2.7; Add RuboCop [\#10](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/10) ([bastelfreak](https://github.com/bastelfreak))
12
+
13
+ ## [1.1.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/1.1.0) (2022-11-29)
14
+
15
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/1.0.0...1.1.0)
16
+
17
+ **Implemented enhancements:**
18
+
19
+ - puppet-lint: Allow 3.x [\#8](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/8) ([bastelfreak](https://github.com/bastelfreak))
20
+
21
+ **Merged pull requests:**
22
+
23
+ - Update README [\#4](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/4) ([alexjfisher](https://github.com/alexjfisher))
24
+
25
+ ## [1.0.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/1.0.0) (2021-04-07)
26
+
27
+ [Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/86680658ccf06c10a278cdd6daa31e0c3a978023...1.0.0)
28
+
29
+ **Merged pull requests:**
30
+
31
+ - Depend on puppet-lint 2.x not 1.x [\#2](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/2) ([alexjfisher](https://github.com/alexjfisher))
32
+ - Add github test workflow [\#1](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/1) ([alexjfisher](https://github.com/alexjfisher))
33
+
34
+
35
+
36
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -1,8 +1,27 @@
1
1
  puppet-lint-optional\_default-check
2
2
  ===================================
3
3
 
4
+ [![License](https://img.shields.io/github/license/voxpupuli/puppet-lint-optional_default-check.svg)](https://github.com/voxpupuli/puppet-lint-optional_default-check/blob/master/LICENSE)
5
+ [![Test](https://github.com/voxpupuli/puppet-lint-optional_default-check/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/puppet-lint-optional_default-check/actions/workflows/test.yml)
6
+ [![Release](https://github.com/voxpupuli/puppet-lint-optional_default-check/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/puppet-lint-optional_default-check/actions/workflows/release.yml)
7
+ [![RubyGem Version](https://img.shields.io/gem/v/puppet-lint-optional_default-check.svg)](https://rubygems.org/gems/puppet-lint-optional_default-check)
8
+ [![RubyGem Downloads](https://img.shields.io/gem/dt/puppet-lint-optional_default-check.svg)](https://rubygems.org/gems/puppet-lint-optional_default-check)
9
+ [![Donated by Alexander Fisher](https://img.shields.io/badge/donated%20by-Alexander%20Fisher-fb7047.svg)](#transfer-notice)
10
+
11
+
4
12
  A puppet-lint plugin to check that `Optional` parameters don't default to something other than `undef`.
5
13
 
14
+ ## Table of contents
15
+
16
+ * [Installing](#installing)
17
+ * [From the command line](#from-the-command-line)
18
+ * [In a Gemfile](#in-a-gemfile)
19
+ * [Checks](#checks)
20
+ * [Copyright](#copyright)
21
+ * [Transfer notice](#transfer-notice)
22
+ * [License](#license)
23
+ * [Release Informaion](#release-information)
24
+
6
25
  ## Installing
7
26
 
8
27
  ### From the command line
@@ -61,8 +80,25 @@ class foo (
61
80
  }
62
81
  ```
63
82
 
64
- # Copyright
83
+ ## Copyright
65
84
 
66
85
  Copyright 2021 Alexander Fisher
67
86
 
68
- Licensed under the MIT License.
87
+ ## Transfer Notice
88
+
89
+ This plugin was originally authored by [Alexander Fisher](https://github.com/alexjfisher).
90
+ The maintainer preferred that [Vox Pupuli](https://voxpupuli.org/) take ownership of the module for future improvement and maintenance.
91
+ Existing pull requests and issues were transferred, please fork and continue to contribute [here](https://github.com/voxpupuli/puppet-lint-optional_default-check) instead of on Alex's [fork](https://github.com/alexjfisher/puppet-lint-optional_default-check).
92
+
93
+ ## License
94
+
95
+ This gem is licensed under the MIT license.
96
+
97
+ ## Release information
98
+
99
+ To make a new release, please do:
100
+ * Update the version in the `puppet-lint-optional_default-check.gemspec` file
101
+ * Install gems with `bundle install --with release --path .vendor`
102
+ * generate the changelog with `bundle exec rake changelog`
103
+ * Create a PR with it
104
+ * After it got merged, push a tag. A github workflow will do the actual release
@@ -19,7 +19,7 @@ PuppetLint.new_check(:optional_default) do
19
19
  :warning,
20
20
  message: 'Optional parameter defaults to something other than undef',
21
21
  line: param.line,
22
- column: param.column
22
+ column: param.column,
23
23
  )
24
24
  end
25
25
 
@@ -34,7 +34,7 @@ PuppetLint.new_check(:optional_default) do
34
34
  :warning,
35
35
  message: 'Optional defined type parameter doesn\'t have a default',
36
36
  line: param.line,
37
- column: param.column
37
+ column: param.column,
38
38
  )
39
39
  end
40
40
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,29 @@
1
1
  # frozen_string_literal: true
2
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
+
3
27
  require 'puppet-lint'
4
28
 
5
29
  PuppetLint::Plugins.load_spec_helper
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-optional_default-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Alexander Fisher
7
+ - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint
@@ -16,159 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '3'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '3.0'
22
+ version: '5'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '2.1'
29
+ version: '3'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '3.0'
33
- - !ruby/object:Gem::Dependency
34
- name: rspec
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3.0'
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
47
- - !ruby/object:Gem::Dependency
48
- name: rspec-its
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1.0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '1.0'
61
- - !ruby/object:Gem::Dependency
62
- name: rspec-collection_matchers
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '1.0'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '1.0'
75
- - !ruby/object:Gem::Dependency
76
- name: rake
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
- - !ruby/object:Gem::Dependency
90
- name: coveralls
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '0.7'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '0.7'
103
- - !ruby/object:Gem::Dependency
104
- name: rubocop
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: 1.11.0
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: 1.11.0
117
- - !ruby/object:Gem::Dependency
118
- name: rubocop-rspec
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: 2.2.0
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: 2.2.0
131
- - !ruby/object:Gem::Dependency
132
- name: rubocop-rake
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: 0.5.1
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: 0.5.1
145
- - !ruby/object:Gem::Dependency
146
- name: rubocop-performance
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: 1.10.2
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: 1.10.2
32
+ version: '5'
159
33
  description: " A puppet-lint plugin to check that Optional class/defined type parameters
160
34
  don't default to anything other than `undef`.\n"
161
- email: alex@linfratech.co.uk
35
+ email: voxpupuli@groups.io
162
36
  executables: []
163
37
  extensions: []
164
38
  extra_rdoc_files: []
165
39
  files:
40
+ - CHANGELOG.md
166
41
  - LICENSE
167
42
  - README.md
168
43
  - lib/puppet-lint/plugins/check_optional_default.rb
169
44
  - spec/puppet-lint/plugins/check_optional_default_spec.rb
170
45
  - spec/spec_helper.rb
171
- homepage: https://github.com/alexjfisher/puppet-lint-optional_default-check
46
+ homepage: https://github.com/voxpupuli/puppet-lint-optional_default-check
172
47
  licenses:
173
48
  - MIT
174
49
  metadata: {}
@@ -180,17 +55,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
55
  requirements:
181
56
  - - ">="
182
57
  - !ruby/object:Gem::Version
183
- version: 2.4.0
58
+ version: 2.7.0
184
59
  required_rubygems_version: !ruby/object:Gem::Requirement
185
60
  requirements:
186
61
  - - ">="
187
62
  - !ruby/object:Gem::Version
188
63
  version: '0'
189
64
  requirements: []
190
- rubygems_version: 3.1.6
65
+ rubygems_version: 3.2.33
191
66
  signing_key:
192
67
  specification_version: 4
193
68
  summary: A puppet-lint plugin to check Optional parameters default to `undef`
194
- test_files:
195
- - spec/puppet-lint/plugins/check_optional_default_spec.rb
196
- - spec/spec_helper.rb
69
+ test_files: []