dor-services-client 12.1.0 → 12.2.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: 60325a5c1cf8adb36234b64f76d44b3a0bfd35f432bc015c709a093127cb5280
4
- data.tar.gz: 54a8ca1543a6c04c2e5d706f1ccff2a36d3b2e58b578da6416a88361caedc199
3
+ metadata.gz: 5e57addb882cfe21869e81252a7a215483d311905fdb53d7678fc6457cd83db3
4
+ data.tar.gz: be5c25a574e9f35a4abe978d8e41b0ea9356b6451a9712e8e8a4ded07cd29c09
5
5
  SHA512:
6
- metadata.gz: 69b8b22b5fcef3eb6da7979bdf1134297ee1ec241aa2f547c919526be53d45e390cc1237524f47e4c728555f23c9a59a7ab58d21bd9af9121482110985dd1254
7
- data.tar.gz: ebe5b8069b3649324115218bd35249cbb16030ee9d6e3096f8e46bfd468ea8aa4ac3293a519478ce3c36edaba292dbf536bb0e0a6a1ff48a05a26a2ff92ac606
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 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.1.0'
6
+ VERSION = '12.2.0'
7
7
  end
8
8
  end
9
9
  end
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.1.0
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-13 00:00:00.000000000 Z
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.4
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: []