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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b6fe7d18802ded7298cac3401086635c59397905fceb05aecb3bc777a3e9457
4
- data.tar.gz: 532ff9bb7bcb77a56648165ade6dc1110f43cc06cd1c79945c3ff8ecdde02e6d
3
+ metadata.gz: 7dfc5b2b87a91e11a42997699093f41438d326c32bb5f9e1d1a6f0fe53e14273
4
+ data.tar.gz: b913696a04f7cbc09e8c8f9fbf257f695ca9024e91714860b0da9e656ff111df
5
5
  SHA512:
6
- metadata.gz: 61ec2054d0905c6f3cb448603bbecc44679e3b07425b8c18c0d5985cc1135788c36525f7567577f7f9c767b5744cf2db1e58c8cd445f35f0894354aacdad2049
7
- data.tar.gz: 19e8740cefc0cb5098579f933813bdd5912ba5ff716097c69fac603572b9484b04cd4d60710f4048002ed85b5b40a586be10b114ca3a652eb34bbf3fc1354e39
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
 
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "10.2.2"
2
+ VERSION = "10.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibliothecary
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.2
4
+ version: 10.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt