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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/preservation/client/catalog.rb +2 -11
- data/lib/preservation/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f564cb04f2c454690324230f40e8876d752f7eb405e1dcde3671d9cd573556e
|
4
|
+
data.tar.gz: f86ce941a43ca660099a67424b21450b1b83e34be79033e4dac3d99eef41c5b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b30b8db76ff51c9c1bda3c574da09e4acf294b1151b234addb1c3da66c0bbf7ba034bc11160d02b50766ededd6927bcb4945d6de759fd2e10d274fd7bdffedc3
|
7
|
+
data.tar.gz: 54ef26cec8442266b9f2b0ffb7dabd0f7df0c10b1eb18f7c05819e9b52cbda741990db9271a650b2fb6f505b66a43de736d20175289714e1cefec669822f3458
|
data/Gemfile.lock
CHANGED
@@ -23,18 +23,9 @@ module Preservation
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def request(druid:, version:, http_args:)
|
26
|
-
|
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
|
-
|
36
|
-
rescue Faraday::Error => e
|
37
|
-
raise UnexpectedResponseError, e
|
28
|
+
patch("catalog/#{druid}", http_args)
|
38
29
|
end
|
39
30
|
end
|
40
31
|
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:
|
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-
|
11
|
+
date: 2023-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|