bibliothecary 7.3.5 → 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/lib/bibliothecary/parsers/generic.rb +2 -2
- 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
|
@@ -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'],
|
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: 2022-04-
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tomlrb
|