bibliothecary 7.3.3 → 7.3.6

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: bb1338bc28ebb3dde8a6bdb5037f000176b9d759aa391319e74cbc85a35bd0ad
4
- data.tar.gz: 8acc8a5acddd673c79680cefe8f0af6e325fd21905eb82da8751a01df81dac2c
3
+ metadata.gz: 84298cce932d2116b7afc6933215c4c3edefb9228a90436df6eca8ffbe8b3106
4
+ data.tar.gz: f6e1573273acee5017fd38690293d5850daaab5e5d3c5f20e5c4e6d6f53e1e13
5
5
  SHA512:
6
- metadata.gz: b078d0d7b486f79911d2f4426c431fc61353d6f326e173faaa7b3a6154cbb8dd77f1d0e0e0ceca50e78ed646cded4490e22a2dc7f324d8d041276b41e430952d
7
- data.tar.gz: e6bb42ee137c6e9a5eeeee0f375c2a6362e822af1011ad6f92d101d7f1b4d7c9ea8dee04925846e5efd3ea553d0e57f6fde4c1e678d7cb8aaa07eab458d00fed
6
+ metadata.gz: 484603f946e892acfb3e00eff7feb2c9f8adc18f7c4c2d7ca7fc918c64550637b683fb303b8978b1f5b7965e577ecf9ac56ae8030e247c8898963d42bc52b304
7
+ data.tar.gz: a5c95805419f43064fb43e828f3ddd2ca486170801c27fe387a611bbcc2a84d8906d48b3044ecfea462aa362d405d9fb4797e2bcb88dc77a3bb742541a90e131
data/README.md CHANGED
@@ -62,6 +62,7 @@ All available config options are in: https://github.com/librariesio/bibliothecar
62
62
  - pom.xml
63
63
  - ivy.xml
64
64
  - build.gradle
65
+ - gradle-dependencies-q.txt
65
66
  - RubyGems
66
67
  - Gemfile
67
68
  - Gemfile.lock
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "7.3.3"
2
+ VERSION = "7.3.6"
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: 7.3.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: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb