licensed 3.2.2 → 3.2.3
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/workflows/test.yml +16 -1
- data/CHANGELOG.md +10 -1
- data/lib/licensed/commands/cache.rb +4 -2
- data/lib/licensed/commands/command.rb +5 -2
- data/lib/licensed/sources/bundler/missing_specification.rb +10 -7
- data/lib/licensed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e2043fe7541ca6458302eab4e81fabdc22d874d5e80498eaac0f1551d7796e8
|
4
|
+
data.tar.gz: abe1b03af0e02be363661d357e82cac6b53a127a6fd01cfef2c7ba2b6c174116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8555b427c46ab7e0198cf4ac71ed02fae65a230576057bd6d2cbf38e5d26491479444cfc4ed6ec78549e615c5b8cf6d71ce762b31552bf7bfd1d348e228b1055
|
7
|
+
data.tar.gz: 30da66cc1abb37677768dab09d79f93c17df25a7d0a73e06dbfdcb51ce7bb3ea66af5962e97631a019a8119498f4b0ebdeaca46667cb8b2b3d3fe0a2bb63c254
|
data/.github/workflows/test.yml
CHANGED
@@ -5,6 +5,7 @@ on: pull_request
|
|
5
5
|
jobs:
|
6
6
|
bower:
|
7
7
|
runs-on: ubuntu-latest
|
8
|
+
needs: core
|
8
9
|
steps:
|
9
10
|
- uses: actions/checkout@v2
|
10
11
|
- name: Setup node
|
@@ -34,6 +35,7 @@ jobs:
|
|
34
35
|
|
35
36
|
bundler:
|
36
37
|
runs-on: ubuntu-latest
|
38
|
+
needs: core
|
37
39
|
strategy:
|
38
40
|
matrix:
|
39
41
|
bundler: [ '~> 1.17.0', '~> 2.0.0', '~> 2.1.0', '~> 2.2.0' ]
|
@@ -64,6 +66,7 @@ jobs:
|
|
64
66
|
|
65
67
|
cabal:
|
66
68
|
runs-on: ubuntu-latest
|
69
|
+
needs: core
|
67
70
|
strategy:
|
68
71
|
matrix:
|
69
72
|
ghc: [ '8.6', '8.8', '8.10', '9.0' ]
|
@@ -105,6 +108,7 @@ jobs:
|
|
105
108
|
|
106
109
|
composer:
|
107
110
|
runs-on: ubuntu-latest
|
111
|
+
needs: core
|
108
112
|
strategy:
|
109
113
|
matrix:
|
110
114
|
php: [ '7.4', '8.0' ]
|
@@ -163,6 +167,7 @@ jobs:
|
|
163
167
|
|
164
168
|
dep:
|
165
169
|
runs-on: ubuntu-latest
|
170
|
+
needs: core
|
166
171
|
steps:
|
167
172
|
- uses: actions/checkout@v2
|
168
173
|
- name: Setup go
|
@@ -190,6 +195,7 @@ jobs:
|
|
190
195
|
|
191
196
|
go:
|
192
197
|
runs-on: ubuntu-latest
|
198
|
+
needs: core
|
193
199
|
strategy:
|
194
200
|
matrix:
|
195
201
|
go: [ '1.12.x', '1.13.x', '1.14.x', '1.15.x', '1.16.x' ]
|
@@ -231,6 +237,7 @@ jobs:
|
|
231
237
|
|
232
238
|
gradle:
|
233
239
|
runs-on: ubuntu-latest
|
240
|
+
needs: core
|
234
241
|
strategy:
|
235
242
|
matrix:
|
236
243
|
# TODO: the reporting plugin used to gather data is not yet fully compatible with
|
@@ -275,6 +282,7 @@ jobs:
|
|
275
282
|
|
276
283
|
manifest:
|
277
284
|
runs-on: ubuntu-latest
|
285
|
+
needs: core
|
278
286
|
steps:
|
279
287
|
- uses: actions/checkout@v2
|
280
288
|
- name: Set up Ruby
|
@@ -296,6 +304,7 @@ jobs:
|
|
296
304
|
|
297
305
|
mix:
|
298
306
|
runs-on: ubuntu-latest
|
307
|
+
needs: core
|
299
308
|
strategy:
|
300
309
|
matrix:
|
301
310
|
otp: [22.x, 23.x, 24.x]
|
@@ -327,6 +336,7 @@ jobs:
|
|
327
336
|
|
328
337
|
npm:
|
329
338
|
runs-on: ubuntu-latest
|
339
|
+
needs: core
|
330
340
|
strategy:
|
331
341
|
matrix:
|
332
342
|
node_version: [ 12, 14, 16 ]
|
@@ -357,6 +367,7 @@ jobs:
|
|
357
367
|
|
358
368
|
nuget:
|
359
369
|
runs-on: ubuntu-latest
|
370
|
+
needs: core
|
360
371
|
strategy:
|
361
372
|
matrix:
|
362
373
|
dotnet: [ '3.1.x', '5.x' ]
|
@@ -387,6 +398,7 @@ jobs:
|
|
387
398
|
|
388
399
|
pip:
|
389
400
|
runs-on: ubuntu-latest
|
401
|
+
needs: core
|
390
402
|
strategy:
|
391
403
|
matrix:
|
392
404
|
python: [ '3.6', '3.7', '3.8', '3.9' ]
|
@@ -427,6 +439,7 @@ jobs:
|
|
427
439
|
|
428
440
|
pipenv:
|
429
441
|
runs-on: ubuntu-latest
|
442
|
+
needs: core
|
430
443
|
steps:
|
431
444
|
- uses: actions/checkout@v2
|
432
445
|
- name: Setup python
|
@@ -457,6 +470,7 @@ jobs:
|
|
457
470
|
|
458
471
|
swift:
|
459
472
|
runs-on: ubuntu-latest
|
473
|
+
needs: core
|
460
474
|
strategy:
|
461
475
|
matrix:
|
462
476
|
swift: [ "5.4", "5.3" ]
|
@@ -494,6 +508,7 @@ jobs:
|
|
494
508
|
|
495
509
|
yarn:
|
496
510
|
runs-on: ubuntu-latest
|
511
|
+
needs: core
|
497
512
|
strategy:
|
498
513
|
matrix:
|
499
514
|
# not using 1.0.0 because it doesn't support `yarn list --production`
|
@@ -525,4 +540,4 @@ jobs:
|
|
525
540
|
- name: Set up fixtures
|
526
541
|
run: script/source-setup/yarn
|
527
542
|
- name: Run tests
|
528
|
-
run: script/test yarn
|
543
|
+
run: script/test yarn
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## 3.2.3
|
10
|
+
|
11
|
+
2021-09-14
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
|
15
|
+
- Bundler source will no longer infinitely recurse when enumerating specifications (https://github.com/github/licensed/pull/402)
|
16
|
+
- Using the `--sources` command line option will no longer delete skipped sources' cached files (https://github.com/github/licensed/pull/401)
|
17
|
+
|
9
18
|
## 3.2.2
|
10
19
|
|
11
20
|
2021-09-09
|
@@ -488,4 +497,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
488
497
|
|
489
498
|
Initial release :tada:
|
490
499
|
|
491
|
-
[Unreleased]: https://github.com/github/licensed/compare/3.2.
|
500
|
+
[Unreleased]: https://github.com/github/licensed/compare/3.2.3...HEAD
|
@@ -39,11 +39,13 @@ module Licensed
|
|
39
39
|
#
|
40
40
|
# Returns whether the command succeeded for the dependency source enumerator
|
41
41
|
def run_source(app, source, report)
|
42
|
+
result = super
|
43
|
+
|
42
44
|
# add the full cache path to the list of cache paths
|
43
45
|
# that should be cleaned up after the command run
|
44
|
-
cache_paths << app.cache_path.join(source.class.type)
|
46
|
+
cache_paths << app.cache_path.join(source.class.type) unless result == :skipped
|
45
47
|
|
46
|
-
|
48
|
+
result
|
47
49
|
end
|
48
50
|
|
49
51
|
# Cache dependency record data.
|
@@ -121,13 +121,16 @@ module Licensed
|
|
121
121
|
# source - A dependency source enumerator
|
122
122
|
# report - A report object for this source
|
123
123
|
#
|
124
|
-
# Returns whether the command succeeded for the dependency source enumerator
|
124
|
+
# Returns whether the command succeeded, failed, or was skipped for the dependency source enumerator
|
125
125
|
def run_source(app, source, report)
|
126
126
|
reporter.begin_report_source(source, report)
|
127
127
|
|
128
128
|
if !sources_overrides.empty? && !sources_overrides.include?(source.class.type)
|
129
129
|
report.warnings << "skipped source"
|
130
|
-
|
130
|
+
|
131
|
+
# return a symbol to speficy the source was skipped.
|
132
|
+
# This is truthy and will result in the source being considered successful
|
133
|
+
return :skipped
|
131
134
|
end
|
132
135
|
|
133
136
|
dependencies = source.dependencies.sort_by { |dependency| dependency.name }
|
@@ -38,17 +38,20 @@ module Licensed
|
|
38
38
|
"could not find #{name} (#{version}) in any sources"
|
39
39
|
end
|
40
40
|
end
|
41
|
+
|
42
|
+
module LazySpecification
|
43
|
+
def __materialize__
|
44
|
+
spec = super
|
45
|
+
return spec if spec
|
46
|
+
|
47
|
+
Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
|
48
|
+
end
|
49
|
+
end
|
41
50
|
end
|
42
51
|
end
|
43
52
|
|
44
53
|
module Bundler
|
45
54
|
class LazySpecification
|
46
|
-
|
47
|
-
def __materialize__
|
48
|
-
spec = orig_materialize
|
49
|
-
return spec if spec
|
50
|
-
|
51
|
-
Licensed::Bundler::MissingSpecification.new(name: name, version: version, platform: platform, source: source)
|
52
|
-
end
|
55
|
+
prepend ::Licensed::Bundler::LazySpecification
|
53
56
|
end
|
54
57
|
end
|
data/lib/licensed/version.rb
CHANGED
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: 3.2.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: licensee
|