dor-services-client 7.1.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddf98aa77b3f6b4f415905dc35f32e6ee79c8c73783e948d0a829336462af5e6
4
- data.tar.gz: '09a46813486cca151fecba1c366fdb13e6a48d91200f69385cabac7cd2f53ba7'
3
+ metadata.gz: 26ea6df47f6abced00a0cc0aa06683f0ffffc3b7e09c04df374245ca0e510fa0
4
+ data.tar.gz: a19dfa02264725f02f51713077bc3a391a15c6f26e96dd2074be4546d6dfdc9d
5
5
  SHA512:
6
- metadata.gz: 8fe163bcd4dcd39f507ffd95b240d833d5376cd4e2f894a65716107ee1150979f9a6e5182fcb28d373d2733dbc296c6e9ab48a83f40806c9ca8eaef9b07df61c
7
- data.tar.gz: ac14e775bbce18d41babc1fc0c74f84017f5b40bba6dbb775c62132ab9c43a425f1681c8cc568a99fe976f422ec20bfe0b081f8a2e5862fcb41d1a85c1580831
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.
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '7.1.0'
6
+ VERSION = '7.2.0'
7
7
  end
8
8
  end
9
9
  end
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.1.0
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-14 00:00:00.000000000 Z
12
+ date: 2021-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport