dor-services-client 12.1.0 → 12.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 +4 -4
- data/lib/dor/services/client/mutate.rb +5 -2
- data/lib/dor/services/client/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e57addb882cfe21869e81252a7a215483d311905fdb53d7678fc6457cd83db3
|
4
|
+
data.tar.gz: be5c25a574e9f35a4abe978d8e41b0ea9356b6451a9712e8e8a4ded07cd29c09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37f68e8f714e613515adcecc7111ed4aa2f2eea8fbeff9371d4da36dd3ae2bc04fd154e7eaf5e6442312ba201ad94c5a002262ce8c6ece13073f3a4fe3e99d75
|
7
|
+
data.tar.gz: b720308ed75a59766a4e9205b1ee9087b72a508e062ae51602b9fdef480db2b720b3c09d19aba98bed7dafd7b0e57d697b90260b2310a7aa55ba55c658dae027
|
@@ -72,12 +72,15 @@ module Dor
|
|
72
72
|
end
|
73
73
|
|
74
74
|
# Destroys an object
|
75
|
+
# @param [String] user_name (nil) the user name of the user doing the destroy
|
75
76
|
# @return [Boolean] true if successful
|
76
77
|
# @raise [NotFoundResponse] when the response is a 404 (object not found)
|
77
78
|
# @raise [UnexpectedResponse] if the request is unsuccessful.
|
78
|
-
def destroy
|
79
|
+
def destroy(user_name: nil)
|
80
|
+
path = object_path
|
81
|
+
path += "?user_name=#{user_name}" if user_name
|
79
82
|
resp = connection.delete do |req|
|
80
|
-
req.url
|
83
|
+
req.url path
|
81
84
|
end
|
82
85
|
raise_exception_based_on_response!(resp, object_identifier) unless resp.success?
|
83
86
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
- Michael Giarlo
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-05-
|
12
|
+
date: 2022-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -213,7 +213,7 @@ dependencies:
|
|
213
213
|
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
|
-
description:
|
216
|
+
description:
|
217
217
|
email:
|
218
218
|
- jcoyne@justincoyne.com
|
219
219
|
- leftwing@alumni.rutgers.edu
|
@@ -261,7 +261,7 @@ homepage: https://github.com/sul-dlss/dor-services-client
|
|
261
261
|
licenses: []
|
262
262
|
metadata:
|
263
263
|
rubygems_mfa_required: 'true'
|
264
|
-
post_install_message:
|
264
|
+
post_install_message:
|
265
265
|
rdoc_options: []
|
266
266
|
require_paths:
|
267
267
|
- lib
|
@@ -279,8 +279,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
279
|
- !ruby/object:Gem::Version
|
280
280
|
version: '0'
|
281
281
|
requirements: []
|
282
|
-
rubygems_version: 3.3.
|
283
|
-
signing_key:
|
282
|
+
rubygems_version: 3.3.7
|
283
|
+
signing_key:
|
284
284
|
specification_version: 4
|
285
285
|
summary: A client for dor-services-app
|
286
286
|
test_files: []
|