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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d123cfe73a0981439bec1c66e49f10bb6dd5d0d43bebf72eebaede03f4ae6ae
4
- data.tar.gz: 0f2f18cc38f22bca07062506662f0feaa1613e7179f4ab86379d3d60dca74394
3
+ metadata.gz: a7c6a905e1a35b75a98ff3dc79d06ca14f2d41820b3ee4749fd1512a02e3bacd
4
+ data.tar.gz: ccae81c7ed52bc5373b39975c786f373a81aab827d53ea71285f3970f2173f61
5
5
  SHA512:
6
- metadata.gz: 45638215f8d33a565923e1c75368d649faa675bcd9491914b6d9fd73f5bb72ac9c2d3b9c32a2754ac6307545ed9ad88e85e05c298a3c141bafbe44defeae5ded
7
- data.tar.gz: fddfd25949ecda8603982e4008321dce816dd2633d51db01c97de3b589c5341092c7fe90f3df164446ce85162c4ed8bb6a80dbbf33472ae4831b376ede539b29
6
+ metadata.gz: 64408bba823d2eaaf6c5dc302f39492fb29119cb0437117c4ee1e7adb551772ecb3d60bc9bbc93ed2d4eebe851fb5feddc71b4d9e3cf7daae5951745125430c4
7
+ data.tar.gz: 2fb5920472dc5b985b2323643aa7b1998ad39cff33d129eb96bec23b89c7783549fbef6011979653fb2b231daafb7beef4eccf5550a89ffdfe56e2951a983058
@@ -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.79.0' # leave pinned to patch level until cocina-models hits 1.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 object_path
83
+ req.url path
81
84
  end
82
85
  raise_exception_based_on_response!(resp, object_identifier) unless resp.success?
83
86
 
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '12.0.0'
6
+ VERSION = '12.3.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: 12.0.0
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-05-09 00:00:00.000000000 Z
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.79.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.79.0
47
+ version: 0.81.0
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: deprecation
50
50
  requirement: !ruby/object:Gem::Requirement