dor-services-client 15.50.0 → 15.60.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 +9 -9
- data/dor-services-client.gemspec +1 -1
- data/lib/dor/services/client/object.rb +0 -3
- data/lib/dor/services/client/process.rb +7 -4
- 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: 891c02c9b1ca11a6e49e6b9156c0d596b0922f37b9bac5f4a5740be547d485b2
|
|
4
|
+
data.tar.gz: 319ca15228feb429aee11c9cfaede313fb8ed0456e78be507bda40a5ad7ffa09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d51cb8c245d236252794b9d00e962e7ef190986335f140b2c95e26102b6c067f8f76680fcd3b287b365fe29475306b23c1f091e99338d03fcebc137781a33df0
|
|
7
|
+
data.tar.gz: 016c4977a15d1e1ee29122c9b9049a9c52d2fc3a7ba2f076b8323332de7f85ee6a1cc59d88639c68ab92f39d5f1ef6d766d7562f31abe29c5837c0fac48ac530
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
dor-services-client (15.
|
|
4
|
+
dor-services-client (15.60.0)
|
|
5
5
|
activesupport (>= 7.0.0)
|
|
6
|
-
cocina-models (~> 0.
|
|
6
|
+
cocina-models (~> 0.126.0)
|
|
7
7
|
deprecation
|
|
8
8
|
faraday (~> 2.0)
|
|
9
9
|
faraday-retry
|
|
@@ -35,7 +35,7 @@ GEM
|
|
|
35
35
|
bigdecimal (4.1.2)
|
|
36
36
|
byebug (13.0.0)
|
|
37
37
|
reline (>= 0.6.0)
|
|
38
|
-
cocina-models (0.
|
|
38
|
+
cocina-models (0.126.0)
|
|
39
39
|
activesupport
|
|
40
40
|
cocina_display
|
|
41
41
|
deprecation
|
|
@@ -112,13 +112,13 @@ GEM
|
|
|
112
112
|
iso8601 (0.13.0)
|
|
113
113
|
janeway-jsonpath (1.0.0)
|
|
114
114
|
json (2.20.0)
|
|
115
|
-
jsonschema_rs (0.46.
|
|
115
|
+
jsonschema_rs (0.46.10-arm64-darwin)
|
|
116
116
|
bigdecimal (>= 3.1, < 5)
|
|
117
|
-
jsonschema_rs (0.46.
|
|
117
|
+
jsonschema_rs (0.46.10-x86_64-darwin)
|
|
118
118
|
bigdecimal (>= 3.1, < 5)
|
|
119
|
-
jsonschema_rs (0.46.
|
|
119
|
+
jsonschema_rs (0.46.10-x86_64-linux)
|
|
120
120
|
bigdecimal (>= 3.1, < 5)
|
|
121
|
-
language_server-protocol (3.17.0.
|
|
121
|
+
language_server-protocol (3.17.0.6)
|
|
122
122
|
lint_roller (1.1.0)
|
|
123
123
|
logger (1.7.0)
|
|
124
124
|
minitest (6.0.6)
|
|
@@ -161,7 +161,7 @@ GEM
|
|
|
161
161
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
162
162
|
rspec-support (~> 3.13.0)
|
|
163
163
|
rspec-support (3.13.7)
|
|
164
|
-
rubocop (1.88.
|
|
164
|
+
rubocop (1.88.1)
|
|
165
165
|
json (~> 2.3)
|
|
166
166
|
language_server-protocol (~> 3.17.0.2)
|
|
167
167
|
lint_roller (~> 1.1.0)
|
|
@@ -172,7 +172,7 @@ GEM
|
|
|
172
172
|
rubocop-ast (>= 1.49.0, < 2.0)
|
|
173
173
|
ruby-progressbar (~> 1.7)
|
|
174
174
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
175
|
-
rubocop-ast (1.
|
|
175
|
+
rubocop-ast (1.50.0)
|
|
176
176
|
parser (>= 3.3.7.2)
|
|
177
177
|
prism (~> 1.7)
|
|
178
178
|
rubocop-rspec (3.10.2)
|
data/dor-services-client.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.required_ruby_version = '>= 3.0', '< 5'
|
|
26
26
|
|
|
27
27
|
spec.add_dependency 'activesupport', '>= 7.0.0'
|
|
28
|
-
spec.add_dependency 'cocina-models', '~> 0.
|
|
28
|
+
spec.add_dependency 'cocina-models', '~> 0.126.0'
|
|
29
29
|
spec.add_dependency 'deprecation', '>= 0'
|
|
30
30
|
spec.add_dependency 'faraday', '~> 2.0'
|
|
31
31
|
spec.add_dependency 'faraday-retry'
|
|
@@ -91,9 +91,6 @@ module Dor
|
|
|
91
91
|
resp.headers['ETag']
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
-
BASE_ALLOWED_FIELDS = %i[external_identifier cocina_version label version administrative description].freeze
|
|
95
|
-
DRO_ALLOWED_FIELDS = BASE_ALLOWED_FIELDS + %i[content_type access identification structural geographic]
|
|
96
|
-
|
|
97
94
|
# rubocop:disable Metrics/MethodLength
|
|
98
95
|
# rubocop:disable Metrics/AbcSize
|
|
99
96
|
# rubocop:disable Metrics/CyclomaticComplexity
|
|
@@ -32,16 +32,19 @@ module Dor
|
|
|
32
32
|
# @param [String] lifecycle Bookeeping label for this particular workflow step. Examples are: 'registered', 'shelved'
|
|
33
33
|
# @param [String] note Any kind of string annotation that you want to attach to the workflow
|
|
34
34
|
# @param [String] current_status Setting this string tells the workflow service to compare the current status to this value.
|
|
35
|
+
# @param [String,Integer] version The object version this workflow step belongs to. If not provided, the step for the latest version is updated.
|
|
35
36
|
# @raise [Dor::Services::Client::ConflictResponse] if the current status does not match the value passed in current_status.
|
|
36
|
-
def update(status:, elapsed: 0, lifecycle: nil, note: nil, current_status: nil)
|
|
37
|
-
perform_update(status: status, elapsed: elapsed, lifecycle: lifecycle, note: note, current_status: current_status
|
|
37
|
+
def update(status:, elapsed: 0, lifecycle: nil, note: nil, current_status: nil, version: nil) # rubocop:disable Metrics/ParameterLists
|
|
38
|
+
perform_update(status: status, elapsed: elapsed, lifecycle: lifecycle, note: note, current_status: current_status,
|
|
39
|
+
version: version)
|
|
38
40
|
end
|
|
39
41
|
|
|
40
42
|
# Updates the status of one step in a workflow to error.
|
|
41
43
|
# @param [String] error_msg The error message. Ideally, this is a brief message describing the error
|
|
42
44
|
# @param [String] error_text A slot to hold more information about the error, like a full stacktrace
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
# @param [String,Integer] version The object version this workflow step belongs to. If not provided, the step for the latest version is updated.
|
|
46
|
+
def update_error(error_msg:, error_text: nil, version: nil)
|
|
47
|
+
perform_update(status: 'error', error_msg: error_msg, error_text: error_text, version: version)
|
|
45
48
|
end
|
|
46
49
|
|
|
47
50
|
attr_reader :object_identifier, :workflow_name, :process, :object_workflow_client
|
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.
|
|
4
|
+
version: 15.60.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 0.126.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.
|
|
40
|
+
version: 0.126.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: deprecation
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
307
307
|
- !ruby/object:Gem::Version
|
|
308
308
|
version: '0'
|
|
309
309
|
requirements: []
|
|
310
|
-
rubygems_version:
|
|
310
|
+
rubygems_version: 3.6.9
|
|
311
311
|
specification_version: 4
|
|
312
312
|
summary: A client for dor-services-app
|
|
313
313
|
test_files: []
|