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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b6fe7d18802ded7298cac3401086635c59397905fceb05aecb3bc777a3e9457
4
- data.tar.gz: 532ff9bb7bcb77a56648165ade6dc1110f43cc06cd1c79945c3ff8ecdde02e6d
3
+ metadata.gz: 305a667de2b400a8b78c0dcc8159442ec94a0d0c05cca71b3eb2ed25be9ddec3
4
+ data.tar.gz: 42645beb4d9cfa6aab4837045541d7747370f14f791f96c8aca31594aa9b614e
5
5
  SHA512:
6
- metadata.gz: 61ec2054d0905c6f3cb448603bbecc44679e3b07425b8c18c0d5985cc1135788c36525f7567577f7f9c767b5744cf2db1e58c8cd445f35f0894354aacdad2049
7
- data.tar.gz: 19e8740cefc0cb5098579f933813bdd5912ba5ff716097c69fac603572b9484b04cd4d60710f4048002ed85b5b40a586be10b114ca3a652eb34bbf3fc1354e39
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}"
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "10.2.2"
2
+ VERSION = "10.2.4"
3
3
  end
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.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-09-25 00:00:00.000000000 Z
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.yml"
240
+ - ".tidelift"
241
241
  - CHANGELOG.md
242
242
  - CODE_OF_CONDUCT.md
243
243
  - Gemfile
data/.tidelift.yml DELETED
@@ -1,2 +0,0 @@
1
- ci:
2
- extra_ignore_directories: [ spec/fixtures ]