dor-services-client 15.17.0 → 15.19.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: '08d442e83ffd620ca6ce507912bfad7ece5ce2e303c05dbfa09753828b348f17'
4
- data.tar.gz: 7da84b625648e7dfaef778ece349cea18d5e25b5ebd49163e33aa223920d81ba
3
+ metadata.gz: 88d6f936117de488ef45de6d9ddef62c028738be16590a0f20582983467947f9
4
+ data.tar.gz: e4dc44e393e678e752e88eb8e3d62b3ebca60ca18653c7d42482c5ad02c90e9a
5
5
  SHA512:
6
- metadata.gz: 957c36d544c0708e407885b10f5eb2d5c82dff88a4635800d90ad1d3371563d6b63147f2674c9678d2d6049d3289046632c631d337eab04e3b6e427e4b381f53
7
- data.tar.gz: ba46d21dda5de8a2a614c014fc26ad7287e6de283c5285ffbec4661090c529c3df9cb4333ba22e7ae5188b9360b2d68f5255f1d50524ce9e62019bab5a6800b1
6
+ metadata.gz: ffd0bb4a713b05adf80b07b0a8b984cf8e754bf8111524d9cc1ee7bd60b62879d0d9ab835b0e0debbc4a3078cb388aecfe68bc87b1e29372bb441c81cf0f0d00
7
+ data.tar.gz: ec1d08c70b186eb960df664792e77354e9377f42545fd95cd4a0a7ad0e55ea46ffe52d9754642b224999905b64aaf17e31ce53f036c342e076343b2403110166
data/.rubocop_todo.yml CHANGED
@@ -1,14 +1,14 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config --auto-gen-only-exclude`
3
- # on 2025-03-10 18:20:28 UTC using RuboCop version 1.73.2.
3
+ # on 2025-07-14 17:04:55 UTC using RuboCop version 1.78.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 56
9
+ # Offense count: 66
10
10
  # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
11
+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
12
12
  # URISchemes: http, https
13
13
  Layout/LineLength:
14
14
  Max: 174
@@ -18,13 +18,23 @@ Lint/UselessConstantScoping:
18
18
  Exclude:
19
19
  - 'lib/dor/services/client/object.rb'
20
20
 
21
+ # Offense count: 5
22
+ # Configuration parameters: EnforcedStyle, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns.
23
+ # SupportedStyles: snake_case, camelCase
24
+ # ForbiddenIdentifiers: __id__, __send__
25
+ Naming/MethodName:
26
+ Exclude:
27
+ - 'lib/dor/services/client/members.rb'
28
+ - 'lib/dor/services/client/object_version.rb'
29
+ - 'lib/dor/services/client/user_version.rb'
30
+
21
31
  # Offense count: 3
22
32
  RSpec/AnyInstance:
23
33
  Exclude:
24
34
  - 'spec/dor/services/client/async_result_spec.rb'
25
35
  - 'spec/dor/services/client/object_version_spec.rb'
26
36
 
27
- # Offense count: 5
37
+ # Offense count: 6
28
38
  RSpec/IdenticalEqualityAssertion:
29
39
  Exclude:
30
40
  - 'spec/dor/services/client_spec.rb'
@@ -52,14 +62,14 @@ Style/Documentation:
52
62
  - 'test/**/*'
53
63
  - 'lib/dor/services/client.rb'
54
64
 
55
- # Offense count: 2
65
+ # Offense count: 3
56
66
  # This cop supports safe autocorrection (--autocorrect).
57
67
  Style/IfUnlessModifier:
58
68
  Exclude:
59
69
  - 'lib/dor/services/client.rb'
60
70
  - 'lib/dor/services/client/object.rb'
61
71
 
62
- # Offense count: 1
72
+ # Offense count: 2
63
73
  # This cop supports safe autocorrection (--autocorrect).
64
74
  Style/KeywordArgumentsMerging:
65
75
  Exclude:
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-services-client (15.17.0)
4
+ dor-services-client (15.19.0)
5
5
  activesupport (>= 7.0.0)
6
- cocina-models (~> 0.104.1)
6
+ cocina-models (~> 0.105.0)
7
7
  deprecation
8
8
  faraday (~> 2.0)
9
9
  faraday-retry
@@ -34,7 +34,7 @@ GEM
34
34
  benchmark (0.4.1)
35
35
  bigdecimal (3.2.2)
36
36
  byebug (12.0.0)
37
- cocina-models (0.104.1)
37
+ cocina-models (0.105.0)
38
38
  activesupport
39
39
  deprecation
40
40
  dry-struct (~> 1.0)
@@ -103,7 +103,7 @@ GEM
103
103
  lint_roller (1.1.0)
104
104
  logger (1.7.0)
105
105
  minitest (5.25.5)
106
- multi_json (1.15.0)
106
+ multi_json (1.16.0)
107
107
  net-http (0.6.0)
108
108
  uri
109
109
  nokogiri (1.18.8-arm64-darwin)
@@ -140,7 +140,7 @@ GEM
140
140
  diff-lcs (>= 1.2.0, < 2.0)
141
141
  rspec-support (~> 3.13.0)
142
142
  rspec-support (3.13.4)
143
- rubocop (1.77.0)
143
+ rubocop (1.78.0)
144
144
  json (~> 2.3)
145
145
  language_server-protocol (~> 3.17.0.2)
146
146
  lint_roller (~> 1.1.0)
data/README.md CHANGED
@@ -160,6 +160,12 @@ object_client.workflow('accessionWF').find
160
160
  object_client.workflow('etdSubmitWF').create(version: 2)
161
161
  # Skip all workflow steps
162
162
  object_client.workflow('accessionWF').skip_all(note: 'Cleaning up')
163
+ # Check if workflow is active for a given version
164
+ object_client.workflow(workflow_name).find.active_for?(version: 1)
165
+ # Check if workflow is complete for a given version
166
+ object_client.workflow(workflow_name).find.complete_for?(version: 1)
167
+ # Check if workflow is complete for an object
168
+ object_client.workflow(workflow_name).find.complete?
163
169
 
164
170
  # Get the status of a workflow process
165
171
  object_client.workflow('accessionWF').process('shelve').status
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = '>= 3.0', '< 4'
26
26
 
27
27
  spec.add_dependency 'activesupport', '>= 7.0.0'
28
- spec.add_dependency 'cocina-models', '~> 0.104.1'
28
+ spec.add_dependency 'cocina-models', '~> 0.105.0'
29
29
  spec.add_dependency 'deprecation', '>= 0'
30
30
  spec.add_dependency 'faraday', '~> 2.0'
31
31
  spec.add_dependency 'faraday-retry'
@@ -30,7 +30,7 @@ module Dor
30
30
 
31
31
  raise_exception_based_on_response!(resp) unless resp.success?
32
32
 
33
- Dor::Services::Response::Workflow.new(xml: Nokogiri::XML(resp.body))
33
+ Dor::Services::Response::Workflow.new(xml: resp.body)
34
34
  end
35
35
 
36
36
  # Creates a workflow for a given object in the repository. If this particular workflow for this objects exists,
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '15.17.0'
6
+ VERSION = '15.19.0'
7
7
  end
8
8
  end
9
9
  end
@@ -5,6 +5,7 @@ module Dor
5
5
  module Response
6
6
  # The response from asking the server about a workflow for an item
7
7
  class Workflow
8
+ # @param [String] xml An XML string representing a given workflow
8
9
  def initialize(xml:)
9
10
  @xml = xml
10
11
  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.17.0
4
+ version: 15.19.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.104.1
33
+ version: 0.105.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.104.1
40
+ version: 0.105.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: deprecation
43
43
  requirement: !ruby/object:Gem::Requirement