licensed 4.5.0 → 5.0.1
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/CHANGELOG.md +23 -1
- data/Gemfile.lock +34 -30
- data/README.md +2 -2
- data/lib/licensed/sources/cabal.rb +6 -0
- data/lib/licensed/version.rb +1 -1
- data/licensed.gemspec +2 -2
- metadata +12 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a22bd24126e9a99d7a60f24fa920d02064d5c004c84324da503b6042f638b92d
|
|
4
|
+
data.tar.gz: e7842f4ae50ad4ef0b597121b11b9275818ad6ce70015ddce7bde900ce9024ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2564fe6cd8182d85c735621fb92aa449f4465cbffc23fe7ed00760b07437f8b3a6d32720277472906926d8b579152f0a3b6fe6be62b99ae61b87dabb81c68fb
|
|
7
|
+
data.tar.gz: '038682180f0bffbe7582ef0fbaaf5d7847173fd8af06d5354e4adbc6916f5702116fb1483b645ca2956b85908140340b27fb39371d371d4b553804fcba67d1d8'
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
## 5.0.1
|
|
11
|
+
|
|
12
|
+
- Updated dependencies as needed for security fixes
|
|
13
|
+
|
|
14
|
+
## 5.0.0
|
|
15
|
+
|
|
16
|
+
### Breaking change
|
|
17
|
+
|
|
18
|
+
- Only supports Ruby 3.0+ due to nokogiri upgrade
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Ensure homepage string is not too long in cabal.rb to avoid DOS attack
|
|
23
|
+
- Update dependencies
|
|
24
|
+
|
|
25
|
+
## 4.5.0
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- Bumped a number of dependencies for security fixes
|
|
30
|
+
|
|
9
31
|
## 4.4.0
|
|
10
32
|
|
|
11
33
|
### Added
|
|
@@ -132,7 +154,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
132
154
|
### Fixed
|
|
133
155
|
|
|
134
156
|
- Comparing dependency license contents now finds matching contents regardless of the order of the licenses (https://github.com/github/licensed/pull/516)
|
|
135
|
-
- Fixed typo in a link in README.md (https://github.com/github/licensed/pull/514)
|
|
157
|
+
- Fixed typo in a link in README.md (https://github.com/github/licensed/pull/514)
|
|
136
158
|
|
|
137
159
|
### Changed
|
|
138
160
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
licensed (
|
|
4
|
+
licensed (5.0.1)
|
|
5
5
|
json (~> 2.6)
|
|
6
6
|
licensee (~> 9.16)
|
|
7
7
|
parallel (~> 1.22)
|
|
8
8
|
pathname-common_prefix (~> 0.0.1)
|
|
9
|
-
reverse_markdown (
|
|
9
|
+
reverse_markdown (>= 2.1, < 4.0)
|
|
10
10
|
ruby-xxHash (~> 0.4.0)
|
|
11
11
|
thor (~> 1.2)
|
|
12
12
|
tomlrb (~> 2.0)
|
|
@@ -24,56 +24,60 @@ GEM
|
|
|
24
24
|
minitest (>= 5.1)
|
|
25
25
|
mutex_m
|
|
26
26
|
tzinfo (~> 2.0)
|
|
27
|
-
addressable (2.8.
|
|
28
|
-
public_suffix (>= 2.0.2, <
|
|
27
|
+
addressable (2.8.7)
|
|
28
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
29
29
|
ast (2.4.2)
|
|
30
30
|
base64 (0.2.0)
|
|
31
31
|
bigdecimal (3.1.7)
|
|
32
32
|
byebug (11.1.3)
|
|
33
33
|
concurrent-ruby (1.2.3)
|
|
34
34
|
connection_pool (2.4.1)
|
|
35
|
-
dotenv (
|
|
35
|
+
dotenv (3.1.4)
|
|
36
36
|
drb (2.2.1)
|
|
37
|
-
faraday (2.
|
|
38
|
-
faraday-net_http (>= 2.0, < 3.
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
faraday (2.12.1)
|
|
38
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
39
|
+
json
|
|
40
|
+
logger
|
|
41
|
+
faraday-net_http (3.4.0)
|
|
42
|
+
net-http (>= 0.5.0)
|
|
41
43
|
i18n (1.14.4)
|
|
42
44
|
concurrent-ruby (~> 1.0)
|
|
43
|
-
json (2.
|
|
44
|
-
licensee (9.
|
|
45
|
-
dotenv (
|
|
46
|
-
octokit (>= 4.20, <
|
|
47
|
-
reverse_markdown (>= 1, <
|
|
45
|
+
json (2.8.2)
|
|
46
|
+
licensee (9.18.0)
|
|
47
|
+
dotenv (>= 2, < 4)
|
|
48
|
+
octokit (>= 4.20, < 10.0)
|
|
49
|
+
reverse_markdown (>= 1, < 4)
|
|
48
50
|
rugged (>= 0.24, < 2.0)
|
|
49
51
|
thor (>= 0.19, < 2.0)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
minitest
|
|
52
|
+
logger (1.6.1)
|
|
53
|
+
mini_portile2 (2.8.8)
|
|
54
|
+
minitest (5.25.1)
|
|
55
|
+
minitest-hooks (1.5.2)
|
|
53
56
|
minitest (> 5.3)
|
|
54
|
-
mocha (2.
|
|
57
|
+
mocha (2.6.1)
|
|
55
58
|
ruby2_keywords (>= 0.0.5)
|
|
56
59
|
mutex_m (0.2.0)
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
net-http (0.5.0)
|
|
61
|
+
uri
|
|
62
|
+
nokogiri (1.16.7)
|
|
63
|
+
mini_portile2 (~> 2.8.2)
|
|
59
64
|
racc (~> 1.4)
|
|
60
|
-
octokit (
|
|
65
|
+
octokit (9.2.0)
|
|
61
66
|
faraday (>= 1, < 3)
|
|
62
67
|
sawyer (~> 0.9)
|
|
63
|
-
parallel (1.
|
|
68
|
+
parallel (1.26.3)
|
|
64
69
|
parser (3.2.0.0)
|
|
65
70
|
ast (~> 2.4.1)
|
|
66
71
|
pathname-common_prefix (0.0.2)
|
|
67
|
-
public_suffix (
|
|
68
|
-
racc (1.
|
|
72
|
+
public_suffix (6.0.1)
|
|
73
|
+
racc (1.8.1)
|
|
69
74
|
rack (3.0.9.1)
|
|
70
75
|
rainbow (3.1.1)
|
|
71
76
|
rake (13.2.1)
|
|
72
77
|
regexp_parser (2.6.2)
|
|
73
|
-
reverse_markdown (
|
|
78
|
+
reverse_markdown (3.0.0)
|
|
74
79
|
nokogiri
|
|
75
|
-
rexml (3.3.
|
|
76
|
-
strscan
|
|
80
|
+
rexml (3.3.9)
|
|
77
81
|
rubocop (1.45.1)
|
|
78
82
|
json (~> 2.3)
|
|
79
83
|
parallel (~> 1.10)
|
|
@@ -100,16 +104,16 @@ GEM
|
|
|
100
104
|
ruby-progressbar (1.11.0)
|
|
101
105
|
ruby-xxHash (0.4.0.2)
|
|
102
106
|
ruby2_keywords (0.0.5)
|
|
103
|
-
rugged (1.
|
|
107
|
+
rugged (1.7.2)
|
|
104
108
|
sawyer (0.9.2)
|
|
105
109
|
addressable (>= 2.3.5)
|
|
106
110
|
faraday (>= 0.17.3, < 3)
|
|
107
|
-
|
|
108
|
-
thor (1.3.1)
|
|
111
|
+
thor (1.3.2)
|
|
109
112
|
tomlrb (2.0.3)
|
|
110
113
|
tzinfo (2.0.6)
|
|
111
114
|
concurrent-ruby (~> 1.0)
|
|
112
115
|
unicode-display_width (2.4.2)
|
|
116
|
+
uri (1.0.2)
|
|
113
117
|
|
|
114
118
|
PLATFORMS
|
|
115
119
|
ruby
|
data/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Licensed v3 includes a breaking change if both of the following are true:
|
|
|
21
21
|
1. a project uses bundler to manage ruby dependencies
|
|
22
22
|
2. a project uses the self-contained executable build of licensed
|
|
23
23
|
|
|
24
|
-
All other usages of licensed should not encounter any major changes migrating from the latest 2.x build to 3.0.
|
|
24
|
+
All other usages of licensed should not encounter any major changes migrating from the latest 2.x build to 3.0.
|
|
25
25
|
|
|
26
26
|
See [CHANGELOG.md](./CHANGELOG.md) for more details on what's changed.
|
|
27
27
|
See the [v3 migration documentation](./docs/migrations/v3.md) for more info on migrating to v3.
|
|
@@ -94,7 +94,7 @@ To get started after checking out the repo, run
|
|
|
94
94
|
|
|
95
95
|
You can also run `script/console` for an interactive prompt that will allow you to experiment.
|
|
96
96
|
|
|
97
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then
|
|
97
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then create a release on GitHub.
|
|
98
98
|
|
|
99
99
|
### Adding a new source
|
|
100
100
|
|
|
@@ -71,6 +71,12 @@ module Licensed
|
|
|
71
71
|
# Returns a homepage url that enforces https and removes url fragments
|
|
72
72
|
def safe_homepage(homepage)
|
|
73
73
|
return unless homepage
|
|
74
|
+
# Ensure there's no denial of service issue with a long homepage
|
|
75
|
+
# 1000 characters is likely enough for any real project homepage
|
|
76
|
+
# See https://github.com/github/licensed/security/code-scanning/1
|
|
77
|
+
if homepage.length > 1000
|
|
78
|
+
raise ArgumentError, "Input too long"
|
|
79
|
+
end
|
|
74
80
|
# use https and remove url fragment
|
|
75
81
|
homepage.gsub(/http:/, "https:")
|
|
76
82
|
.gsub(/#[^?]*\z/, "")
|
data/lib/licensed/version.rb
CHANGED
data/licensed.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
22
|
spec.require_paths = ["lib"]
|
|
23
23
|
|
|
24
|
-
spec.required_ruby_version = ">=
|
|
24
|
+
spec.required_ruby_version = ">= 3.0.0"
|
|
25
25
|
|
|
26
26
|
spec.add_dependency "licensee", "~> 9.16"
|
|
27
27
|
spec.add_dependency "thor", "~> 1.2"
|
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
spec.add_dependency "tomlrb", "~> 2.0"
|
|
30
30
|
spec.add_dependency "ruby-xxHash", "~> 0.4.0"
|
|
31
31
|
spec.add_dependency "parallel", "~> 1.22"
|
|
32
|
-
spec.add_dependency "reverse_markdown", "
|
|
32
|
+
spec.add_dependency "reverse_markdown", ">= 2.1", "< 4.0"
|
|
33
33
|
spec.add_dependency "json", "~> 2.6"
|
|
34
34
|
|
|
35
35
|
spec.add_development_dependency "rake", "~> 13.0"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: licensed
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 5.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: licensee
|
|
@@ -98,16 +98,22 @@ dependencies:
|
|
|
98
98
|
name: reverse_markdown
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- - "
|
|
101
|
+
- - ">="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '2.1'
|
|
104
|
+
- - "<"
|
|
105
|
+
- !ruby/object:Gem::Version
|
|
106
|
+
version: '4.0'
|
|
104
107
|
type: :runtime
|
|
105
108
|
prerelease: false
|
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
110
|
requirements:
|
|
108
|
-
- - "
|
|
111
|
+
- - ">="
|
|
109
112
|
- !ruby/object:Gem::Version
|
|
110
113
|
version: '2.1'
|
|
114
|
+
- - "<"
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: '4.0'
|
|
111
117
|
- !ruby/object:Gem::Dependency
|
|
112
118
|
name: json
|
|
113
119
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -335,14 +341,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
335
341
|
requirements:
|
|
336
342
|
- - ">="
|
|
337
343
|
- !ruby/object:Gem::Version
|
|
338
|
-
version:
|
|
344
|
+
version: 3.0.0
|
|
339
345
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
340
346
|
requirements:
|
|
341
347
|
- - ">="
|
|
342
348
|
- !ruby/object:Gem::Version
|
|
343
349
|
version: '0'
|
|
344
350
|
requirements: []
|
|
345
|
-
rubygems_version: 3.
|
|
351
|
+
rubygems_version: 3.3.26
|
|
346
352
|
signing_key:
|
|
347
353
|
specification_version: 4
|
|
348
354
|
summary: Extract and validate the licenses of dependencies.
|