preservation-client 5.3.0 → 6.0.0

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: fecead20f03947d189027e250689d1af848866f889dadfd81f553ee3bb00d07b
4
- data.tar.gz: fa4aa6b61ac54291a787e91eef05fa63b4c3fb607a4dbbb8e9f29068194510ee
3
+ metadata.gz: 1f564cb04f2c454690324230f40e8876d752f7eb405e1dcde3671d9cd573556e
4
+ data.tar.gz: f86ce941a43ca660099a67424b21450b1b83e34be79033e4dac3d99eef41c5b3
5
5
  SHA512:
6
- metadata.gz: 2fbb241aa2b6422213de3b5b54a76c38a96d1c892b901384472087ee684718b269130522931d806536abea3e30b51edc2396c55b6cdbb00d76ce34c7a17c14c7
7
- data.tar.gz: '0986527f81fec0dfdad8faefbcfbcc03dde1066b46382ac34babe5dec7da5459733eec8a6c7bf09c79e0f5b8ac291e177749b7a13f2337f2ac0ae81832bbe5f2'
6
+ metadata.gz: b30b8db76ff51c9c1bda3c574da09e4acf294b1151b234addb1c3da66c0bbf7ba034bc11160d02b50766ededd6927bcb4945d6de759fd2e10d274fd7bdffedc3
7
+ data.tar.gz: 54ef26cec8442266b9f2b0ffb7dabd0f7df0c10b1eb18f7c05819e9b52cbda741990db9271a650b2fb6f505b66a43de736d20175289714e1cefec669822f3458
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- preservation-client (5.3.0)
4
+ preservation-client (6.0.0)
5
5
  activesupport (>= 4.2, < 8)
6
6
  faraday (~> 2.0)
7
7
  moab-versioning (>= 5.0.0, < 7)
@@ -23,18 +23,9 @@ module Preservation
23
23
  private
24
24
 
25
25
  def request(druid:, version:, http_args:)
26
- result = if version == 1
27
- connection.post "/#{api_version}/catalog", http_args
28
- else
29
- connection.patch "/#{api_version}/catalog/#{druid}", http_args
30
- end
31
- unless result.success?
32
- raise UnexpectedResponseError, "response was not successful. Received status #{result.status}"
33
- end
26
+ return post('catalog', http_args) if version == 1
34
27
 
35
- true
36
- rescue Faraday::Error => e
37
- raise UnexpectedResponseError, e
28
+ patch("catalog/#{druid}", http_args)
38
29
  end
39
30
  end
40
31
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Preservation
4
4
  class Client
5
- VERSION = '5.3.0'
5
+ VERSION = '6.0.0'
6
6
  end
7
7
  end
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: 5.3.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-07 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport