dor-services-client 15.19.1 → 15.19.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 135d0ff194799f8222a4efc802adacdbaadef036cea2362336f2170271e235a7
|
4
|
+
data.tar.gz: a0a11ee12d5b00537fd83a4ddc9987c5b456da235da7ab36a26c3b9a51009f93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e4a33e221df8476518aa1cfbf2ab6fb24099593b8908ee457c071216e8b8933c8d0246b5361dad3bcd34dd14d55aa87570da233866d4ecbd80f7a6ebf507974
|
7
|
+
data.tar.gz: de1a1f8f9e590d28c2a959d539ddae0b8b15837401fb0f8ca0582fd950a0f5b05bc44ef0cee011a6c64ad46392d8b435beda8123a3ca81cf9b8b2599f30a5d32
|
data/Gemfile.lock
CHANGED
@@ -17,8 +17,15 @@ module Dor
|
|
17
17
|
|
18
18
|
# @return [Dor::Services::Client::Process]
|
19
19
|
def process(process)
|
20
|
-
|
21
|
-
|
20
|
+
raise ArgumentError, '`process` argument cannot be blank in call to `#process(process)`' if process.blank?
|
21
|
+
|
22
|
+
# Return memoized object instance if process value is the same
|
23
|
+
#
|
24
|
+
# This allows the client to interact with multiple workflows for a given object
|
25
|
+
return @process if @process&.process == process
|
26
|
+
|
27
|
+
@process = Process.new(connection: connection, version: api_version, object_identifier: object_identifier,
|
28
|
+
workflow_name: workflow_name, process: process, object_workflow_client: self)
|
22
29
|
end
|
23
30
|
|
24
31
|
# @return [Workflow::Response::Workflow]
|
@@ -44,10 +44,10 @@ module Dor
|
|
44
44
|
perform_update(status: 'error', error_msg: error_msg, error_text: error_text)
|
45
45
|
end
|
46
46
|
|
47
|
-
private
|
48
|
-
|
49
47
|
attr_reader :object_identifier, :workflow_name, :process, :object_workflow_client
|
50
48
|
|
49
|
+
private
|
50
|
+
|
51
51
|
def perform_update(**payload)
|
52
52
|
resp = connection.put do |req|
|
53
53
|
req.url "#{api_version}/objects/#{object_identifier}/workflows/#{workflow_name}/processes/#{process}"
|
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: 15.19.
|
4
|
+
version: 15.19.3
|
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: 2025-07-
|
12
|
+
date: 2025-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|