licensed 3.9.1 → 4.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 +53 -1
- data/CONTRIBUTING.md +0 -2
- data/Gemfile.lock +112 -0
- data/README.md +7 -12
- data/Rakefile +0 -26
- data/docs/configuration/README.md +1 -0
- data/docs/configuration/additional_terms.md +41 -0
- data/docs/configuration.md +7 -0
- data/docs/sources/bundler.md +0 -2
- data/docs/sources/cocoapods.md +17 -0
- data/docs/sources/gradle.md +18 -0
- data/docs/sources/pnpm.md +18 -0
- data/lib/licensed/configuration.rb +6 -1
- data/lib/licensed/dependency.rb +27 -0
- data/lib/licensed/sources/bundler/definition.rb +9 -1
- data/lib/licensed/sources/bundler/missing_specification.rb +2 -2
- data/lib/licensed/sources/bundler.rb +0 -12
- data/lib/licensed/sources/cocoapods.rb +68 -0
- data/lib/licensed/sources/go.rb +1 -36
- data/lib/licensed/sources/gradle.rb +127 -94
- data/lib/licensed/sources/pnpm.rb +52 -0
- data/lib/licensed/sources/source.rb +8 -1
- data/lib/licensed/sources.rb +4 -2
- data/lib/licensed/version.rb +1 -1
- data/licensed.gemspec +13 -13
- metadata +46 -73
- data/docs/packaging.md +0 -53
metadata
CHANGED
@@ -1,49 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: licensed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: licensee
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 9.15.2
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
19
|
+
version: '9.16'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 9.15.2
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
26
|
+
version: '9.16'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: thor
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "
|
31
|
+
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
33
|
+
version: '1.2'
|
40
34
|
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
|
-
- - "
|
38
|
+
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
40
|
+
version: '1.2'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: pathname-common_prefix
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,126 +56,100 @@ dependencies:
|
|
62
56
|
name: tomlrb
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
|
-
- - "
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '1.2'
|
68
|
-
- - "<"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '3.0'
|
71
|
-
type: :runtime
|
72
|
-
prerelease: false
|
73
|
-
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '1.2'
|
78
|
-
- - "<"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '3.0'
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: bundler
|
83
|
-
requirement: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - ">="
|
59
|
+
- - "~>"
|
86
60
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
61
|
+
version: '2.0'
|
88
62
|
type: :runtime
|
89
63
|
prerelease: false
|
90
64
|
version_requirements: !ruby/object:Gem::Requirement
|
91
65
|
requirements:
|
92
|
-
- - "
|
66
|
+
- - "~>"
|
93
67
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
68
|
+
version: '2.0'
|
95
69
|
- !ruby/object:Gem::Dependency
|
96
70
|
name: ruby-xxHash
|
97
71
|
requirement: !ruby/object:Gem::Requirement
|
98
72
|
requirements:
|
99
73
|
- - "~>"
|
100
74
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
75
|
+
version: 0.4.0
|
102
76
|
type: :runtime
|
103
77
|
prerelease: false
|
104
78
|
version_requirements: !ruby/object:Gem::Requirement
|
105
79
|
requirements:
|
106
80
|
- - "~>"
|
107
81
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
82
|
+
version: 0.4.0
|
109
83
|
- !ruby/object:Gem::Dependency
|
110
84
|
name: parallel
|
111
85
|
requirement: !ruby/object:Gem::Requirement
|
112
86
|
requirements:
|
113
|
-
- - "
|
87
|
+
- - "~>"
|
114
88
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
89
|
+
version: '1.22'
|
116
90
|
type: :runtime
|
117
91
|
prerelease: false
|
118
92
|
version_requirements: !ruby/object:Gem::Requirement
|
119
93
|
requirements:
|
120
|
-
- - "
|
94
|
+
- - "~>"
|
121
95
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
96
|
+
version: '1.22'
|
123
97
|
- !ruby/object:Gem::Dependency
|
124
98
|
name: reverse_markdown
|
125
99
|
requirement: !ruby/object:Gem::Requirement
|
126
100
|
requirements:
|
127
|
-
- - "
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '1'
|
130
|
-
- - "<"
|
101
|
+
- - "~>"
|
131
102
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
103
|
+
version: '2.1'
|
133
104
|
type: :runtime
|
134
105
|
prerelease: false
|
135
106
|
version_requirements: !ruby/object:Gem::Requirement
|
136
107
|
requirements:
|
137
|
-
- - "
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '1'
|
140
|
-
- - "<"
|
108
|
+
- - "~>"
|
141
109
|
- !ruby/object:Gem::Version
|
142
|
-
version: '
|
110
|
+
version: '2.1'
|
143
111
|
- !ruby/object:Gem::Dependency
|
144
112
|
name: json
|
145
113
|
requirement: !ruby/object:Gem::Requirement
|
146
114
|
requirements:
|
147
|
-
- - "
|
115
|
+
- - "~>"
|
148
116
|
- !ruby/object:Gem::Version
|
149
|
-
version: 2.6
|
117
|
+
version: '2.6'
|
150
118
|
type: :runtime
|
151
119
|
prerelease: false
|
152
120
|
version_requirements: !ruby/object:Gem::Requirement
|
153
121
|
requirements:
|
154
|
-
- - "
|
122
|
+
- - "~>"
|
155
123
|
- !ruby/object:Gem::Version
|
156
|
-
version: 2.6
|
124
|
+
version: '2.6'
|
157
125
|
- !ruby/object:Gem::Dependency
|
158
126
|
name: rake
|
159
127
|
requirement: !ruby/object:Gem::Requirement
|
160
128
|
requirements:
|
161
|
-
- - "
|
129
|
+
- - "~>"
|
162
130
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
131
|
+
version: '13.0'
|
164
132
|
type: :development
|
165
133
|
prerelease: false
|
166
134
|
version_requirements: !ruby/object:Gem::Requirement
|
167
135
|
requirements:
|
168
|
-
- - "
|
136
|
+
- - "~>"
|
169
137
|
- !ruby/object:Gem::Version
|
170
|
-
version:
|
138
|
+
version: '13.0'
|
171
139
|
- !ruby/object:Gem::Dependency
|
172
140
|
name: minitest
|
173
141
|
requirement: !ruby/object:Gem::Requirement
|
174
142
|
requirements:
|
175
143
|
- - "~>"
|
176
144
|
- !ruby/object:Gem::Version
|
177
|
-
version: '5.
|
145
|
+
version: '5.17'
|
178
146
|
type: :development
|
179
147
|
prerelease: false
|
180
148
|
version_requirements: !ruby/object:Gem::Requirement
|
181
149
|
requirements:
|
182
150
|
- - "~>"
|
183
151
|
- !ruby/object:Gem::Version
|
184
|
-
version: '5.
|
152
|
+
version: '5.17'
|
185
153
|
- !ruby/object:Gem::Dependency
|
186
154
|
name: mocha
|
187
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,28 +170,28 @@ dependencies:
|
|
202
170
|
requirements:
|
203
171
|
- - "~>"
|
204
172
|
- !ruby/object:Gem::Version
|
205
|
-
version: '0.
|
173
|
+
version: '0.20'
|
206
174
|
type: :development
|
207
175
|
prerelease: false
|
208
176
|
version_requirements: !ruby/object:Gem::Requirement
|
209
177
|
requirements:
|
210
178
|
- - "~>"
|
211
179
|
- !ruby/object:Gem::Version
|
212
|
-
version: '0.
|
180
|
+
version: '0.20'
|
213
181
|
- !ruby/object:Gem::Dependency
|
214
182
|
name: byebug
|
215
183
|
requirement: !ruby/object:Gem::Requirement
|
216
184
|
requirements:
|
217
185
|
- - "~>"
|
218
186
|
- !ruby/object:Gem::Version
|
219
|
-
version: 11.1
|
187
|
+
version: '11.1'
|
220
188
|
type: :development
|
221
189
|
prerelease: false
|
222
190
|
version_requirements: !ruby/object:Gem::Requirement
|
223
191
|
requirements:
|
224
192
|
- - "~>"
|
225
193
|
- !ruby/object:Gem::Version
|
226
|
-
version: 11.1
|
194
|
+
version: '11.1'
|
227
195
|
description: Licensed automates extracting and validating the licenses of dependencies.
|
228
196
|
email:
|
229
197
|
- opensource+licensed@github.com
|
@@ -236,6 +204,7 @@ files:
|
|
236
204
|
- CODE_OF_CONDUCT.md
|
237
205
|
- CONTRIBUTING.md
|
238
206
|
- Gemfile
|
207
|
+
- Gemfile.lock
|
239
208
|
- LICENSE
|
240
209
|
- README.md
|
241
210
|
- Rakefile
|
@@ -250,6 +219,7 @@ files:
|
|
250
219
|
- docs/commands/version.md
|
251
220
|
- docs/configuration.md
|
252
221
|
- docs/configuration/README.md
|
222
|
+
- docs/configuration/additional_terms.md
|
253
223
|
- docs/configuration/allowed_licenses.md
|
254
224
|
- docs/configuration/application_name.md
|
255
225
|
- docs/configuration/application_source.md
|
@@ -263,12 +233,12 @@ files:
|
|
263
233
|
- docs/getting_started.md
|
264
234
|
- docs/migrations/v2.md
|
265
235
|
- docs/migrations/v3.md
|
266
|
-
- docs/packaging.md
|
267
236
|
- docs/reporters.md
|
268
237
|
- docs/sources/bower.md
|
269
238
|
- docs/sources/bundler.md
|
270
239
|
- docs/sources/cabal.md
|
271
240
|
- docs/sources/cargo.md
|
241
|
+
- docs/sources/cocoapods.md
|
272
242
|
- docs/sources/composer.md
|
273
243
|
- docs/sources/dep.md
|
274
244
|
- docs/sources/git_submodule.md
|
@@ -280,6 +250,7 @@ files:
|
|
280
250
|
- docs/sources/nuget.md
|
281
251
|
- docs/sources/pip.md
|
282
252
|
- docs/sources/pipenv.md
|
253
|
+
- docs/sources/pnpm.md
|
283
254
|
- docs/sources/stack.md
|
284
255
|
- docs/sources/swift.md
|
285
256
|
- docs/sources/yarn.md
|
@@ -316,6 +287,7 @@ files:
|
|
316
287
|
- lib/licensed/sources/bundler/missing_specification.rb
|
317
288
|
- lib/licensed/sources/cabal.rb
|
318
289
|
- lib/licensed/sources/cargo.rb
|
290
|
+
- lib/licensed/sources/cocoapods.rb
|
319
291
|
- lib/licensed/sources/composer.rb
|
320
292
|
- lib/licensed/sources/dep.rb
|
321
293
|
- lib/licensed/sources/git_submodule.rb
|
@@ -328,6 +300,7 @@ files:
|
|
328
300
|
- lib/licensed/sources/nuget.rb
|
329
301
|
- lib/licensed/sources/pip.rb
|
330
302
|
- lib/licensed/sources/pipenv.rb
|
303
|
+
- lib/licensed/sources/pnpm.rb
|
331
304
|
- lib/licensed/sources/source.rb
|
332
305
|
- lib/licensed/sources/swift.rb
|
333
306
|
- lib/licensed/sources/yarn.rb
|
@@ -348,14 +321,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
348
321
|
requirements:
|
349
322
|
- - ">="
|
350
323
|
- !ruby/object:Gem::Version
|
351
|
-
version: 2.
|
324
|
+
version: 2.6.0
|
352
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
353
326
|
requirements:
|
354
327
|
- - ">="
|
355
328
|
- !ruby/object:Gem::Version
|
356
329
|
version: '0'
|
357
330
|
requirements: []
|
358
|
-
rubygems_version: 3.
|
331
|
+
rubygems_version: 3.3.26
|
359
332
|
signing_key:
|
360
333
|
specification_version: 4
|
361
334
|
summary: Extract and validate the licenses of dependencies.
|
data/docs/packaging.md
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# Packaging licensed for distribution
|
2
|
-
|
3
|
-
Licensed is built into executables and packaged for distribution using [ruby-packer][ruby-packer].
|
4
|
-
|
5
|
-
Executable packages are currently supported for:
|
6
|
-
1. Linux
|
7
|
-
2. MacOS / Darwin
|
8
|
-
|
9
|
-
The packaged executables contain a self-expanding file system containing ruby, licensed and all of it's runtime dependencies. Licensed is run inside the contained file system, allowing usage in scenarios where ruby is not available on the host system.
|
10
|
-
|
11
|
-
### Building packages
|
12
|
-
|
13
|
-
Packages are built as `licensed-$VERSION-$PLATFORM-x64.tar.gz` tarballs that contain a single `./licensed` executable. After building a package through the available scripting, it will be available in the `pkg` directory.
|
14
|
-
|
15
|
-
By default an exe is built for the current licensed git `HEAD`. The
|
16
|
-
`$VERSION` in the package name will be set to the current branch name if
|
17
|
-
available, otherwise the current SHA. To use a specific licensed version,
|
18
|
-
set a `VERSION` environment variable when calling the packaging scripts. `VERSION` can be set to any value that works with `git checkout`.
|
19
|
-
|
20
|
-
#### Building all packages
|
21
|
-
```bash
|
22
|
-
# build all packages
|
23
|
-
$ script/package
|
24
|
-
```
|
25
|
-
or
|
26
|
-
```bash
|
27
|
-
# build all packages
|
28
|
-
$ bundle exec rake package
|
29
|
-
```
|
30
|
-
|
31
|
-
#### Building packages for a single platform
|
32
|
-
```bash
|
33
|
-
# build package for linux
|
34
|
-
$ script/package linux
|
35
|
-
```
|
36
|
-
or
|
37
|
-
```bash
|
38
|
-
# build package for linux
|
39
|
-
$ bundle exec rake package:linux
|
40
|
-
```
|
41
|
-
|
42
|
-
#### Building packages for a specific version
|
43
|
-
```bash
|
44
|
-
# VERSION can be set to anything that works with git checkout - tag, branch, SHA1
|
45
|
-
$ VERSION="1.1.0" script/package
|
46
|
-
```
|
47
|
-
or
|
48
|
-
```bash
|
49
|
-
# VERSION can be set to anything that works with git checkout - tag, branch, SHA1
|
50
|
-
$ VERSION="1.1.0" bundle exec rake package
|
51
|
-
```
|
52
|
-
|
53
|
-
[ruby-packer]: https://github.com/pmq20/ruby-packer
|