dor-services-client 15.51.0 → 15.60.1

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: 8cc0f1f9d037eb417c2b36783296d346a0f8af543e5b31f16c487f51cef70152
4
+ data.tar.gz: 2da6ff2294dd840b19e4f6e15b9a8eec18a889a84f59e7302e6fdf034b43fae1
5
5
  SHA512:
6
- metadata.gz: 4055e557126c00271bc4f2c8fdd087afad310e873478b7a8a7f1d839f5b15354a1c6f20464c3efae9ec82ac84374a7e868b9fef7c0f2ee79e82658b2b2378054
7
- data.tar.gz: 1bb6676ecff527ec930710edd76c668a90cdd9319b2961ba91f3bda570f217e035118eb01bf59f843efa018b0e2aa837fe6f79f7a6d10394a63b4cd38741cb35
6
+ metadata.gz: aa26b33a6434c0f79651351fb501b930e256486066429555e0860b8f642678fb9932afe4e2f1b24b77b2e823f9ebfb5e288bc89448c2d0e4d2dbfcad924bd022
7
+ data.tar.gz: ff7833dc2d0b50b54578b5faeceee59722d45d18e498e0c0d8efce1eb243bec1daec10a87c1de20d911ed8f2ea07b712bb09b41f623743175301a19a0201c6a9
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.1)
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
@@ -204,7 +201,7 @@ module Dor
204
201
  "#{api_version}/objects/#{object_identifier}"
205
202
  end
206
203
 
207
- DEFAULT_FIELDS = %i[externalIdentifier type version label cocinaVersion].freeze
204
+ DEFAULT_FIELDS = %i[externalIdentifier type version cocinaVersion].freeze
208
205
 
209
206
  def query(fields)
210
207
  all_fields = DEFAULT_FIELDS + fields
@@ -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.1'
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -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: 3.6.9
310
+ rubygems_version: 4.0.6
311
311
  specification_version: 4
312
312
  summary: A client for dor-services-app
313
313
  test_files: []