bibliothecary 10.2.2 → 10.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tidelift +1 -0
- data/CHANGELOG.md +10 -0
- data/lib/bibliothecary/multi_parsers/spdx.rb +2 -2
- data/lib/bibliothecary/parsers/maven.rb +0 -1
- data/lib/bibliothecary/version.rb +1 -1
- metadata +3 -3
- data/.tidelift.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 305a667de2b400a8b78c0dcc8159442ec94a0d0c05cca71b3eb2ed25be9ddec3
|
4
|
+
data.tar.gz: 42645beb4d9cfa6aab4837045541d7747370f14f791f96c8aca31594aa9b614e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ef33d46181f9d9b33c53ef28b197b3b28d1dae1c1b9f8842019a716b547696c3a69ffa8c4c26ccc64e9cbb078d2559ffd57ae3688f5fee9554265aa5d0f6c4e
|
7
|
+
data.tar.gz: dec4e3346c4b2a6ff8b64a61e90d5d8956977b6b3b19b3b49d1caab9921d7c2f1b6f71d7023a36f12fed2498a8fa705f4efc4699337aef665ddb9385d7389413
|
data/.tidelift
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
TIDELIFT_EXCLUDED_MANIFESTS=spec/fixtures
|
data/CHANGELOG.md
CHANGED
@@ -13,12 +13,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
+
## [10.2.4] - 2024-11-06
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- Fixed parsing of pom files where parent properties within the file are required for dependencies
|
21
|
+
|
16
22
|
## [10.2.2] - 2024-09-25
|
17
23
|
|
18
24
|
### Added
|
19
25
|
|
20
26
|
- Support parsing *.spdx.json files
|
21
27
|
|
28
|
+
### Changed
|
29
|
+
- `Bibliothecary::PURL_TYPE_MAPPING` has changed to `Bibliothecary::PurlUtil::PURL_TYPE_MAPPING`
|
30
|
+
- `Bibliothecary::MultiParsers::CycloneDX::ManifestEntries.full_name_for_purl` has changed to `Bibliothecary::PurlUtil.full_name`
|
31
|
+
|
22
32
|
## [10.2.0] - 2024-08-27
|
23
33
|
|
24
34
|
### Changed
|
@@ -76,7 +76,7 @@ module Bibliothecary
|
|
76
76
|
spdx_version = match[1]
|
77
77
|
elsif (match = stripped_line.match(PURL_REGEXP))
|
78
78
|
purl = PackageURL.parse(match[1])
|
79
|
-
platform ||= purl.type
|
79
|
+
platform ||= PurlUtil::PURL_TYPE_MAPPING[purl.type]
|
80
80
|
purl_name ||= PurlUtil.full_name(purl)
|
81
81
|
purl_version ||= purl.version
|
82
82
|
end
|
@@ -113,7 +113,7 @@ module Bibliothecary
|
|
113
113
|
|
114
114
|
first_purl_string = package.dig("externalRefs")&.find { |ref| ref["referenceType"] == "purl" }&.dig("referenceLocator")
|
115
115
|
purl = first_purl_string && PackageURL.parse(first_purl_string)
|
116
|
-
platform = purl&.type
|
116
|
+
platform = PurlUtil::PURL_TYPE_MAPPING[purl&.type]
|
117
117
|
purl_name = PurlUtil.full_name(purl)
|
118
118
|
purl_version = purl&.version
|
119
119
|
|
@@ -425,7 +425,6 @@ module Bibliothecary
|
|
425
425
|
# the xml root is <project> so lookup the non property name in the xml
|
426
426
|
# this converts ${project/group.id} -> ${group/id}
|
427
427
|
non_prop_name = property_name.gsub(".", "/").gsub("project/", "")
|
428
|
-
return "${#{property_name}}" if !xml.respond_to?("properties") && parent_properties.empty? && xml.locate(non_prop_name).empty?
|
429
428
|
|
430
429
|
prop_field = xml.properties.locate(property_name).first if xml.respond_to?("properties")
|
431
430
|
parent_prop = parent_properties[property_name] || # e.g. "${foo}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliothecary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.2.
|
4
|
+
version: 10.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tomlrb
|
@@ -237,7 +237,7 @@ files:
|
|
237
237
|
- ".rspec"
|
238
238
|
- ".rubocop.yml"
|
239
239
|
- ".ruby-version"
|
240
|
-
- ".tidelift
|
240
|
+
- ".tidelift"
|
241
241
|
- CHANGELOG.md
|
242
242
|
- CODE_OF_CONDUCT.md
|
243
243
|
- Gemfile
|
data/.tidelift.yml
DELETED