metadata-json-lint 4.2.1 → 4.3.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/.github/release.yml +41 -0
- data/.github/workflows/release.yml +91 -17
- data/.github/workflows/test.yml +11 -6
- data/CHANGELOG.md +8 -7
- data/Gemfile +3 -3
- data/Rakefile +1 -1
- data/metadata-json-lint.gemspec +3 -3
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d20583e661295bcedc18d61c1f76d76a8dadc0321330ee2cfab048e10c831d9e
|
4
|
+
data.tar.gz: 6f8cba57ac328974b466f0a024f7eba469f5a8e480c517c8b9f78ff99c7d36c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aeb5b62c63a308ecbf3643a11c77521895d56588e00c4b9fd37adfcc0de8c46425b6810d45d259c213e34a4df0249ec1a90bef05bd77d6123cab2381488a623
|
7
|
+
data.tar.gz: 57326168502d2e047389764627f94ad5254d867a7ed82bb751f34787bea6413f8481143bf9c5b463ff021b2e24793d540ffc40d8bab693d4e7539db6475da664
|
data/.github/release.yml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
|
3
|
+
|
4
|
+
changelog:
|
5
|
+
exclude:
|
6
|
+
labels:
|
7
|
+
- duplicate
|
8
|
+
- invalid
|
9
|
+
- modulesync
|
10
|
+
- question
|
11
|
+
- skip-changelog
|
12
|
+
- wont-fix
|
13
|
+
- wontfix
|
14
|
+
- github_actions
|
15
|
+
|
16
|
+
categories:
|
17
|
+
- title: Breaking Changes 🛠
|
18
|
+
labels:
|
19
|
+
- backwards-incompatible
|
20
|
+
|
21
|
+
- title: New Features 🎉
|
22
|
+
labels:
|
23
|
+
- enhancement
|
24
|
+
|
25
|
+
- title: Bug Fixes 🐛
|
26
|
+
labels:
|
27
|
+
- bug
|
28
|
+
- bugfix
|
29
|
+
|
30
|
+
- title: Documentation Updates 📚
|
31
|
+
labels:
|
32
|
+
- documentation
|
33
|
+
- docs
|
34
|
+
|
35
|
+
- title: Dependency Updates ⬆️
|
36
|
+
labels:
|
37
|
+
- dependencies
|
38
|
+
|
39
|
+
- title: Other Changes
|
40
|
+
labels:
|
41
|
+
- "*"
|
@@ -1,32 +1,106 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
name: Gem Release
|
2
3
|
|
3
4
|
on:
|
4
5
|
push:
|
5
6
|
tags:
|
6
7
|
- '*'
|
7
8
|
|
9
|
+
permissions: {}
|
10
|
+
|
8
11
|
jobs:
|
9
|
-
release:
|
10
|
-
|
12
|
+
build-release:
|
13
|
+
# Prevent releases from forked repositories
|
11
14
|
if: github.repository_owner == 'voxpupuli'
|
15
|
+
name: Build the gem
|
16
|
+
runs-on: ubuntu-24.04
|
12
17
|
steps:
|
13
|
-
- uses: actions/checkout@
|
14
|
-
- name: Install Ruby
|
18
|
+
- uses: actions/checkout@v5
|
19
|
+
- name: Install Ruby
|
15
20
|
uses: ruby/setup-ruby@v1
|
16
21
|
with:
|
17
|
-
ruby-version: '
|
18
|
-
env:
|
19
|
-
BUNDLE_WITHOUT: release
|
22
|
+
ruby-version: 'ruby'
|
20
23
|
- name: Build gem
|
21
|
-
|
24
|
+
shell: bash
|
25
|
+
run: gem build --verbose *.gemspec
|
26
|
+
- name: Upload gem to GitHub cache
|
27
|
+
uses: actions/upload-artifact@v4
|
28
|
+
with:
|
29
|
+
name: gem-artifact
|
30
|
+
path: '*.gem'
|
31
|
+
retention-days: 1
|
32
|
+
compression-level: 0
|
33
|
+
|
34
|
+
create-github-release:
|
35
|
+
needs: build-release
|
36
|
+
name: Create GitHub release
|
37
|
+
runs-on: ubuntu-24.04
|
38
|
+
permissions:
|
39
|
+
contents: write # clone repo and create release
|
40
|
+
steps:
|
41
|
+
- name: Download gem from GitHub cache
|
42
|
+
uses: actions/download-artifact@v5
|
43
|
+
with:
|
44
|
+
name: gem-artifact
|
45
|
+
- name: Create Release
|
46
|
+
shell: bash
|
47
|
+
env:
|
48
|
+
GH_TOKEN: ${{ github.token }}
|
49
|
+
run: gh release create --repo ${{ github.repository }} ${{ github.ref_name }} --generate-notes *.gem
|
50
|
+
|
51
|
+
release-to-github:
|
52
|
+
needs: build-release
|
53
|
+
name: Release to GitHub
|
54
|
+
runs-on: ubuntu-24.04
|
55
|
+
permissions:
|
56
|
+
packages: write # publish to rubygems.pkg.github.com
|
57
|
+
steps:
|
58
|
+
- name: Download gem from GitHub cache
|
59
|
+
uses: actions/download-artifact@v5
|
60
|
+
with:
|
61
|
+
name: gem-artifact
|
62
|
+
- name: Publish gem to GitHub packages
|
63
|
+
run: gem push --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
|
64
|
+
env:
|
65
|
+
GEM_HOST_API_KEY: ${{ secrets.GITHUB_TOKEN }}
|
66
|
+
|
67
|
+
release-to-rubygems:
|
68
|
+
needs: build-release
|
69
|
+
name: Release gem to rubygems.org
|
70
|
+
runs-on: ubuntu-24.04
|
71
|
+
environment: release # recommended by rubygems.org
|
72
|
+
permissions:
|
73
|
+
id-token: write # rubygems.org authentication
|
74
|
+
steps:
|
75
|
+
- name: Download gem from GitHub cache
|
76
|
+
uses: actions/download-artifact@v5
|
77
|
+
with:
|
78
|
+
name: gem-artifact
|
79
|
+
- uses: rubygems/configure-rubygems-credentials@v1.0.0
|
22
80
|
- name: Publish gem to rubygems.org
|
81
|
+
shell: bash
|
23
82
|
run: gem push *.gem
|
24
|
-
|
25
|
-
|
26
|
-
|
83
|
+
|
84
|
+
release-verification:
|
85
|
+
name: Check that all releases are done
|
86
|
+
runs-on: ubuntu-24.04
|
87
|
+
permissions:
|
88
|
+
contents: read # minimal permissions that we have to grant
|
89
|
+
needs:
|
90
|
+
- create-github-release
|
91
|
+
- release-to-github
|
92
|
+
- release-to-rubygems
|
93
|
+
steps:
|
94
|
+
- name: Download gem from GitHub cache
|
95
|
+
uses: actions/download-artifact@v5
|
96
|
+
with:
|
97
|
+
name: gem-artifact
|
98
|
+
- name: Install Ruby
|
99
|
+
uses: ruby/setup-ruby@v1
|
100
|
+
with:
|
101
|
+
ruby-version: 'ruby'
|
102
|
+
- name: Wait for release to propagate
|
103
|
+
shell: bash
|
27
104
|
run: |
|
28
|
-
|
29
|
-
|
30
|
-
chmod 0600 ~/.gem/credentials
|
31
|
-
- name: Publish gem to GitHub packages
|
32
|
-
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
|
105
|
+
gem install rubygems-await
|
106
|
+
gem await *.gem
|
data/.github/workflows/test.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
name: Test
|
2
3
|
|
3
4
|
on:
|
@@ -6,8 +7,8 @@ on:
|
|
6
7
|
branches:
|
7
8
|
- master
|
8
9
|
|
9
|
-
|
10
|
-
|
10
|
+
permissions:
|
11
|
+
contents: read
|
11
12
|
|
12
13
|
jobs:
|
13
14
|
rubocop_and_matrix:
|
@@ -15,7 +16,7 @@ jobs:
|
|
15
16
|
outputs:
|
16
17
|
ruby: ${{ steps.ruby.outputs.versions }}
|
17
18
|
steps:
|
18
|
-
- uses: actions/checkout@
|
19
|
+
- uses: actions/checkout@v5
|
19
20
|
- name: Install Ruby 3.4
|
20
21
|
uses: ruby/setup-ruby@v1
|
21
22
|
with:
|
@@ -35,7 +36,7 @@ jobs:
|
|
35
36
|
matrix:
|
36
37
|
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
37
38
|
steps:
|
38
|
-
- uses: actions/checkout@
|
39
|
+
- uses: actions/checkout@v5
|
39
40
|
- name: Setup ruby
|
40
41
|
uses: ruby/setup-ruby@v1
|
41
42
|
with:
|
@@ -47,9 +48,13 @@ jobs:
|
|
47
48
|
run: gem build --strict --verbose *.gemspec
|
48
49
|
|
49
50
|
tests:
|
51
|
+
if: always()
|
50
52
|
needs:
|
51
53
|
- test
|
52
|
-
runs-on: ubuntu-
|
54
|
+
runs-on: ubuntu-24.04
|
53
55
|
name: Test suite
|
54
56
|
steps:
|
55
|
-
-
|
57
|
+
- name: Decide whether the needed jobs succeeded or failed
|
58
|
+
uses: re-actors/alls-green@release/v1
|
59
|
+
with:
|
60
|
+
jobs: ${{ toJSON(needs) }}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.3.0](https://github.com/voxpupuli/metadata-json-lint/tree/4.3.0) (2025-08-12)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/4.2.1...4.3.0)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- json-schema: Allow 6.x [\#164](https://github.com/voxpupuli/metadata-json-lint/pull/164) ([bastelfreak](https://github.com/bastelfreak))
|
10
|
+
|
3
11
|
## [4.2.1](https://github.com/voxpupuli/metadata-json-lint/tree/4.2.1) (2025-02-23)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/4.2.0...4.2.1)
|
@@ -27,7 +35,6 @@
|
|
27
35
|
|
28
36
|
- CI: Switch to voxpupuli/ruby-version [\#156](https://github.com/voxpupuli/metadata-json-lint/pull/156) ([bastelfreak](https://github.com/bastelfreak))
|
29
37
|
- Drop code coverage in testing [\#153](https://github.com/voxpupuli/metadata-json-lint/pull/153) ([ekohl](https://github.com/ekohl))
|
30
|
-
- Update voxpupuli-rubocop requirement from ~\> 2.8.0 to ~\> 3.0.0 [\#147](https://github.com/voxpupuli/metadata-json-lint/pull/147) ([dependabot[bot]](https://github.com/apps/dependabot))
|
31
38
|
|
32
39
|
## [4.1.0](https://github.com/voxpupuli/metadata-json-lint/tree/4.1.0) (2024-08-19)
|
33
40
|
|
@@ -54,7 +61,6 @@
|
|
54
61
|
|
55
62
|
**Merged pull requests:**
|
56
63
|
|
57
|
-
- Update voxpupuli-rubocop requirement from ~\> 1.2 to ~\> 2.0 [\#139](https://github.com/voxpupuli/metadata-json-lint/pull/139) ([dependabot[bot]](https://github.com/apps/dependabot))
|
58
64
|
- Make semantic\_puppet a hard dependency [\#136](https://github.com/voxpupuli/metadata-json-lint/pull/136) ([bastelfreak](https://github.com/bastelfreak))
|
59
65
|
- Drop pry development dependency [\#134](https://github.com/voxpupuli/metadata-json-lint/pull/134) ([bastelfreak](https://github.com/bastelfreak))
|
60
66
|
- GCG: Add faraday-retry dep [\#132](https://github.com/voxpupuli/metadata-json-lint/pull/132) ([bastelfreak](https://github.com/bastelfreak))
|
@@ -76,10 +82,6 @@
|
|
76
82
|
|
77
83
|
[Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/3.0.1...3.0.2)
|
78
84
|
|
79
|
-
**Merged pull requests:**
|
80
|
-
|
81
|
-
- Update json-schema requirement from ~\> 2.8 to \>= 2.8, \< 4.0 [\#121](https://github.com/voxpupuli/metadata-json-lint/pull/121) ([dependabot[bot]](https://github.com/apps/dependabot))
|
82
|
-
|
83
85
|
## [3.0.1](https://github.com/voxpupuli/metadata-json-lint/tree/3.0.1) (2021-08-13)
|
84
86
|
|
85
87
|
[Full Changelog](https://github.com/voxpupuli/metadata-json-lint/compare/3.0.0...3.0.1)
|
@@ -92,7 +94,6 @@
|
|
92
94
|
|
93
95
|
**Merged pull requests:**
|
94
96
|
|
95
|
-
- Update rubocop requirement from ~\> 0.50.0 to ~\> 0.57.2 [\#117](https://github.com/voxpupuli/metadata-json-lint/pull/117) ([dependabot[bot]](https://github.com/apps/dependabot))
|
96
97
|
- Add GitHub actions + badges [\#116](https://github.com/voxpupuli/metadata-json-lint/pull/116) ([bastelfreak](https://github.com/bastelfreak))
|
97
98
|
|
98
99
|
## [3.0.0](https://github.com/voxpupuli/metadata-json-lint/tree/3.0.0) (2020-11-24)
|
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
group :release do
|
6
|
-
gem 'faraday-retry', require: false
|
7
|
-
gem 'github_changelog_generator', require: false
|
5
|
+
group :release, optional: true do
|
6
|
+
gem 'faraday-retry', '~> 2.1', require: false
|
7
|
+
gem 'github_changelog_generator', '~> 1.16.4', require: false
|
8
8
|
end
|
data/Rakefile
CHANGED
@@ -24,7 +24,7 @@ rescue LoadError
|
|
24
24
|
# github_changelog_generator is in the optional `release` group
|
25
25
|
else
|
26
26
|
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
27
|
-
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
|
27
|
+
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions dependencies]
|
28
28
|
config.user = 'voxpupuli'
|
29
29
|
config.project = 'metadata-json-lint'
|
30
30
|
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
|
data/metadata-json-lint.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'metadata-json-lint'
|
3
|
-
s.version = '4.
|
3
|
+
s.version = '4.3.0'
|
4
4
|
s.summary = 'metadata-json-lint /path/to/metadata.json'
|
5
5
|
s.description = 'Utility to verify Puppet metadata.json files'
|
6
6
|
s.authors = ['Vox Pupuli']
|
@@ -14,10 +14,10 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.required_ruby_version = '>= 2.7.0'
|
16
16
|
|
17
|
-
s.add_dependency 'json-schema', '>= 2.8', '<
|
17
|
+
s.add_dependency 'json-schema', '>= 2.8', '< 7.0'
|
18
18
|
s.add_dependency 'semantic_puppet', '~> 1.0'
|
19
19
|
s.add_dependency 'spdx-licenses', '~> 1.0'
|
20
20
|
s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
21
21
|
s.add_development_dependency 'rspec', '~> 3.12'
|
22
|
-
s.add_development_dependency 'voxpupuli-rubocop', '~> 3.
|
22
|
+
s.add_development_dependency 'voxpupuli-rubocop', '~> 3.1.0'
|
23
23
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metadata-json-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vox Pupuli
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: json-schema
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
version: '2.8'
|
19
19
|
- - "<"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '7.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
version: '2.8'
|
29
29
|
- - "<"
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: '
|
31
|
+
version: '7.0'
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: semantic_puppet
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,14 +97,14 @@ dependencies:
|
|
97
97
|
requirements:
|
98
98
|
- - "~>"
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 3.
|
100
|
+
version: 3.1.0
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
103
|
version_requirements: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
105
|
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version: 3.
|
107
|
+
version: 3.1.0
|
108
108
|
description: Utility to verify Puppet metadata.json files
|
109
109
|
email: voxpupuli@groups.io
|
110
110
|
executables:
|
@@ -113,6 +113,7 @@ extensions: []
|
|
113
113
|
extra_rdoc_files: []
|
114
114
|
files:
|
115
115
|
- ".github/dependabot.yml"
|
116
|
+
- ".github/release.yml"
|
116
117
|
- ".github/workflows/release.yml"
|
117
118
|
- ".github/workflows/test.yml"
|
118
119
|
- ".gitignore"
|
@@ -227,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
228
|
- !ruby/object:Gem::Version
|
228
229
|
version: '0'
|
229
230
|
requirements: []
|
230
|
-
rubygems_version: 3.6.
|
231
|
+
rubygems_version: 3.6.9
|
231
232
|
specification_version: 4
|
232
233
|
summary: metadata-json-lint /path/to/metadata.json
|
233
234
|
test_files: []
|