archivist-client 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: aa0b148a689ff5f6b8bbb1c13a1ba9cd25ba5656
4
- data.tar.gz: f62b6b3638d6e75e2118e22ff7df112671b0bdc7
3
+ metadata.gz: 0c9008427cb70576895b3f2402cd2bd3697aaa10
4
+ data.tar.gz: c860df9fb733f9ea724d7aad44481e843437f34c
5
5
  SHA512:
6
- metadata.gz: e4e5fef220dd80e05c4b954dd1577797f2978fb252141776ee07e1f272919e7814e86c5b5d2294b4b74b3cbbabdc15bee866e0013f89e33b37500f80d447b290
7
- data.tar.gz: 9b2a3f3cae31a3d78b3fd07483a060a3d4d137702330ff68e2eca34c9cd9e09b09f5736c3685a9824083e31443ce404d2038e3f4699631284149d6a84cb3fcac
6
+ metadata.gz: 440463fa1995e5f7a93b674fc38874c908c87cd7f665134d6890f2bbc29a577757a588b09d0f606bdd4b4f484ff5530881054fec8b89b9f2b42af3e31a2f668c
7
+ data.tar.gz: b986d07583d448c6bedc641df5e6afeea121bc61e3cad047687e9321d3e1ef4a2d99fb8abb9cd075a0a56c3815bf85f6a6ef2ee2040a2b38050e59c9219c6e31
@@ -42,7 +42,13 @@ module Archivist
42
42
  Model::QueryResponse.new.tap do |qr|
43
43
  response = @conn.get('/advancedsearch.php', params(opts))
44
44
  rep = Representation::QueryResponse.new(qr)
45
- rep.from_json(response.body)
45
+ begin
46
+ rep.from_json(response.body)
47
+ rescue => e
48
+ $stderr.puts "Unable to parse as Archivist::Representation::QueryResponse:"
49
+ $stderr.puts response.body
50
+ raise e
51
+ end
46
52
  end
47
53
  end
48
54
 
@@ -1,5 +1,5 @@
1
1
  module Archivist
2
2
  module Client
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archivist-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-24 00:00:00.000000000 Z
12
+ date: 2018-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake