evergreen_holdings 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/evergreen_holdings.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 318b03aa9022242c32669fdea8e44a56de3bfdcf
|
4
|
+
data.tar.gz: 67dd171b3e19975ebddc93513add608f868880f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 637456d7fd231c9b6a75a0cbe3aac126c8a1cf2b9f9b0b47c3fdafb518bc1e20e011572fc6458a2a8bf9a36b5e7bac9ba525867da6392e0fb4f78725f5a17d07
|
7
|
+
data.tar.gz: b96a7676c6314658fd15b4b5a874688f125ac118dc0b2813b7283e2484e5e23c657a92cf7076f7b18fdaf44cf263847dc3c4f7b06f1b307526d1e4721db2aeab
|
data/lib/evergreen_holdings.rb
CHANGED
@@ -158,10 +158,12 @@ module EvergreenHoldings
|
|
158
158
|
@raw_data.each do |vol|
|
159
159
|
if vol['__p'][0].size > 0
|
160
160
|
vol['__p'][0].each do |item|
|
161
|
-
|
161
|
+
i = 0
|
162
|
+
unless item['__p'][35].is_a? Array
|
162
163
|
@copies.push Item.new barcode: item['__p'][2], call_number: vol['__p'][7], location: item['__p'][24], status: item['__p'][28], owning_lib: item['__p'][5]
|
163
164
|
else
|
164
165
|
begin
|
166
|
+
puts item['__p'][35]
|
165
167
|
@copies.push Item.new barcode: item['__p'][2], call_number: vol['__p'][7], due_date: item['__p'][35][0]['__p'][6], location: item['__p'][24], status: item['__p'][28], owning_lib: item['__p'][5]
|
166
168
|
rescue
|
167
169
|
@copies.push Item.new barcode: item['__p'][2], call_number: vol['__p'][7], location: item['__p'][24], status: item['__p'][28], owning_lib: item['__p'][5]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evergreen_holdings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jane Sandberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|