bibliothecary 7.3.3 → 7.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/bibliothecary/parsers/generic.rb +2 -2
- data/lib/bibliothecary/parsers/maven.rb +10 -1
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84298cce932d2116b7afc6933215c4c3edefb9228a90436df6eca8ffbe8b3106
|
4
|
+
data.tar.gz: f6e1573273acee5017fd38690293d5850daaab5e5d3c5f20e5c4e6d6f53e1e13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 484603f946e892acfb3e00eff7feb2c9f8adc18f7c4c2d7ca7fc918c64550637b683fb303b8978b1f5b7965e577ecf9ac56ae8030e247c8898963d42bc52b304
|
7
|
+
data.tar.gz: a5c95805419f43064fb43e828f3ddd2ca486170801c27fe387a611bbcc2a84d8906d48b3044ecfea462aa362d405d9fb4797e2bcb88dc77a3bb742541a90e131
|
data/README.md
CHANGED
@@ -22,9 +22,9 @@ module Bibliothecary
|
|
22
22
|
raise "Missing headers #{missing_headers} in CSV" unless missing_headers.empty?
|
23
23
|
|
24
24
|
table.map.with_index do |row, idx|
|
25
|
-
line = idx + 1
|
25
|
+
line = idx + 2 # use 1-based index just like the 'csv' std lib, and count the headers as first row.
|
26
26
|
required_headers.each do |h|
|
27
|
-
raise "missing field '#{h}' on line #{line}" if row[h].empty?
|
27
|
+
raise "missing field '#{h}' on line #{line}" if row[h].nil? || row[h].empty?
|
28
28
|
end
|
29
29
|
{
|
30
30
|
platform: row['platform'],
|
@@ -44,6 +44,10 @@ module Bibliothecary
|
|
44
44
|
kind: 'manifest',
|
45
45
|
parser: :parse_gradle
|
46
46
|
},
|
47
|
+
match_filename("build.gradle.kts", case_insensitive: true) => {
|
48
|
+
kind: 'manifest',
|
49
|
+
parser: :parse_gradle_kts
|
50
|
+
},
|
47
51
|
match_extension(".xml", case_insensitive: true) => {
|
48
52
|
content_matcher: :ivy_report?,
|
49
53
|
kind: 'lockfile',
|
@@ -223,6 +227,11 @@ module Bibliothecary
|
|
223
227
|
end.compact
|
224
228
|
end
|
225
229
|
|
230
|
+
def self.parse_gradle_kts(manifest)
|
231
|
+
# TODO: the gradle-parser side needs to be implemented for this, coming soon.
|
232
|
+
[]
|
233
|
+
end
|
234
|
+
|
226
235
|
def self.gradle_dependency_name(group, name)
|
227
236
|
if group.empty? && name.include?(":")
|
228
237
|
group, name = name.split(":", 2)
|
@@ -281,7 +290,7 @@ module Bibliothecary
|
|
281
290
|
non_prop_name = property_name.gsub(".", "/").gsub("project/", "")
|
282
291
|
return "${#{property_name}}" if !xml.respond_to?("properties") && parent_properties.empty? && xml.locate(non_prop_name).empty?
|
283
292
|
|
284
|
-
prop_field = xml.properties.locate(property_name).first
|
293
|
+
prop_field = xml.properties.locate(property_name).first if xml.respond_to?("properties")
|
285
294
|
parent_prop = parent_properties[property_name]
|
286
295
|
if prop_field
|
287
296
|
prop_field.nodes.first
|
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: 7.3.
|
4
|
+
version: 7.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tomlrb
|