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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2816431955b360dedefa2109b774b6a16e0f8347784f8eb91491b519df607187
4
- data.tar.gz: ccb4660f4063f76098cbd39443cceacc5b33e16a086bad6386237bad9adb4792
3
+ metadata.gz: 891c02c9b1ca11a6e49e6b9156c0d596b0922f37b9bac5f4a5740be547d485b2
4
+ data.tar.gz: 319ca15228feb429aee11c9cfaede313fb8ed0456e78be507bda40a5ad7ffa09
5
5
  SHA512:
6
- metadata.gz: 0db2176f922c8cfecd0b770104024e7c403771a35fe6a20ad66ef23396979cefdbd4f4fb0088bcf4f416a0f3b3ee7e926f4598a32f824621067b8ee2a33a2e92
7
- data.tar.gz: e87ca82b9583aeb28ce6c25306a4d3a9d53faa3e95b9665f5ba4c4bf515707ad49d59362c99e190a98ce6f012789260c67c1882b5d9b0552b806684b597bbe12
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.50.0)
4
+ dor-services-client (15.60.0)
5
5
  activesupport (>= 7.0.0)
6
- cocina-models (~> 0.125.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.125.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.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)
@@ -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.125.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
- 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.50.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.50.0
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.125.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.125.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: 4.0.6
310
+ rubygems_version: 3.6.9
311
311
  specification_version: 4
312
312
  summary: A client for dor-services-app
313
313
  test_files: []