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 +4 -4
- data/.rubocop_todo.yml +16 -6
- data/Gemfile.lock +5 -5
- data/README.md +6 -0
- data/dor-services-client.gemspec +1 -1
- data/lib/dor/services/client/object_workflow.rb +1 -1
- data/lib/dor/services/client/version.rb +1 -1
- data/lib/dor/services/response/workflow.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d6f936117de488ef45de6d9ddef62c028738be16590a0f20582983467947f9
|
4
|
+
data.tar.gz: e4dc44e393e678e752e88eb8e3d62b3ebca60ca18653c7d42482c5ad02c90e9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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:
|
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:
|
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:
|
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:
|
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.
|
4
|
+
dor-services-client (15.19.0)
|
5
5
|
activesupport (>= 7.0.0)
|
6
|
-
cocina-models (~> 0.
|
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.
|
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.
|
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.
|
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
|
data/dor-services-client.gemspec
CHANGED
@@ -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.
|
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:
|
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,
|
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.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.
|
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.
|
40
|
+
version: 0.105.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: deprecation
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|