dor-services-client 15.25.1 → 15.25.3
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/Gemfile.lock +49 -44
- data/dor-services-client.gemspec +1 -1
- data/lib/dor/services/client/milestones.rb +4 -7
- data/lib/dor/services/client/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3037c43fe331533757c4d69e7f99f4d26ddc33634e57cc60e358b5d9666542be
|
|
4
|
+
data.tar.gz: 37df56f91d98ce8426dc7fdb40b21876a2737235619c2a61a9e3bca00a8d5662
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03da1c7f160e5668deab72d771bef0a14030efa8b7e38ccdc872663bc27d221fb85e0c52f0fa9072b65915805113256a636fef2abfc8b312cbdeea99410b7c51
|
|
7
|
+
data.tar.gz: 772c3617033dad48764d4504742008095af1b355dabc7ee52fcb135e2e0341ed9739c3a4d41d935620b226c94f0fd9fc7255b86ab5540a370cac68d9648878ce
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
dor-services-client (15.25.
|
|
4
|
+
dor-services-client (15.25.3)
|
|
5
5
|
activesupport (>= 7.0.0)
|
|
6
|
-
cocina-models (~> 0.
|
|
6
|
+
cocina-models (~> 0.109.0)
|
|
7
7
|
deprecation
|
|
8
8
|
faraday (~> 2.0)
|
|
9
9
|
faraday-retry
|
|
@@ -13,7 +13,7 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activesupport (8.1.
|
|
16
|
+
activesupport (8.1.2)
|
|
17
17
|
base64
|
|
18
18
|
bigdecimal
|
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -26,14 +26,15 @@ GEM
|
|
|
26
26
|
securerandom (>= 0.3)
|
|
27
27
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
28
28
|
uri (>= 0.13.1)
|
|
29
|
-
addressable (2.8.
|
|
30
|
-
public_suffix (>= 2.0.2, <
|
|
29
|
+
addressable (2.8.8)
|
|
30
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
31
31
|
ast (2.4.3)
|
|
32
32
|
attr_extras (7.1.0)
|
|
33
33
|
base64 (0.3.0)
|
|
34
|
-
bigdecimal (
|
|
35
|
-
byebug (
|
|
36
|
-
|
|
34
|
+
bigdecimal (4.0.1)
|
|
35
|
+
byebug (13.0.0)
|
|
36
|
+
reline (>= 0.6.0)
|
|
37
|
+
cocina-models (0.109.0)
|
|
37
38
|
activesupport
|
|
38
39
|
deprecation
|
|
39
40
|
dry-struct (~> 1.0)
|
|
@@ -47,8 +48,8 @@ GEM
|
|
|
47
48
|
super_diff
|
|
48
49
|
thor
|
|
49
50
|
zeitwerk (~> 2.1)
|
|
50
|
-
concurrent-ruby (1.3.
|
|
51
|
-
connection_pool (
|
|
51
|
+
concurrent-ruby (1.3.6)
|
|
52
|
+
connection_pool (3.0.2)
|
|
52
53
|
crack (1.0.1)
|
|
53
54
|
bigdecimal
|
|
54
55
|
rexml
|
|
@@ -57,11 +58,11 @@ GEM
|
|
|
57
58
|
diff-lcs (1.6.2)
|
|
58
59
|
docile (1.4.1)
|
|
59
60
|
drb (2.2.3)
|
|
60
|
-
dry-core (1.
|
|
61
|
+
dry-core (1.2.0)
|
|
61
62
|
concurrent-ruby (~> 1.0)
|
|
62
63
|
logger
|
|
63
64
|
zeitwerk (~> 2.6)
|
|
64
|
-
dry-inflector (1.
|
|
65
|
+
dry-inflector (1.3.1)
|
|
65
66
|
dry-logic (1.6.0)
|
|
66
67
|
bigdecimal
|
|
67
68
|
concurrent-ruby (~> 1.0)
|
|
@@ -72,8 +73,8 @@ GEM
|
|
|
72
73
|
dry-types (~> 1.8, >= 1.8.2)
|
|
73
74
|
ice_nine (~> 0.11)
|
|
74
75
|
zeitwerk (~> 2.6)
|
|
75
|
-
dry-types (1.
|
|
76
|
-
bigdecimal (
|
|
76
|
+
dry-types (1.9.0)
|
|
77
|
+
bigdecimal (>= 3.0)
|
|
77
78
|
concurrent-ruby (~> 1.0)
|
|
78
79
|
dry-core (~> 1.0)
|
|
79
80
|
dry-inflector (~> 1.0)
|
|
@@ -87,44 +88,48 @@ GEM
|
|
|
87
88
|
faraday-net_http (>= 2.0, < 3.5)
|
|
88
89
|
json
|
|
89
90
|
logger
|
|
90
|
-
faraday-net_http (3.4.
|
|
91
|
-
net-http (
|
|
92
|
-
faraday-retry (2.
|
|
91
|
+
faraday-net_http (3.4.2)
|
|
92
|
+
net-http (~> 0.5)
|
|
93
|
+
faraday-retry (2.4.0)
|
|
93
94
|
faraday (~> 2.0)
|
|
94
95
|
hashdiff (1.2.1)
|
|
95
|
-
i18n (1.14.
|
|
96
|
+
i18n (1.14.8)
|
|
96
97
|
concurrent-ruby (~> 1.0)
|
|
97
98
|
ice_nine (0.11.2)
|
|
98
|
-
|
|
99
|
+
io-console (0.8.2)
|
|
100
|
+
json (2.18.0)
|
|
99
101
|
jsonpath (1.1.5)
|
|
100
102
|
multi_json
|
|
101
103
|
language_server-protocol (3.17.0.5)
|
|
102
104
|
lint_roller (1.1.0)
|
|
103
105
|
logger (1.7.0)
|
|
104
|
-
minitest (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
minitest (6.0.1)
|
|
107
|
+
prism (~> 1.5)
|
|
108
|
+
multi_json (1.19.1)
|
|
109
|
+
net-http (0.9.1)
|
|
110
|
+
uri (>= 0.11.1)
|
|
111
|
+
nokogiri (1.19.0-arm64-darwin)
|
|
109
112
|
racc (~> 1.4)
|
|
110
|
-
nokogiri (1.
|
|
113
|
+
nokogiri (1.19.0-x86_64-darwin)
|
|
111
114
|
racc (~> 1.4)
|
|
112
|
-
nokogiri (1.
|
|
115
|
+
nokogiri (1.19.0-x86_64-linux-gnu)
|
|
113
116
|
racc (~> 1.4)
|
|
114
117
|
openapi_parser (1.0.0)
|
|
115
118
|
optimist (3.2.1)
|
|
116
119
|
parallel (1.27.0)
|
|
117
|
-
parser (3.3.10.
|
|
120
|
+
parser (3.3.10.1)
|
|
118
121
|
ast (~> 2.4.1)
|
|
119
122
|
racc
|
|
120
123
|
patience_diff (1.2.0)
|
|
121
124
|
optimist (~> 3.0)
|
|
122
|
-
prism (1.
|
|
123
|
-
public_suffix (
|
|
125
|
+
prism (1.8.0)
|
|
126
|
+
public_suffix (7.0.2)
|
|
124
127
|
racc (1.8.1)
|
|
125
128
|
rainbow (3.1.1)
|
|
126
|
-
rake (13.3.
|
|
129
|
+
rake (13.3.1)
|
|
127
130
|
regexp_parser (2.11.3)
|
|
131
|
+
reline (0.6.3)
|
|
132
|
+
io-console (~> 0.5)
|
|
128
133
|
rexml (3.4.4)
|
|
129
134
|
rspec (3.13.2)
|
|
130
135
|
rspec-core (~> 3.13.0)
|
|
@@ -135,11 +140,11 @@ GEM
|
|
|
135
140
|
rspec-expectations (3.13.5)
|
|
136
141
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
137
142
|
rspec-support (~> 3.13.0)
|
|
138
|
-
rspec-mocks (3.13.
|
|
143
|
+
rspec-mocks (3.13.7)
|
|
139
144
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
140
145
|
rspec-support (~> 3.13.0)
|
|
141
146
|
rspec-support (3.13.6)
|
|
142
|
-
rubocop (1.
|
|
147
|
+
rubocop (1.82.1)
|
|
143
148
|
json (~> 2.3)
|
|
144
149
|
language_server-protocol (~> 3.17.0.2)
|
|
145
150
|
lint_roller (~> 1.1.0)
|
|
@@ -147,15 +152,15 @@ GEM
|
|
|
147
152
|
parser (>= 3.3.0.2)
|
|
148
153
|
rainbow (>= 2.2.2, < 4.0)
|
|
149
154
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
150
|
-
rubocop-ast (>= 1.
|
|
155
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
151
156
|
ruby-progressbar (~> 1.7)
|
|
152
157
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
153
|
-
rubocop-ast (1.
|
|
158
|
+
rubocop-ast (1.49.0)
|
|
154
159
|
parser (>= 3.3.7.2)
|
|
155
|
-
prism (~> 1.
|
|
156
|
-
rubocop-rspec (3.
|
|
160
|
+
prism (~> 1.7)
|
|
161
|
+
rubocop-rspec (3.9.0)
|
|
157
162
|
lint_roller (~> 1.1)
|
|
158
|
-
rubocop (~> 1.
|
|
163
|
+
rubocop (~> 1.81)
|
|
159
164
|
ruby-progressbar (1.13.0)
|
|
160
165
|
securerandom (0.4.1)
|
|
161
166
|
simplecov (0.22.0)
|
|
@@ -164,22 +169,22 @@ GEM
|
|
|
164
169
|
simplecov_json_formatter (~> 0.1)
|
|
165
170
|
simplecov-html (0.13.2)
|
|
166
171
|
simplecov_json_formatter (0.1.4)
|
|
167
|
-
super_diff (0.
|
|
172
|
+
super_diff (0.18.0)
|
|
168
173
|
attr_extras (>= 6.2.4)
|
|
169
174
|
diff-lcs
|
|
170
175
|
patience_diff
|
|
171
|
-
thor (1.
|
|
176
|
+
thor (1.5.0)
|
|
172
177
|
tzinfo (2.0.6)
|
|
173
178
|
concurrent-ruby (~> 1.0)
|
|
174
179
|
unicode-display_width (3.2.0)
|
|
175
180
|
unicode-emoji (~> 4.1)
|
|
176
|
-
unicode-emoji (4.
|
|
177
|
-
uri (1.
|
|
178
|
-
webmock (3.26.
|
|
181
|
+
unicode-emoji (4.2.0)
|
|
182
|
+
uri (1.1.1)
|
|
183
|
+
webmock (3.26.1)
|
|
179
184
|
addressable (>= 2.8.0)
|
|
180
185
|
crack (>= 0.3.2)
|
|
181
186
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
182
|
-
zeitwerk (2.7.
|
|
187
|
+
zeitwerk (2.7.4)
|
|
183
188
|
|
|
184
189
|
PLATFORMS
|
|
185
190
|
arm64-darwin-23
|
|
@@ -202,4 +207,4 @@ DEPENDENCIES
|
|
|
202
207
|
webmock
|
|
203
208
|
|
|
204
209
|
BUNDLED WITH
|
|
205
|
-
|
|
210
|
+
4.0.4
|
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.109.0'
|
|
29
29
|
spec.add_dependency 'deprecation', '>= 0'
|
|
30
30
|
spec.add_dependency 'faraday', '~> 2.0'
|
|
31
31
|
spec.add_dependency 'faraday-retry'
|
|
@@ -16,15 +16,14 @@ module Dor
|
|
|
16
16
|
# @param [String] druid object id
|
|
17
17
|
# @param [String] milestone_name the name of the milestone being queried for
|
|
18
18
|
# @param [Number] version (nil) the version to query for
|
|
19
|
-
# @param [Boolean] active_only (false) if true, return only lifecycle steps for versions that have all processes complete
|
|
20
19
|
# @return [Time] when the milestone was achieved. Returns nil if the milestone does not exist
|
|
21
|
-
def date(milestone_name:, version: nil
|
|
22
|
-
filter_milestone(query_lifecycle(version: version
|
|
20
|
+
def date(milestone_name:, version: nil)
|
|
21
|
+
filter_milestone(query_lifecycle(version: version), milestone_name)
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
# @return [Array<Hash>]
|
|
26
25
|
def list
|
|
27
|
-
doc = query_lifecycle
|
|
26
|
+
doc = query_lifecycle
|
|
28
27
|
doc.xpath('//lifecycle/milestone').collect do |node|
|
|
29
28
|
{ milestone: node.text, at: Time.parse(node['date']), version: node['version'] }
|
|
30
29
|
end
|
|
@@ -42,7 +41,6 @@ module Dor
|
|
|
42
41
|
end
|
|
43
42
|
|
|
44
43
|
# @param [String] druid object id
|
|
45
|
-
# @param [Boolean] active_only (false) if true, return only lifecycle steps for versions that have all processes complete
|
|
46
44
|
# @param [Number] version the version to query for
|
|
47
45
|
# @return [Nokogiri::XML::Document]
|
|
48
46
|
# @example An example lifecycle xml from the workflow service.
|
|
@@ -52,12 +50,11 @@ module Dor
|
|
|
52
50
|
# <milestone date="2010-06-15T16:08:58-0700">released</milestone>
|
|
53
51
|
# </lifecycle>
|
|
54
52
|
#
|
|
55
|
-
def query_lifecycle(
|
|
53
|
+
def query_lifecycle(version: nil)
|
|
56
54
|
resp = connection.get do |req|
|
|
57
55
|
req.url "#{api_version}/objects/#{object_identifier}/lifecycles"
|
|
58
56
|
req.headers['Accept'] = 'application/xml'
|
|
59
57
|
req.params['version'] = version if version
|
|
60
|
-
req.params['active-only'] = 'true' if active_only
|
|
61
58
|
end
|
|
62
59
|
raise_exception_based_on_response!(resp) unless resp.success?
|
|
63
60
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dor-services-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 15.25.
|
|
4
|
+
version: 15.25.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
8
8
|
- Michael Giarlo
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 0.109.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.109.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: deprecation
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
292
292
|
- !ruby/object:Gem::Version
|
|
293
293
|
version: '0'
|
|
294
294
|
requirements: []
|
|
295
|
-
rubygems_version: 3.
|
|
295
|
+
rubygems_version: 3.6.2
|
|
296
296
|
specification_version: 4
|
|
297
297
|
summary: A client for dor-services-app
|
|
298
298
|
test_files: []
|