bibliothecary 7.3.5 → 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: c3e4510e233cc6052a908e31f4d60498481c2b940448a2727e8cf89f28fae9b6
4
- data.tar.gz: fe1fe8895bfae3b445b8c36de74a0285e9121a6fa49fde52bc481bc78d3b8931
3
+ metadata.gz: 84298cce932d2116b7afc6933215c4c3edefb9228a90436df6eca8ffbe8b3106
4
+ data.tar.gz: f6e1573273acee5017fd38690293d5850daaab5e5d3c5f20e5c4e6d6f53e1e13
5
5
  SHA512:
6
- metadata.gz: 203d1b6888ea667b5f0cf661f7282239d1736f70547c734fb890e0f58ac43d429e4193bda6977a88ca880a2d7cfbd5c1989442f171e27aa6d583932d83898109
7
- data.tar.gz: 2fbf1aaee7ba11983db23d163b57d32e2ba195fc2fa1dad71447becba40c3eafabb9a8834a2e5a12a24d42b46424cafc32837ad8c9157478734e1d17c8d9a98d
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'],
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "7.3.5"
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.5
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-18 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