dor-services-client 15.51.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26bf7f13fda77d071670ae01a8cac474d9f4b9c60baf49647b0c5be7d2174789
4
- data.tar.gz: a3d1284a580dc0873182579c2bb7c1517d019f69d9b022b3e4ed8b372eb0e8be
3
+ metadata.gz: 891c02c9b1ca11a6e49e6b9156c0d596b0922f37b9bac5f4a5740be547d485b2
4
+ data.tar.gz: 319ca15228feb429aee11c9cfaede313fb8ed0456e78be507bda40a5ad7ffa09
5
5
  SHA512:
6
- metadata.gz: 4055e557126c00271bc4f2c8fdd087afad310e873478b7a8a7f1d839f5b15354a1c6f20464c3efae9ec82ac84374a7e868b9fef7c0f2ee79e82658b2b2378054
7
- data.tar.gz: 1bb6676ecff527ec930710edd76c668a90cdd9319b2961ba91f3bda570f217e035118eb01bf59f843efa018b0e2aa837fe6f79f7a6d10394a63b4cd38741cb35
6
+ metadata.gz: d51cb8c245d236252794b9d00e962e7ef190986335f140b2c95e26102b6c067f8f76680fcd3b287b365fe29475306b23c1f091e99338d03fcebc137781a33df0
7
+ data.tar.gz: 016c4977a15d1e1ee29122c9b9049a9c52d2fc3a7ba2f076b8323332de7f85ee6a1cc59d88639c68ab92f39d5f1ef6d766d7562f31abe29c5837c0fac48ac530
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-services-client (15.51.0)
4
+ dor-services-client (15.60.0)
5
5
  activesupport (>= 7.0.0)
6
6
  cocina-models (~> 0.126.0)
7
7
  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.6-arm64-darwin)
115
+ jsonschema_rs (0.46.10-arm64-darwin)
116
116
  bigdecimal (>= 3.1, < 5)
117
- jsonschema_rs (0.46.6-x86_64-darwin)
117
+ jsonschema_rs (0.46.10-x86_64-darwin)
118
118
  bigdecimal (>= 3.1, < 5)
119
- jsonschema_rs (0.46.6-x86_64-linux)
119
+ jsonschema_rs (0.46.10-x86_64-linux)
120
120
  bigdecimal (>= 3.1, < 5)
121
- language_server-protocol (3.17.0.5)
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.0)
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.49.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)
@@ -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
- def update_error(error_msg:, error_text: nil)
44
- perform_update(status: 'error', error_msg: error_msg, error_text: error_text)
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
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '15.51.0'
6
+ VERSION = '15.60.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: 15.51.0
4
+ version: 15.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne