metadata-json-lint 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +7 -0
- data/CHANGELOG.md +12 -3
- data/Gemfile +3 -1
- data/HISTORY.md +107 -0
- data/README.md +15 -0
- data/Rakefile +14 -0
- data/metadata-json-lint.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39ea4bb8245d43d512bfe5836736e3f75169e607e96cb3e4648ece6acad15682
|
|
4
|
+
data.tar.gz: 15bd5d92e4fc67f302dea753e152b535855304f9e981e3dc3d53aaa09a76bb11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '090f8e01dbb74ac8cf3e50169127a9d7f91ec7c7b74163a2d34850f1ac138976f45a946aea9250611b8c9011f905edb7f11f463891cab97d0ebf1289209cd88b'
|
|
7
|
+
data.tar.gz: 7ff331f16fa434fbf026e2713542b14e959a468e2e944846cffd058db57e80bf60642541c347bb4ce9813c4a52bd8de9f094019a13650ded29de8075ab18c93f
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
|
@@ -11,6 +11,7 @@ rvm:
|
|
|
11
11
|
- 2.4.3
|
|
12
12
|
- 2.4.4
|
|
13
13
|
- 2.5.1
|
|
14
|
+
- 2.7
|
|
14
15
|
|
|
15
16
|
deploy:
|
|
16
17
|
provider: rubygems
|
|
@@ -19,7 +20,13 @@ deploy:
|
|
|
19
20
|
gem: metadata-json-lint
|
|
20
21
|
on:
|
|
21
22
|
tags: true
|
|
23
|
+
rvm: 2.5.1
|
|
22
24
|
repo: voxpupuli/metadata-json-lint
|
|
23
25
|
|
|
24
26
|
notifications:
|
|
25
27
|
email: false
|
|
28
|
+
irc:
|
|
29
|
+
on_success: always
|
|
30
|
+
on_failure: always
|
|
31
|
+
channels:
|
|
32
|
+
- "chat.freenode.org#voxpupuli-notifications"
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
## [v2.4.0](https://github.com/voxpupuli/metadata-json-lint/tree/v2.4.0) (2020-06-12)
|
|
6
|
+
|
|
7
|
+
[Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/2.3.0...v2.4.0)
|
|
8
|
+
|
|
9
|
+
**Merged pull requests:**
|
|
10
|
+
|
|
11
|
+
- Add ruby 2.7 to test matrix [\#110](https://github.com/voxpupuli/metadata-json-lint/pull/110) ([DavidS](https://github.com/DavidS))
|
|
12
|
+
- Publish gem only on one rvm job [\#109](https://github.com/voxpupuli/metadata-json-lint/pull/109) ([bastelfreak](https://github.com/bastelfreak))
|
|
7
13
|
|
|
8
14
|
## 2.3.0
|
|
9
15
|
|
|
@@ -112,3 +118,6 @@ as the vendored `semantic_puppet` was not packaged with Puppet prior to `4.9.0`
|
|
|
112
118
|
* Fix unclear error message when metadata.json does not exist
|
|
113
119
|
* Fix gem publishing date
|
|
114
120
|
* Various test improvements, ensuring failures are caught accurately and precisely
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
data/HISTORY.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
## 2.3.0
|
|
2
|
+
|
|
3
|
+
* Add duplicate testing in requirements list
|
|
4
|
+
* Fix wrong license file content so GitHub can properly detect it
|
|
5
|
+
* Fix a typo in the README.md
|
|
6
|
+
|
|
7
|
+
## 2.2.0
|
|
8
|
+
|
|
9
|
+
* Validate Puppet version_requirement [#99](https://github.com/voxpupuli/metadata-json-lint/issues/99)
|
|
10
|
+
* Add optional check `--strict-puppet-version` to validate the Puppet Agent Version is not EOL or open ended [#100](https://github.com/voxpupuli/metadata-json-lint/pull/100)
|
|
11
|
+
|
|
12
|
+
## 2.1.0
|
|
13
|
+
|
|
14
|
+
### Changes
|
|
15
|
+
|
|
16
|
+
* Improve rendering of post\_install message by trimming unnecessary leading
|
|
17
|
+
spaces [#89](https://github.com/voxpupuli/metadata-json-lint/pull/89)
|
|
18
|
+
* Fail when checking version requirements if the version range is empty
|
|
19
|
+
[#91](https://github.com/voxpupuli/metadata-json-lint/pull/91)
|
|
20
|
+
* Pin `public_suffix` gem to < 3 for Ruby <= 2.0
|
|
21
|
+
[#93](https://github.com/voxpupuli/metadata-json-lint/pull/93)
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
* Prevent metadata-json-lint from crashing when the `requirements` field does
|
|
26
|
+
not contain an array
|
|
27
|
+
[#94](https://github.com/voxpupuli/metadata-json-lint/pull/94)
|
|
28
|
+
* Fix loading of `semantic_puppet` so that it supports using version vendored
|
|
29
|
+
in Puppet (if available)
|
|
30
|
+
[#96](https://github.com/voxpupuli/metadata-json-lint/pull/96)
|
|
31
|
+
|
|
32
|
+
## 2.0.2
|
|
33
|
+
|
|
34
|
+
### Changes
|
|
35
|
+
|
|
36
|
+
* Make SemanticPuppet completely optional and remove dependency on Puppet [#86](https://github.com/voxpupuli/metadata-json-lint/pull/86)
|
|
37
|
+
* Only log open dependency warning with --strict-dependencies [#78](https://github.com/voxpupuli/metadata-json-lint/pull/78)
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
* Fix readme for gemfile usage [#84](https://github.com/voxpupuli/metadata-json-lint/pull/84)
|
|
42
|
+
|
|
43
|
+
## 2.0.1
|
|
44
|
+
|
|
45
|
+
### Changes
|
|
46
|
+
|
|
47
|
+
* Puppet 4.9.0 and newer uses the vendored `semantic_puppet` packaged with Puppet.
|
|
48
|
+
* If using Puppet 4.8.x and earlier, adding `semantic_puppet` to your Gemfile is required
|
|
49
|
+
as the vendored `semantic_puppet` was not packaged with Puppet prior to `4.9.0`
|
|
50
|
+
* Add test environment for Ruby 2.4.1
|
|
51
|
+
|
|
52
|
+
## 2.0.0
|
|
53
|
+
|
|
54
|
+
### Changes
|
|
55
|
+
|
|
56
|
+
* The `semantic_puppet` gem is no longer included as a runtime dependency due to conflicts with Puppet 5.x libraries that break the `puppet module` command. As such, `semantic_puppet` must be added to a user's Gemfile in Puppet <= 4.x. See [Installation](https://github.com/voxpupuli/metadata-json-lint#installation) docs for more info
|
|
57
|
+
* `metadata-json-lint` now officially only supports Ruby >= 2.0.0
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
* Fix puppet 5.x `semantic_puppet` conflicts ([#79](https://github.com/voxpupuli/metadata-json-lint/issues/79))
|
|
62
|
+
* Clarify Ruby >= 2.x only support ([#74](https://github.com/voxpupuli/metadata-json-lint/issues/74))
|
|
63
|
+
|
|
64
|
+
## 1.2.2
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
* Fix `metadata_lint` rake task exiting on success, not continuing ([#70](https://github.com/voxpupuli/metadata-json-lint/issues/70))
|
|
69
|
+
* Fix failure on incorrect license warning when `--no-strict-license` used ([#69](https://github.com/voxpupuli/metadata-json-lint/issues/69))
|
|
70
|
+
|
|
71
|
+
## 1.2.1
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
* Fix missing lib/ files in published gem
|
|
76
|
+
|
|
77
|
+
## 1.2.0
|
|
78
|
+
|
|
79
|
+
### Added
|
|
80
|
+
|
|
81
|
+
* Add `--format`/`-f` option to support a JSON output format
|
|
82
|
+
* Add warning for mixed version range syntax, supported only in Puppet 5
|
|
83
|
+
|
|
84
|
+
### Changed
|
|
85
|
+
|
|
86
|
+
* The default text format mode now outputs more structured messages
|
|
87
|
+
* README has been edited and clarity improved
|
|
88
|
+
|
|
89
|
+
### Fixed
|
|
90
|
+
|
|
91
|
+
* Fix non-zero exit code caused by some checks
|
|
92
|
+
|
|
93
|
+
## 1.1.0
|
|
94
|
+
|
|
95
|
+
### Added
|
|
96
|
+
|
|
97
|
+
* Ensure module `tags` are correctly specified as an array ([#44](https://github.com/voxpupuli/metadata-json-lint/issues/44))
|
|
98
|
+
* Ensure `requirements` doesn't list the deprecated `pe` key ([#46](https://github.com/voxpupuli/metadata-json-lint/issues/46))
|
|
99
|
+
* Ensure `dependencies` aren't listed with `version_range` keys ([#47](https://github.com/voxpupuli/metadata-json-lint/issues/47))
|
|
100
|
+
* Support strictness configuration via Ruby API, for use in rake tasks definitions
|
|
101
|
+
* Show default strictness option values in `--help` output
|
|
102
|
+
|
|
103
|
+
### Fixed
|
|
104
|
+
|
|
105
|
+
* Fix unclear error message when metadata.json does not exist
|
|
106
|
+
* Fix gem publishing date
|
|
107
|
+
* Various test improvements, ensuring failures are caught accurately and precisely
|
data/README.md
CHANGED
|
@@ -63,6 +63,21 @@ MetadataJsonLint.options.strict_license = false
|
|
|
63
63
|
* `--[no-]fail-on-warnings`: Whether to fail on warnings. Defaults to `true`.
|
|
64
64
|
* `--[no-]strict-puppet-version`: Whether to fail if Puppet version requirements are open-ended or no longer supported. Defaults to `false`.
|
|
65
65
|
|
|
66
|
+
|
|
67
|
+
## Make a new release
|
|
68
|
+
|
|
69
|
+
To make a new release, we need to install the release gem group:
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
bundle install --path .vendor/ --with release
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Afterwards export a GitHub access token (otherwise you might run into API rate limits):
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
export CHANGELOG_GITHUB_TOKEN=...
|
|
79
|
+
```
|
|
80
|
+
|
|
66
81
|
## Contributors
|
|
67
82
|
|
|
68
83
|
A big thank you to the [contributors](https://github.com/voxpupuli/metadata-json-lint/graphs/contributors).
|
data/Rakefile
CHANGED
|
@@ -13,3 +13,17 @@ end
|
|
|
13
13
|
|
|
14
14
|
require 'rspec/core/rake_task'
|
|
15
15
|
RSpec::Core::RakeTask.new(:spec)
|
|
16
|
+
|
|
17
|
+
begin
|
|
18
|
+
require 'github_changelog_generator/task'
|
|
19
|
+
|
|
20
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
21
|
+
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
|
|
22
|
+
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
|
|
23
|
+
config.user = 'voxpupuli'
|
|
24
|
+
config.project = 'metadata-json-lint'
|
|
25
|
+
config.future_release = "v#{Gem::Specification.load("#{config.project}.gemspec").version}"
|
|
26
|
+
end
|
|
27
|
+
rescue LoadError
|
|
28
|
+
puts 'no github_changelog_generator gem available'
|
|
29
|
+
end
|
data/metadata-json-lint.gemspec
CHANGED
|
@@ -2,7 +2,7 @@ require 'date'
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'metadata-json-lint'
|
|
5
|
-
s.version = '2.
|
|
5
|
+
s.version = '2.4.0'
|
|
6
6
|
s.date = Date.today.to_s
|
|
7
7
|
s.summary = 'metadata-json-lint /path/to/metadata.json'
|
|
8
8
|
s.description = 'Utility to verify Puppet metadata.json files'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metadata-json-lint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.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: 2020-
|
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: spdx-licenses
|
|
@@ -122,6 +122,7 @@ files:
|
|
|
122
122
|
- ".travis.yml"
|
|
123
123
|
- CHANGELOG.md
|
|
124
124
|
- Gemfile
|
|
125
|
+
- HISTORY.md
|
|
125
126
|
- LICENSE
|
|
126
127
|
- README.md
|
|
127
128
|
- Rakefile
|