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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/evergreen_holdings.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bc48757194a624a320a66952894f1fb06feb2d3
4
- data.tar.gz: bc39854e6d931c380a7996b8c998268917254bf7
3
+ metadata.gz: 318b03aa9022242c32669fdea8e44a56de3bfdcf
4
+ data.tar.gz: 67dd171b3e19975ebddc93513add608f868880f8
5
5
  SHA512:
6
- metadata.gz: cf9824129e3a2aaaa7c4f58a3e2534f014b9d33ddb9bf0f7ad8950324849b22522f29574b2e7e53056595ce1f3dbb130957eb1aa2d7248371bfc21919b66c9bf
7
- data.tar.gz: d701f9dc7a595241544540e1cdb714a2b78be515adfa4bf476f257c27476b555a1cd614e208a507159f9052240693fbfdb4b47e9a993ca3f3843cfee4c0e8dfe
6
+ metadata.gz: 637456d7fd231c9b6a75a0cbe3aac126c8a1cf2b9f9b0b47c3fdafb518bc1e20e011572fc6458a2a8bf9a36b5e7bac9ba525867da6392e0fb4f78725f5a17d07
7
+ data.tar.gz: b96a7676c6314658fd15b4b5a874688f125ac118dc0b2813b7283e2484e5e23c657a92cf7076f7b18fdaf44cf263847dc3c4f7b06f1b307526d1e4721db2aeab
@@ -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
- unless item['__p'][35].nil?
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.8
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 00:00:00.000000000 Z
11
+ date: 2017-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest