dor-services-client 12.0.0 → 12.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dor-services-client.gemspec +1 -1
- data/lib/dor/services/client/mutate.rb +5 -2
- data/lib/dor/services/client/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c6a905e1a35b75a98ff3dc79d06ca14f2d41820b3ee4749fd1512a02e3bacd
|
4
|
+
data.tar.gz: ccae81c7ed52bc5373b39975c786f373a81aab827d53ea71285f3970f2173f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64408bba823d2eaaf6c5dc302f39492fb29119cb0437117c4ee1e7adb551772ecb3d60bc9bbc93ed2d4eebe851fb5feddc71b4d9e3cf7daae5951745125430c4
|
7
|
+
data.tar.gz: 2fb5920472dc5b985b2323643aa7b1998ad39cff33d129eb96bec23b89c7783549fbef6011979653fb2b231daafb7beef4eccf5550a89ffdfe56e2951a983058
|
data/dor-services-client.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.required_ruby_version = '>= 2.7', '< 4' # dor-services-app needs 2.7 due to fedora3
|
26
26
|
|
27
27
|
spec.add_dependency 'activesupport', '>= 4.2', '< 8'
|
28
|
-
spec.add_dependency 'cocina-models', '~> 0.
|
28
|
+
spec.add_dependency 'cocina-models', '~> 0.81.0' # leave pinned to patch level until cocina-models hits 1.0
|
29
29
|
spec.add_dependency 'deprecation', '>= 0'
|
30
30
|
spec.add_dependency 'faraday', '~> 2.0'
|
31
31
|
spec.add_dependency 'faraday-retry'
|
@@ -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,7 +1,7 @@
|
|
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.3.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: 2022-
|
12
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -37,14 +37,14 @@ dependencies:
|
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.81.0
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.81.0
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: deprecation
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|