bibliothecary 14.0.0 → 14.0.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 473d02467e27047374ca2a13db7d60fa63bdb749e043eadbbc455a64b42366d3
|
4
|
+
data.tar.gz: 31e31e7cb80446f4a8e0e8a9ce59c4a7af8eb9d76086168a442e3eac47732495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0de19e738a8b76dd4afdbdacfb7f008bbafe61860cea67367613e3f1eee964a08e0f672b7e7fd3b7e6afd4c05cb1342926ba935ad8928fc12b9eb9ed3006000
|
7
|
+
data.tar.gz: dd653fed08d2c0ca27ab9c9276f547eca550060ecbd85dddfb5bd65fa8757216f7289909a4fa0b3405cb6cf20c05b448cac539fe1668813847e54894fc26525f
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
+
## [14.0.1] - 2025-07-24
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- Bugfix: implement Bibliothecary::ParserResult in SPDX parser too, and add an integration test.
|
21
|
+
|
16
22
|
## [14.0.0] - 2025-07-24
|
17
23
|
|
18
24
|
### Added
|
@@ -41,7 +41,7 @@ module Bibliothecary
|
|
41
41
|
# For example see conda.rb
|
42
42
|
kind = determine_kind_from_info(info)
|
43
43
|
parser_result = parse_file(info.relative_path, info.contents, options: options)
|
44
|
-
parser_result = ParserResult.new if parser_result.nil? # work around any legacy parsers that return nil
|
44
|
+
parser_result = ParserResult.new(dependencies: []) if parser_result.nil? # work around any legacy parsers that return nil
|
45
45
|
|
46
46
|
Bibliothecary::Analyser.create_analysis(platform_name, info.relative_path, kind, parser_result)
|
47
47
|
rescue Bibliothecary::FileParsingError => e
|
@@ -106,7 +106,7 @@ module Bibliothecary
|
|
106
106
|
component["purl"]
|
107
107
|
end
|
108
108
|
|
109
|
-
ParserResult.new(dependencies: entries[platform_name.to_sym])
|
109
|
+
ParserResult.new(dependencies: entries[platform_name.to_sym] || [])
|
110
110
|
end
|
111
111
|
|
112
112
|
def parse_cyclonedx_xml(file_contents, options: {})
|
@@ -131,7 +131,7 @@ module Bibliothecary
|
|
131
131
|
component.locate("purl").first&.text
|
132
132
|
end
|
133
133
|
|
134
|
-
ParserResult.new(dependencies: entries[platform_name.to_sym])
|
134
|
+
ParserResult.new(dependencies: entries[platform_name.to_sym] || [])
|
135
135
|
end
|
136
136
|
end
|
137
137
|
end
|
@@ -50,7 +50,7 @@ module Bibliothecary
|
|
50
50
|
|
51
51
|
raise NoEntries if entries.empty?
|
52
52
|
|
53
|
-
entries[platform_name.to_sym]
|
53
|
+
Bibliothecary::ParserResult.new(dependencies: entries[platform_name.to_sym] || [])
|
54
54
|
end
|
55
55
|
|
56
56
|
def parse_spdx_tag_value_file_contents(file_contents, source = nil)
|
@@ -104,7 +104,7 @@ module Bibliothecary
|
|
104
104
|
|
105
105
|
raise NoEntries if entries.empty?
|
106
106
|
|
107
|
-
entries[platform_name.to_sym]
|
107
|
+
Bibliothecary::ParserResult.new(dependencies: entries[platform_name.to_sym] || [])
|
108
108
|
end
|
109
109
|
|
110
110
|
def parse_spdx_json_file_contents(file_contents, source = nil)
|