dor-services-client 15.8.0 → 15.9.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/Gemfile.lock +1 -1
- data/lib/dor/services/client/mutate.rb +3 -1
- data/lib/dor/services/client/objects.rb +1 -1
- data/lib/dor/services/client/version.rb +1 -1
- metadata +2 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0871dd95e3361050b2d3169851071fc136a0b407c90c1efaeb1f37069521f909'
|
4
|
+
data.tar.gz: cf37ad51860c4f972ba9286f8cec0f15e835a01ad71f79721fc0699c9834f80f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a88faf6248beec20bb619926632dbbba797c87e462e79f3a51d821d277b22aa2db8446f87ed058761e5f3c252b66220f60b43bc49020e45d84ac2902a743c0e
|
7
|
+
data.tar.gz: 360fe1eb1986c6ae0180f4d7382294d052d030cf8b6ed13b0299abf3acb8b85d5e980fd5f231a367b23e467ed35a9552e5ccac3ad86e5364959663b71b3427bb
|
data/Gemfile.lock
CHANGED
@@ -29,13 +29,14 @@ module Dor
|
|
29
29
|
# @param [Cocina::Models::DROWithMetadata|CollectionWithMetadata|AdminPolicyWithMetadata|DRO|Collection|AdminPolicy] params model object
|
30
30
|
# @param [boolean] skip_lock do not provide ETag
|
31
31
|
# @param [boolean] validate validate the response object
|
32
|
+
# @param [Hash] event_data additional event data to be added to the update object event
|
32
33
|
# @raise [NotFoundResponse] when the response is a 404 (object not found)
|
33
34
|
# @raise [UnexpectedResponse] when the response is not successful.
|
34
35
|
# @raise [BadRequestError] when ETag not provided.
|
35
36
|
# @return [Cocina::Models::DROWithMetadata,Cocina::Models::CollectionWithMetadata,Cocina::Models::AdminPolicyWithMetadata] the returned model
|
36
37
|
# rubocop:disable Metrics/AbcSize
|
37
38
|
# rubocop:disable Metrics/MethodLength
|
38
|
-
def update(params:, skip_lock: false, validate: false)
|
39
|
+
def update(params:, skip_lock: false, validate: false, event_data: {})
|
39
40
|
raise ArgumentError, 'Cocina object not provided.' unless params.respond_to?(:externalIdentifier)
|
40
41
|
|
41
42
|
# Raised if Cocina::Models::*WithMetadata not provided.
|
@@ -43,6 +44,7 @@ module Dor
|
|
43
44
|
|
44
45
|
resp = connection.patch do |req|
|
45
46
|
req.url object_path
|
47
|
+
req.params = { event_data: event_data.to_json }
|
46
48
|
req.headers['Content-Type'] = 'application/json'
|
47
49
|
# asking the service to return JSON (else it'll be plain text)
|
48
50
|
req.headers['Accept'] = 'application/json'
|
@@ -5,7 +5,7 @@ require 'deprecation'
|
|
5
5
|
module Dor
|
6
6
|
module Services
|
7
7
|
class Client
|
8
|
-
# API calls that are about
|
8
|
+
# API calls that are about repository objects
|
9
9
|
class Objects < VersionedService
|
10
10
|
# Creates a new object in DOR
|
11
11
|
# @param params [Cocina::Models::RequestDRO,Cocina::Models::RequestCollection,Cocina::Models::RequestAdminPolicy]
|
metadata
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-services-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
- Michael Giarlo
|
9
|
-
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
11
|
date: 2025-06-03 00:00:00.000000000 Z
|
@@ -207,7 +206,6 @@ dependencies:
|
|
207
206
|
- - ">="
|
208
207
|
- !ruby/object:Gem::Version
|
209
208
|
version: '0'
|
210
|
-
description:
|
211
209
|
email:
|
212
210
|
- jcoyne@justincoyne.com
|
213
211
|
- leftwing@alumni.rutgers.edu
|
@@ -255,7 +253,6 @@ homepage: https://github.com/sul-dlss/dor-services-client
|
|
255
253
|
licenses: []
|
256
254
|
metadata:
|
257
255
|
rubygems_mfa_required: 'true'
|
258
|
-
post_install_message:
|
259
256
|
rdoc_options: []
|
260
257
|
require_paths:
|
261
258
|
- lib
|
@@ -273,8 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
270
|
- !ruby/object:Gem::Version
|
274
271
|
version: '0'
|
275
272
|
requirements: []
|
276
|
-
rubygems_version: 3.
|
277
|
-
signing_key:
|
273
|
+
rubygems_version: 3.6.3
|
278
274
|
specification_version: 4
|
279
275
|
summary: A client for dor-services-app
|
280
276
|
test_files: []
|