preservation-client 0.2.0 → 0.2.1

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: bd5473aaca131902c39dfed9a2f64f040f05fe058f88240a837bca61513e0aed
4
- data.tar.gz: 0d4cabcf05268572e99869d5bb0919d94b7118d5ebf52a5de9a9acd50b1f1ca8
3
+ metadata.gz: 87f6d28de114c911290ae02d86e45dc39728ffd2ca63e76c7868f40a44656b01
4
+ data.tar.gz: 623f1c5881b8cb1cc402376bd934494708c0ee5d388ee3e6e7d78a366d6ebdee
5
5
  SHA512:
6
- metadata.gz: c773deeb4f5106de43b9a8a87287ca6a87c3437419bbc25b2f208aee43c3f0de4c76a5835919aeecb2decc0f1458d5043337a9786f3ac5a71b4b5f2acf6de1d6
7
- data.tar.gz: 95f6a7d7b736354ed67ab3dac8e5260d3cddd3dfa48486758e6ed926bc67f2101cdb61cf2ff60a6c0056f419eaa93b43d696ab58724c84faa01990ef51051ce3
6
+ metadata.gz: 6a8a7c2f696815790e7fc8142049867f5a5a138cde7e22d966ddef7ba4f12b5314b25266d9093757008e81eab5943221c234b4ce3618791fa20a7d93aa5d63f9
7
+ data.tar.gz: a9e1d7b4b08b208882b900c83509a5f4f79699f2aec5509ae206ff1659b032ed5bd43a63a130ceccfab11ac68c02092a913d184802ab63c1e073f38ff939691f
data/.rubocop_todo.yml CHANGED
@@ -1,24 +1,11 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-09-19 17:54:24 -0700 using RuboCop version 0.74.0.
3
+ # on 2019-09-24 11:53:40 -0700 using RuboCop version 0.74.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 1
9
+ # Offense count: 2
10
10
  Metrics/AbcSize:
11
- Max: 24
12
-
13
- # Offense count: 1
14
- # Configuration parameters: CountComments, ExcludedMethods.
15
- # ExcludedMethods: refine
16
- Metrics/BlockLength:
17
11
  Max: 26
18
-
19
- # Offense count: 1
20
- # Cop supports --auto-correct.
21
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
22
- # URISchemes: http, https
23
- Metrics/LineLength:
24
- Max: 137
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Preservation
4
4
  class Client
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -20,7 +20,7 @@ module Preservation
20
20
  req.headers['Content-Type'] = 'application/json'
21
21
  req.headers['Accept'] = 'application/json'
22
22
  end
23
- return resp.body if resp.success?
23
+ return JSON.parse(resp.body).with_indifferent_access if resp.success?
24
24
 
25
25
  errmsg = ResponseErrorFormatter
26
26
  .format(response: resp, object_id: object_id, client_method_name: caller_method_name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preservation-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-21 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport