dor-services-client 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dor/services/client/object.rb +12 -0
- data/lib/dor/services/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: 26ea6df47f6abced00a0cc0aa06683f0ffffc3b7e09c04df374245ca0e510fa0
|
4
|
+
data.tar.gz: a19dfa02264725f02f51713077bc3a391a15c6f26e96dd2074be4546d6dfdc9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a53f6fb8e64122cfb94267fad031ed6594fb7df1d9dcb94828e7ad377f31842790faa7d5cabbdc6bba9425013075639f0b7b06c1f72a08c9d0466d0ea6572568
|
7
|
+
data.tar.gz: f78536e5a84e2579eabcf662b445090889748576ff9fa9a8d0a2445052712929f49f46695f0cd068f9afc8b4968ee566fbca98c40f3668511278b6b14f108548
|
@@ -104,6 +104,18 @@ module Dor
|
|
104
104
|
raise_exception_based_on_response!(resp)
|
105
105
|
end
|
106
106
|
|
107
|
+
# Update the DOI metadata at DataCite
|
108
|
+
# @raise [NotFoundResponse] when the response is a 404 (object not found)
|
109
|
+
# @return [boolean] true on success
|
110
|
+
def update_doi_metadata
|
111
|
+
resp = connection.post do |req|
|
112
|
+
req.url "#{object_path}/update_doi_metadata"
|
113
|
+
end
|
114
|
+
return true if resp.success?
|
115
|
+
|
116
|
+
raise_exception_based_on_response!(resp)
|
117
|
+
end
|
118
|
+
|
107
119
|
# Notify the external Goobi system for a new object that was registered in DOR
|
108
120
|
# @raise [NotFoundResponse] when the response is a 404 (object not found)
|
109
121
|
# @raise [UnexpectedResponse] when the response is not successful.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-07-
|
12
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|