bundler-sbom 0.3.1 → 0.3.2
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/lib/bundler/sbom/spec_license_finder.rb +14 -2
- data/lib/bundler/sbom/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: ec80424de66f7be5b67cd7d4f0e84b716b36f5862595022f7558c6d768f39f55
|
|
4
|
+
data.tar.gz: cf38dd73e3a0a16b375653d2fb12fa61d90f09b2105d583d1d354c54367ebcb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9031f62301d2d1b4ddfff68ef0be7b58b30bca61f6c173d44ad709a0a43441e665357fb1a1ef3d375a6d7c0c8c1faf2a3f3a0bfc148d3b66933c14adc2dcf3a4
|
|
7
|
+
data.tar.gz: ca55f0cb0b4a754e64c7c445d30372e447ed71670bd62a0d77029c64b7ab18fdcf4934c0a4ba84355a4dde10912424d3bf639124411968cfa376be8cce73d38c
|
|
@@ -2,11 +2,23 @@ module Bundler
|
|
|
2
2
|
module Sbom
|
|
3
3
|
module SpecLicenseFinder
|
|
4
4
|
def self.find_licenses(spec)
|
|
5
|
-
gemspec =
|
|
5
|
+
gemspec = begin
|
|
6
|
+
mat = spec.materialize_for_installation if spec.respond_to?(:materialize_for_installation)
|
|
7
|
+
mat if mat.respond_to?(:licenses)
|
|
8
|
+
rescue Bundler::GemspecError
|
|
9
|
+
nil
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
begin
|
|
13
|
+
gemspec ||= spec.__materialize__ if spec.respond_to?(:__materialize__)
|
|
14
|
+
rescue Bundler::GemspecError
|
|
15
|
+
# ignore
|
|
16
|
+
end
|
|
17
|
+
|
|
6
18
|
begin
|
|
7
19
|
gemspec ||= Gem::Specification.find_by_name(spec.name, spec.version)
|
|
8
20
|
rescue Gem::LoadError
|
|
9
|
-
#
|
|
21
|
+
Bundler.ui.warn("Warning: Could not find license information for #{spec.name} (#{spec.version})")
|
|
10
22
|
end
|
|
11
23
|
|
|
12
24
|
licenses = []
|
data/lib/bundler/sbom/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bundler-sbom
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SHIBATA Hiroshi
|
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
80
|
version: '0'
|
|
81
81
|
requirements: []
|
|
82
|
-
rubygems_version: 4.0.
|
|
82
|
+
rubygems_version: 4.0.6
|
|
83
83
|
specification_version: 4
|
|
84
84
|
summary: Generate SPDX SBOM(Software Bill of Materials) files with Bundler
|
|
85
85
|
test_files: []
|