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 +4 -4
- data/lib/archivist/client/base.rb +7 -1
- data/lib/archivist/client/version.rb +1 -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: 0c9008427cb70576895b3f2402cd2bd3697aaa10
|
4
|
+
data.tar.gz: c860df9fb733f9ea724d7aad44481e843437f34c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.
|
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-
|
12
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|