sdr-client 2.27.2 → 2.28.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.yml +39 -0
- data/Gemfile.lock +58 -43
- data/lib/sdr_client/redesigned_client/job_status.rb +1 -1
- data/lib/sdr_client/redesigned_client/request_builder.rb +2 -2
- data/lib/sdr_client/redesigned_client/structural_grouper.rb +4 -4
- data/lib/sdr_client/version.rb +1 -1
- data/sdr-client.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d1f3b3e1169503cfe133bac57db17bb53265942b4178ec6ef9db01a112a2b1e
|
|
4
|
+
data.tar.gz: 8309768c102206aa38266edc6474fb7590c2d60d811fd57df34bd2e37499a129
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d9b5b80b7dc3d4e529e52430284abf8f4e84d9667b7ce0febe8cf3795428236a029e1bc58fd8347e535db432587187624ce16d131dda46a92cd80502e8ec351
|
|
7
|
+
data.tar.gz: 24f49cc32ee35f84976eb240afb28df53931e3d1ca9d90aed2a76356af3314567c05c6e09f1c5d891a6e8b4b70ca46ffc304fa378048901c4851bce5f416d364
|
data/.rubocop.yml
CHANGED
|
@@ -340,3 +340,42 @@ Style/SuperArguments: # new in 1.64
|
|
|
340
340
|
Enabled: true
|
|
341
341
|
Style/SuperWithArgsParentheses: # new in 1.58
|
|
342
342
|
Enabled: true
|
|
343
|
+
|
|
344
|
+
Gemspec/AttributeAssignment: # new in 1.77
|
|
345
|
+
Enabled: true
|
|
346
|
+
Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
|
|
347
|
+
Enabled: true
|
|
348
|
+
Lint/UselessDefaultValueArgument: # new in 1.76
|
|
349
|
+
Enabled: true
|
|
350
|
+
Lint/UselessOr: # new in 1.76
|
|
351
|
+
Enabled: true
|
|
352
|
+
Naming/PredicateMethod: # new in 1.76
|
|
353
|
+
Enabled: true
|
|
354
|
+
Style/ArrayIntersectWithSingleElement: # new in 1.81
|
|
355
|
+
Enabled: true
|
|
356
|
+
Style/CollectionQuerying: # new in 1.77
|
|
357
|
+
Enabled: true
|
|
358
|
+
Style/ComparableBetween: # new in 1.74
|
|
359
|
+
Enabled: true
|
|
360
|
+
Style/EmptyClassDefinition: # new in 1.83
|
|
361
|
+
Enabled: true
|
|
362
|
+
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
363
|
+
Enabled: true
|
|
364
|
+
Style/HashFetchChain: # new in 1.75
|
|
365
|
+
Enabled: true
|
|
366
|
+
Style/ItBlockParameter: # new in 1.75
|
|
367
|
+
Enabled: true
|
|
368
|
+
Style/ModuleMemberExistenceCheck: # new in 1.82
|
|
369
|
+
Enabled: true
|
|
370
|
+
Style/NegativeArrayIndex: # new in 1.83
|
|
371
|
+
Enabled: true
|
|
372
|
+
Style/RedundantArrayFlatten: # new in 1.76
|
|
373
|
+
Enabled: true
|
|
374
|
+
Style/ReverseFind: # new in 1.83
|
|
375
|
+
Enabled: true
|
|
376
|
+
RSpec/IncludeExamples: # new in 3.6
|
|
377
|
+
Enabled: true
|
|
378
|
+
RSpec/LeakyLocalVariable: # new in 3.8
|
|
379
|
+
Enabled: true
|
|
380
|
+
RSpec/Output: # new in 3.9
|
|
381
|
+
Enabled: true
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sdr-client (2.
|
|
4
|
+
sdr-client (2.28.0)
|
|
5
5
|
activesupport
|
|
6
|
-
cocina-models (~> 0.
|
|
6
|
+
cocina-models (~> 0.110.0)
|
|
7
7
|
config
|
|
8
8
|
dry-monads
|
|
9
9
|
faraday (>= 0.16)
|
|
@@ -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,16 +26,17 @@ 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 (
|
|
34
|
+
bigdecimal (4.0.1)
|
|
35
|
+
byebug (13.0.0)
|
|
36
|
+
reline (>= 0.6.0)
|
|
36
37
|
childprocess (5.1.0)
|
|
37
38
|
logger (~> 1.5)
|
|
38
|
-
cocina-models (0.
|
|
39
|
+
cocina-models (0.110.0)
|
|
39
40
|
activesupport
|
|
40
41
|
deprecation
|
|
41
42
|
dry-struct (~> 1.0)
|
|
@@ -43,17 +44,18 @@ GEM
|
|
|
43
44
|
edtf
|
|
44
45
|
equivalent-xml
|
|
45
46
|
i18n
|
|
47
|
+
json_schemer (~> 2.0)
|
|
46
48
|
jsonpath
|
|
49
|
+
marc (~> 1.3)
|
|
47
50
|
nokogiri
|
|
48
|
-
openapi_parser (~> 1.0)
|
|
49
51
|
super_diff
|
|
50
52
|
thor
|
|
51
53
|
zeitwerk (~> 2.1)
|
|
52
|
-
concurrent-ruby (1.3.
|
|
54
|
+
concurrent-ruby (1.3.6)
|
|
53
55
|
config (5.6.1)
|
|
54
56
|
deep_merge (~> 1.2, >= 1.2.1)
|
|
55
57
|
ostruct
|
|
56
|
-
connection_pool (
|
|
58
|
+
connection_pool (3.0.2)
|
|
57
59
|
crack (1.0.1)
|
|
58
60
|
bigdecimal
|
|
59
61
|
rexml
|
|
@@ -63,11 +65,11 @@ GEM
|
|
|
63
65
|
diff-lcs (1.6.2)
|
|
64
66
|
docile (1.4.1)
|
|
65
67
|
drb (2.2.3)
|
|
66
|
-
dry-core (1.
|
|
68
|
+
dry-core (1.2.0)
|
|
67
69
|
concurrent-ruby (~> 1.0)
|
|
68
70
|
logger
|
|
69
71
|
zeitwerk (~> 2.6)
|
|
70
|
-
dry-inflector (1.
|
|
72
|
+
dry-inflector (1.3.1)
|
|
71
73
|
dry-logic (1.6.0)
|
|
72
74
|
bigdecimal
|
|
73
75
|
concurrent-ruby (~> 1.0)
|
|
@@ -82,8 +84,8 @@ GEM
|
|
|
82
84
|
dry-types (~> 1.8, >= 1.8.2)
|
|
83
85
|
ice_nine (~> 0.11)
|
|
84
86
|
zeitwerk (~> 2.6)
|
|
85
|
-
dry-types (1.
|
|
86
|
-
bigdecimal (
|
|
87
|
+
dry-types (1.9.1)
|
|
88
|
+
bigdecimal (>= 3.0)
|
|
87
89
|
concurrent-ruby (~> 1.0)
|
|
88
90
|
dry-core (~> 1.0)
|
|
89
91
|
dry-inflector (~> 1.0)
|
|
@@ -93,17 +95,24 @@ GEM
|
|
|
93
95
|
activesupport (>= 3.0, < 9.0)
|
|
94
96
|
equivalent-xml (0.6.0)
|
|
95
97
|
nokogiri (>= 1.4.3)
|
|
96
|
-
faraday (2.14.
|
|
98
|
+
faraday (2.14.1)
|
|
97
99
|
faraday-net_http (>= 2.0, < 3.5)
|
|
98
100
|
json
|
|
99
101
|
logger
|
|
100
|
-
faraday-net_http (3.4.
|
|
101
|
-
net-http (
|
|
102
|
+
faraday-net_http (3.4.2)
|
|
103
|
+
net-http (~> 0.5)
|
|
104
|
+
hana (1.3.7)
|
|
102
105
|
hashdiff (1.2.1)
|
|
103
|
-
i18n (1.14.
|
|
106
|
+
i18n (1.14.8)
|
|
104
107
|
concurrent-ruby (~> 1.0)
|
|
105
108
|
ice_nine (0.11.2)
|
|
106
|
-
|
|
109
|
+
io-console (0.8.2)
|
|
110
|
+
json (2.18.1)
|
|
111
|
+
json_schemer (2.5.0)
|
|
112
|
+
bigdecimal
|
|
113
|
+
hana (~> 1.3)
|
|
114
|
+
regexp_parser (~> 2.0)
|
|
115
|
+
simpleidn (~> 0.2)
|
|
107
116
|
jsonpath (1.1.5)
|
|
108
117
|
multi_json
|
|
109
118
|
language_server-protocol (3.17.0.5)
|
|
@@ -113,31 +122,36 @@ GEM
|
|
|
113
122
|
logger (~> 1.6)
|
|
114
123
|
lint_roller (1.1.0)
|
|
115
124
|
logger (1.7.0)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
125
|
+
marc (1.4.0)
|
|
126
|
+
nokogiri (~> 1.0)
|
|
127
|
+
rexml
|
|
128
|
+
minitest (6.0.1)
|
|
129
|
+
prism (~> 1.5)
|
|
130
|
+
multi_json (1.19.1)
|
|
131
|
+
net-http (0.9.1)
|
|
132
|
+
uri (>= 0.11.1)
|
|
133
|
+
nokogiri (1.19.0-arm64-darwin)
|
|
121
134
|
racc (~> 1.4)
|
|
122
|
-
nokogiri (1.
|
|
135
|
+
nokogiri (1.19.0-x86_64-darwin)
|
|
123
136
|
racc (~> 1.4)
|
|
124
|
-
nokogiri (1.
|
|
137
|
+
nokogiri (1.19.0-x86_64-linux-gnu)
|
|
125
138
|
racc (~> 1.4)
|
|
126
|
-
openapi_parser (1.0.0)
|
|
127
139
|
optimist (3.2.1)
|
|
128
140
|
ostruct (0.6.3)
|
|
129
141
|
parallel (1.27.0)
|
|
130
|
-
parser (3.3.10.
|
|
142
|
+
parser (3.3.10.1)
|
|
131
143
|
ast (~> 2.4.1)
|
|
132
144
|
racc
|
|
133
145
|
patience_diff (1.2.0)
|
|
134
146
|
optimist (~> 3.0)
|
|
135
|
-
prism (1.
|
|
136
|
-
public_suffix (
|
|
147
|
+
prism (1.9.0)
|
|
148
|
+
public_suffix (7.0.2)
|
|
137
149
|
racc (1.8.1)
|
|
138
150
|
rainbow (3.1.1)
|
|
139
151
|
rake (13.3.1)
|
|
140
152
|
regexp_parser (2.11.3)
|
|
153
|
+
reline (0.6.3)
|
|
154
|
+
io-console (~> 0.5)
|
|
141
155
|
rexml (3.4.4)
|
|
142
156
|
rspec (3.13.2)
|
|
143
157
|
rspec-core (~> 3.13.0)
|
|
@@ -151,10 +165,10 @@ GEM
|
|
|
151
165
|
rspec-mocks (3.13.7)
|
|
152
166
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
153
167
|
rspec-support (~> 3.13.0)
|
|
154
|
-
rspec-support (3.13.
|
|
168
|
+
rspec-support (3.13.7)
|
|
155
169
|
rspec_junit_formatter (0.6.0)
|
|
156
170
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
157
|
-
rubocop (1.
|
|
171
|
+
rubocop (1.84.1)
|
|
158
172
|
json (~> 2.3)
|
|
159
173
|
language_server-protocol (~> 3.17.0.2)
|
|
160
174
|
lint_roller (~> 1.1.0)
|
|
@@ -162,18 +176,18 @@ GEM
|
|
|
162
176
|
parser (>= 3.3.0.2)
|
|
163
177
|
rainbow (>= 2.2.2, < 4.0)
|
|
164
178
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
165
|
-
rubocop-ast (>= 1.
|
|
179
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
166
180
|
ruby-progressbar (~> 1.7)
|
|
167
181
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
168
|
-
rubocop-ast (1.
|
|
182
|
+
rubocop-ast (1.49.0)
|
|
169
183
|
parser (>= 3.3.7.2)
|
|
170
|
-
prism (~> 1.
|
|
184
|
+
prism (~> 1.7)
|
|
171
185
|
rubocop-rake (0.7.1)
|
|
172
186
|
lint_roller (~> 1.1)
|
|
173
187
|
rubocop (>= 1.72.1)
|
|
174
|
-
rubocop-rspec (3.
|
|
188
|
+
rubocop-rspec (3.9.0)
|
|
175
189
|
lint_roller (~> 1.1)
|
|
176
|
-
rubocop (~> 1.
|
|
190
|
+
rubocop (~> 1.81)
|
|
177
191
|
ruby-progressbar (1.13.0)
|
|
178
192
|
securerandom (0.4.1)
|
|
179
193
|
simplecov (0.22.0)
|
|
@@ -182,22 +196,23 @@ GEM
|
|
|
182
196
|
simplecov_json_formatter (~> 0.1)
|
|
183
197
|
simplecov-html (0.13.2)
|
|
184
198
|
simplecov_json_formatter (0.1.4)
|
|
185
|
-
|
|
199
|
+
simpleidn (0.2.3)
|
|
200
|
+
super_diff (0.18.0)
|
|
186
201
|
attr_extras (>= 6.2.4)
|
|
187
202
|
diff-lcs
|
|
188
203
|
patience_diff
|
|
189
|
-
thor (1.
|
|
204
|
+
thor (1.5.0)
|
|
190
205
|
tzinfo (2.0.6)
|
|
191
206
|
concurrent-ruby (~> 1.0)
|
|
192
207
|
unicode-display_width (3.2.0)
|
|
193
208
|
unicode-emoji (~> 4.1)
|
|
194
|
-
unicode-emoji (4.
|
|
195
|
-
uri (1.1.
|
|
209
|
+
unicode-emoji (4.2.0)
|
|
210
|
+
uri (1.1.1)
|
|
196
211
|
webmock (3.26.1)
|
|
197
212
|
addressable (>= 2.8.0)
|
|
198
213
|
crack (>= 0.3.2)
|
|
199
214
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
200
|
-
zeitwerk (2.7.
|
|
215
|
+
zeitwerk (2.7.4)
|
|
201
216
|
|
|
202
217
|
PLATFORMS
|
|
203
218
|
arm64-darwin-23
|
|
@@ -37,7 +37,7 @@ module SdrClient
|
|
|
37
37
|
# @param [Integer] timeout_in_secs (180) timeout after this many secs
|
|
38
38
|
# @param [Float] backoff_factor (2.0) how quickly to backoff. This should be > 1.0 and probably ought to be <= 2.0
|
|
39
39
|
# @return [Boolean] true if successful false if unsuccessful.
|
|
40
|
-
def wait_until_complete(secs_between_requests: 3.0, # rubocop:disable Metrics/MethodLength
|
|
40
|
+
def wait_until_complete(secs_between_requests: 3.0, # rubocop:disable Metrics/MethodLength, Naming/PredicateMethod
|
|
41
41
|
timeout_in_secs: 180,
|
|
42
42
|
backoff_factor: 2.0,
|
|
43
43
|
max_secs_between_requests: 60)
|
|
@@ -53,8 +53,8 @@ module SdrClient
|
|
|
53
53
|
.fetch(filename, {})
|
|
54
54
|
.with_indifferent_access
|
|
55
55
|
.tap do |metadata|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
metadata[:view] = view unless metadata.key?(:view)
|
|
57
|
+
metadata[:download] = download unless metadata.key?(:download)
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
@@ -45,10 +45,10 @@ module SdrClient
|
|
|
45
45
|
.run(uploads: uploads)
|
|
46
46
|
.map
|
|
47
47
|
.with_index(1) do |upload_group, i|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
SdrClient::RedesignedClient::FileSet.new(uploads: upload_group,
|
|
49
|
+
uploads_metadata: metadata_group(upload_group),
|
|
50
|
+
label: label(i),
|
|
51
|
+
type_strategy: file_set_strategy)
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
data/lib/sdr_client/version.rb
CHANGED
data/sdr-client.gemspec
CHANGED
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.require_paths = ['lib']
|
|
29
29
|
|
|
30
30
|
spec.add_dependency 'activesupport'
|
|
31
|
-
spec.add_dependency 'cocina-models', '~> 0.
|
|
31
|
+
spec.add_dependency 'cocina-models', '~> 0.110.0'
|
|
32
32
|
spec.add_dependency 'config'
|
|
33
33
|
spec.add_dependency 'dry-monads'
|
|
34
34
|
spec.add_dependency 'faraday', '>= 0.16'
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sdr-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.28.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-02-11 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: activesupport
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.
|
|
32
|
+
version: 0.110.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.
|
|
39
|
+
version: 0.110.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: config
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|