puppet-lint-optional_default-check 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/README.md +38 -2
- data/spec/spec_helper.rb +24 -0
- metadata +20 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de44c31d4730a35821299f4f763aadd7c5a7433ff280a4ec6cf3de4de07f233a
|
4
|
+
data.tar.gz: 7ca6a112bde8f2caa60d91061df61a2462cd5c7a1cdea17f0c1604bce5d5a049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb7cbeec130546ddb67629c1dab596e6ae93bf0a17078d99b0cdcea053989fc54ab68dd01c3f1c9becc483f0f5150a621b72b2914d4c6002e0933e28374a8105
|
7
|
+
data.tar.gz: 9de52a87a4d4dc5e42ea4c01de6d7a049f0eb675ce1d8625054d69f3f12377d704894ad9ad2b134f2f1f86e86fa9a4d2125f591353d3f5eb75038eed10c13c6a
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
## [1.1.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/1.1.0) (2022-11-29)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/1.0.0...1.1.0)
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- puppet-lint: Allow 3.x [\#8](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/8) ([bastelfreak](https://github.com/bastelfreak))
|
12
|
+
|
13
|
+
**Merged pull requests:**
|
14
|
+
|
15
|
+
- Update README [\#4](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/4) ([alexjfisher](https://github.com/alexjfisher))
|
16
|
+
|
17
|
+
## [1.0.0](https://github.com/voxpupuli/puppet-lint-optional_default-check/tree/1.0.0) (2021-04-07)
|
18
|
+
|
19
|
+
[Full Changelog](https://github.com/voxpupuli/puppet-lint-optional_default-check/compare/86680658ccf06c10a278cdd6daa31e0c3a978023...1.0.0)
|
20
|
+
|
21
|
+
**Merged pull requests:**
|
22
|
+
|
23
|
+
- 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))
|
24
|
+
- Add github test workflow [\#1](https://github.com/voxpupuli/puppet-lint-optional_default-check/pull/1) ([alexjfisher](https://github.com/alexjfisher))
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
\* *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
|
-
|
83
|
+
## Copyright
|
65
84
|
|
66
85
|
Copyright 2021 Alexander Fisher
|
67
86
|
|
68
|
-
|
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
|
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.
|
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:
|
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: '2.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
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: '2.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '4'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rspec
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +73,7 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '1.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: rspec-json_expectations
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
@@ -87,88 +87,47 @@ dependencies:
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
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
|
90
|
+
name: rake
|
133
91
|
requirement: !ruby/object:Gem::Requirement
|
134
92
|
requirements:
|
135
|
-
- - "
|
93
|
+
- - ">="
|
136
94
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0
|
95
|
+
version: '0'
|
138
96
|
type: :development
|
139
97
|
prerelease: false
|
140
98
|
version_requirements: !ruby/object:Gem::Requirement
|
141
99
|
requirements:
|
142
|
-
- - "
|
100
|
+
- - ">="
|
143
101
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0
|
102
|
+
version: '0'
|
145
103
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
104
|
+
name: simplecov
|
147
105
|
requirement: !ruby/object:Gem::Requirement
|
148
106
|
requirements:
|
149
|
-
- - "
|
107
|
+
- - ">="
|
150
108
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
109
|
+
version: '0'
|
152
110
|
type: :development
|
153
111
|
prerelease: false
|
154
112
|
version_requirements: !ruby/object:Gem::Requirement
|
155
113
|
requirements:
|
156
|
-
- - "
|
114
|
+
- - ">="
|
157
115
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
116
|
+
version: '0'
|
159
117
|
description: " A puppet-lint plugin to check that Optional class/defined type parameters
|
160
118
|
don't default to anything other than `undef`.\n"
|
161
|
-
email:
|
119
|
+
email: voxpupuli@groups.io
|
162
120
|
executables: []
|
163
121
|
extensions: []
|
164
122
|
extra_rdoc_files: []
|
165
123
|
files:
|
124
|
+
- CHANGELOG.md
|
166
125
|
- LICENSE
|
167
126
|
- README.md
|
168
127
|
- lib/puppet-lint/plugins/check_optional_default.rb
|
169
128
|
- spec/puppet-lint/plugins/check_optional_default_spec.rb
|
170
129
|
- spec/spec_helper.rb
|
171
|
-
homepage: https://github.com/
|
130
|
+
homepage: https://github.com/voxpupuli/puppet-lint-optional_default-check
|
172
131
|
licenses:
|
173
132
|
- MIT
|
174
133
|
metadata: {}
|
@@ -187,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
146
|
- !ruby/object:Gem::Version
|
188
147
|
version: '0'
|
189
148
|
requirements: []
|
190
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.2.33
|
191
150
|
signing_key:
|
192
151
|
specification_version: 4
|
193
152
|
summary: A puppet-lint plugin to check Optional parameters default to `undef`
|