bibliothecary 10.2.2 → 10.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliothecary/multi_parsers/spdx.rb +2 -2
- data/lib/bibliothecary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dfc5b2b87a91e11a42997699093f41438d326c32bb5f9e1d1a6f0fe53e14273
|
4
|
+
data.tar.gz: b913696a04f7cbc09e8c8f9fbf257f695ca9024e91714860b0da9e656ff111df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9b0b9fda708eee583ffe0a41e18b6cb3e50c723038f51d1320bc8b175be36737cf0df3c77bc98baa8cb0c220ad2b07d84e2d5d77306ac933c8029190bee3a79
|
7
|
+
data.tar.gz: 86d1f61c7ed98652aba0e36938ddfb5d39970358f7f4564cd35a1e4cf83560d3879732c4d5ee62f05a50f57b8d71e974c8079db87568a9e3cf444e0ce2f15b92
|
@@ -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
|
|