spdx-licenses 1.3.0 → 1.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/.github/dependabot.yml +17 -0
- data/.github/workflows/release.yml +106 -0
- data/.github/workflows/test.yml +61 -0
- data/CHANGELOG.md +50 -0
- data/README.md +6 -0
- data/Rakefile +15 -0
- data/lib/spdx-licenses/version.rb +1 -1
- data/licenses.json +6321 -3199
- metadata +10 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c5e5d7824ef4b5bd7f2cbec432a7dfa4f806114a3465e861177da8e04bb4254
|
|
4
|
+
data.tar.gz: c22aba562598ec33cbc6a94cb4589d3290f3e098d2be2afd634b6d42d922f0e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8cc4e20b5f8fb9deafcc1519ebdbef8e3e0167003ff9db8306c449a798cfa929834a2fa0f4f1d924c7727a282a0eb97739815b02d0c710116d64c62e826dd71e
|
|
7
|
+
data.tar.gz: 198d828208aa3d7dc31ab9232ec61c75dbc163ba104a91ee26e1c6b37e5fbf787ed1d655500176e286b710b1095a4b9d124b8bcf9d9db941ba269fa5f6e9eaa5
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# raise PRs for gem updates
|
|
4
|
+
- package-ecosystem: bundler
|
|
5
|
+
directory: "/"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: daily
|
|
8
|
+
time: "13:00"
|
|
9
|
+
open-pull-requests-limit: 10
|
|
10
|
+
|
|
11
|
+
# Maintain dependencies for GitHub Actions
|
|
12
|
+
- package-ecosystem: github-actions
|
|
13
|
+
directory: "/"
|
|
14
|
+
schedule:
|
|
15
|
+
interval: daily
|
|
16
|
+
time: "13:00"
|
|
17
|
+
open-pull-requests-limit: 10
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Gem Release
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- '*'
|
|
8
|
+
|
|
9
|
+
permissions: {}
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-release:
|
|
13
|
+
# Prevent releases from forked repositories
|
|
14
|
+
if: github.repository_owner == 'voxpupuli'
|
|
15
|
+
name: Build the gem
|
|
16
|
+
runs-on: ubuntu-24.04
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
|
+
- name: Install Ruby
|
|
20
|
+
uses: ruby/setup-ruby@v1
|
|
21
|
+
with:
|
|
22
|
+
ruby-version: 'ruby'
|
|
23
|
+
- name: Build gem
|
|
24
|
+
shell: bash
|
|
25
|
+
run: gem build --verbose *.gemspec
|
|
26
|
+
- name: Upload gem to GitHub cache
|
|
27
|
+
uses: actions/upload-artifact@v6
|
|
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@v7
|
|
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@v7
|
|
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@v7
|
|
77
|
+
with:
|
|
78
|
+
name: gem-artifact
|
|
79
|
+
- uses: rubygems/configure-rubygems-credentials@v1.0.0
|
|
80
|
+
- name: Publish gem to rubygems.org
|
|
81
|
+
shell: bash
|
|
82
|
+
run: gem push *.gem
|
|
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@v7
|
|
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
|
|
104
|
+
run: |
|
|
105
|
+
gem install rubygems-await
|
|
106
|
+
gem await *.gem
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Test
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
pull_request: {}
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
rubocop_and_matrix:
|
|
15
|
+
runs-on: ubuntu-24.04
|
|
16
|
+
outputs:
|
|
17
|
+
ruby: ${{ steps.ruby.outputs.versions }}
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v6
|
|
20
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
|
21
|
+
uses: ruby/setup-ruby@v1
|
|
22
|
+
with:
|
|
23
|
+
ruby-version: '4.0'
|
|
24
|
+
bundler-cache: true
|
|
25
|
+
- id: ruby
|
|
26
|
+
uses: voxpupuli/ruby-version@v2
|
|
27
|
+
|
|
28
|
+
test:
|
|
29
|
+
name: "Ruby ${{ matrix.ruby }}"
|
|
30
|
+
runs-on: ubuntu-24.04
|
|
31
|
+
needs: rubocop_and_matrix
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
|
|
36
|
+
env:
|
|
37
|
+
BEAKER_HYPERVISOR: docker
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v6
|
|
40
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
|
41
|
+
uses: ruby/setup-ruby@v1
|
|
42
|
+
with:
|
|
43
|
+
ruby-version: ${{ matrix.ruby }}
|
|
44
|
+
bundler-cache: true
|
|
45
|
+
- name: Build gem
|
|
46
|
+
run: gem build --verbose *.gemspec
|
|
47
|
+
- name: Run unit tests
|
|
48
|
+
run: bundle exec rake test
|
|
49
|
+
|
|
50
|
+
tests:
|
|
51
|
+
if: always()
|
|
52
|
+
needs:
|
|
53
|
+
- rubocop_and_matrix
|
|
54
|
+
- test
|
|
55
|
+
runs-on: ubuntu-24.04
|
|
56
|
+
name: Test suite
|
|
57
|
+
steps:
|
|
58
|
+
- name: Decide whether the needed jobs succeeded or failed
|
|
59
|
+
uses: re-actors/alls-green@release/v1
|
|
60
|
+
with:
|
|
61
|
+
jobs: ${{ toJSON(needs) }}
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.4.0](https://github.com/voxpupuli/spdx-licenses/tree/1.4.0) (2026-02-13)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/voxpupuli/spdx-licenses/compare/v1.3.0...1.4.0)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
|
|
9
|
+
- Update licenses to 3.27.0 [\#12](https://github.com/voxpupuli/spdx-licenses/pull/12) ([bastelfreak](https://github.com/bastelfreak))
|
|
10
|
+
|
|
11
|
+
**Merged pull requests:**
|
|
12
|
+
|
|
13
|
+
- Migrate project to Vox Pupuli & add CI configuration [\#11](https://github.com/voxpupuli/spdx-licenses/pull/11) ([bastelfreak](https://github.com/bastelfreak))
|
|
14
|
+
|
|
15
|
+
## [v1.3.0](https://github.com/voxpupuli/spdx-licenses/tree/v1.3.0) (2021-02-19)
|
|
16
|
+
|
|
17
|
+
[Full Changelog](https://github.com/voxpupuli/spdx-licenses/compare/v1.2.0...v1.3.0)
|
|
18
|
+
|
|
19
|
+
**Merged pull requests:**
|
|
20
|
+
|
|
21
|
+
- Update licenses data to version 3.11 [\#7](https://github.com/voxpupuli/spdx-licenses/pull/7) ([Polo2](https://github.com/Polo2))
|
|
22
|
+
|
|
23
|
+
## [v1.2.0](https://github.com/voxpupuli/spdx-licenses/tree/v1.2.0) (2018-05-25)
|
|
24
|
+
|
|
25
|
+
[Full Changelog](https://github.com/voxpupuli/spdx-licenses/compare/v1.1.0...v1.2.0)
|
|
26
|
+
|
|
27
|
+
**Merged pull requests:**
|
|
28
|
+
|
|
29
|
+
- Add a Rake task to download a prettified version of licenses.json [\#5](https://github.com/voxpupuli/spdx-licenses/pull/5) ([sschuberth](https://github.com/sschuberth))
|
|
30
|
+
|
|
31
|
+
## [v1.1.0](https://github.com/voxpupuli/spdx-licenses/tree/v1.1.0) (2016-04-15)
|
|
32
|
+
|
|
33
|
+
[Full Changelog](https://github.com/voxpupuli/spdx-licenses/compare/v1.0.0...v1.1.0)
|
|
34
|
+
|
|
35
|
+
**Closed issues:**
|
|
36
|
+
|
|
37
|
+
- Switch to use the official SPDX JSON data [\#2](https://github.com/voxpupuli/spdx-licenses/issues/2)
|
|
38
|
+
|
|
39
|
+
**Merged pull requests:**
|
|
40
|
+
|
|
41
|
+
- Removed json gem dependency [\#4](https://github.com/voxpupuli/spdx-licenses/pull/4) ([andrew](https://github.com/andrew))
|
|
42
|
+
- Use the official SPDX licenses.json file [\#3](https://github.com/voxpupuli/spdx-licenses/pull/3) ([sschuberth](https://github.com/sschuberth))
|
|
43
|
+
|
|
44
|
+
## [v1.0.0](https://github.com/voxpupuli/spdx-licenses/tree/v1.0.0) (2014-12-09)
|
|
45
|
+
|
|
46
|
+
[Full Changelog](https://github.com/voxpupuli/spdx-licenses/compare/9cf77acedbeb4f836bf77a6836528f84a90927f0...v1.0.0)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/README.md
CHANGED
|
@@ -25,6 +25,7 @@ contain updates to the SPDX License List data.
|
|
|
25
25
|
| 1.1.0 | 2.4 |
|
|
26
26
|
| 1.2.0 | 3.1 |
|
|
27
27
|
| 1.3.0 | 3.11-54 |
|
|
28
|
+
| 1.4.0 | 3.27.0 |
|
|
28
29
|
|
|
29
30
|
## Usage
|
|
30
31
|
|
|
@@ -43,6 +44,11 @@ contain updates to the SPDX License List data.
|
|
|
43
44
|
> SpdxLicenses.exist?('Unknown')
|
|
44
45
|
false
|
|
45
46
|
|
|
47
|
+
## Transfer notice
|
|
48
|
+
|
|
49
|
+
Version 1.3.0 and older were maintained by Dominic Cleal.
|
|
50
|
+
Aftwards the project got migrated to Vox Pupuli.
|
|
51
|
+
|
|
46
52
|
## License
|
|
47
53
|
|
|
48
54
|
Copyright (c) 2014-2021 Dominic Cleal. Distributed under the MIT license.
|
data/Rakefile
CHANGED
|
@@ -27,3 +27,18 @@ Rake::TestTask.new do |t|
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
task :default => [:test]
|
|
30
|
+
|
|
31
|
+
begin
|
|
32
|
+
require 'rubygems'
|
|
33
|
+
require 'github_changelog_generator/task'
|
|
34
|
+
rescue LoadError
|
|
35
|
+
# Do nothing if no required gem installed
|
|
36
|
+
else
|
|
37
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
38
|
+
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
|
|
39
|
+
config.user = 'voxpupuli'
|
|
40
|
+
config.project = 'spdx-licenses'
|
|
41
|
+
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
|
|
42
|
+
config.future_release = gem_version
|
|
43
|
+
end
|
|
44
|
+
end
|