berkeley_library-holdings 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f99e1bc7d9cacc841e5e723da53ad1766eecd2282c04807f442969fe339be2b
4
- data.tar.gz: 8f358a3b16241b077856af29e9f69da50613ae05a24f27b7fce0814fa3ea15ac
3
+ metadata.gz: 07eb4a47cc918d522af40c8454b6bb76644c583ec8c1e3dbab51b97dfc8d2829
4
+ data.tar.gz: 5fe389f206854c6b81c91fa70fb8b8bfea944d4527d20dda7347eac7fcf9fc48
5
5
  SHA512:
6
- metadata.gz: b27df2476a6c9fe4c4615a78e05060b885021a2e86278b8dd4775fc67540fa1927f67008f45a66e6f46396de65099c1df451cb1a7880e0fd102248b7fb5f0672
7
- data.tar.gz: 79d00a3a66df27d407312d4c0320c266f1abc4be29572304985ff5d40d42e4b71ec8b4341929c0d024e03f7c23aa27b938d25b734cedfa4dcba96a39bb8a28f1
6
+ metadata.gz: 26212582ba5896d6afa8eea5a3673d2a3a014759f742019cd0405021eadf360026c5b4da2aeda19b0bd2d0aaa8a7ae996133714b1b3f0f035e79e1c2e77ebf56
7
+ data.tar.gz: 61162d2b5a4d700092346e51e7283ad625ba103be7b2033d317e2d78c122a10cf785f7aa6277dd41beee9feb373992696b51b8182f5bd208b2f7ecb0f8aa992f
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.0.5 (2023-06-01)
2
+
3
+ - Update to `berkeley_library-util` 0.1.9 to handle non-ASCII OCLC numbers
4
+ - Fix issue where locating blank columns could fail on spreadsheets with nil rows
5
+
1
6
  # 1.0.4 (2023-04-28)
2
7
 
3
8
  - Escape OCLC numbers before constructing query URIs
@@ -7,7 +7,7 @@ module BerkeleyLibrary
7
7
  SUMMARY = 'Holdings-related utilities for the UC Berkeley Library'.freeze
8
8
  DESCRIPTION = 'A collection of holdings-related utilities for the UC Berkeley Library'.freeze
9
9
  LICENSE = 'MIT'.freeze
10
- VERSION = '1.0.4'.freeze
10
+ VERSION = '1.0.5'.freeze
11
11
  HOMEPAGE = 'https://github.com/BerkeleyLibrary/holdings'.freeze
12
12
  end
13
13
  end
@@ -7,6 +7,8 @@ module BerkeleyLibrary
7
7
  module RubyXLWorksheetExtensions
8
8
  def first_blank_column_index
9
9
  sheet_data.rows.inject(0) do |first_blank_c_index, row|
10
+ next first_blank_c_index unless row
11
+
10
12
  trailing_blank_cells = row.cells.reverse.take_while(&:blank?)
11
13
  row_first_blank_c_index = row.size - trailing_blank_cells.size
12
14
  [first_blank_c_index, row_first_blank_c_index].max
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berkeley_library-holdings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-28 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: berkeley_library-logging
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0.1'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.1.8
36
+ version: 0.1.9
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0.1'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.1.8
46
+ version: 0.1.9
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: marcel
49
49
  requirement: !ruby/object:Gem::Requirement