dor-workflow-client 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c58569c11d2c599671ecf4fef09158bdf37191c93c4193d96d2e6be614d9eeaa
|
4
|
+
data.tar.gz: ce8f53542aede57b9386ec769673fac4af7a92d9bb32b2c9a00ba9fe59ae6754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e09e2e40204d869c31ce832509ccf4582d98823cd767348966789a5961bfb2ae3b67b148a35a41f734fb782100bef10619e36a1f44e244a70685d3a1d6613f90
|
7
|
+
data.tar.gz: 2ddd5435a3f7738a48800182c46e1d243bf9bdaf457d367f7f26d0a7868c61005f853850a18aba61c97475c74bf297b08060fc7a51fdadd76161d90b4287cebc
|
data/.rubocop.yml
CHANGED
@@ -10,6 +10,9 @@ Metrics/BlockLength:
|
|
10
10
|
Exclude:
|
11
11
|
- spec/**/*_spec.rb
|
12
12
|
|
13
|
+
Lint/UnusedBlockArgument:
|
14
|
+
AllowUnusedKeywordArguments: true
|
15
|
+
|
13
16
|
Gemspec/DeprecatedAttributeAssignment: # new in 1.10
|
14
17
|
Enabled: true
|
15
18
|
Gemspec/RequireMFA: # new in 1.23
|
@@ -112,3 +115,32 @@ Style/StringChars: # new in 1.12
|
|
112
115
|
Enabled: true
|
113
116
|
Style/SwapValues: # new in 1.1
|
114
117
|
Enabled: true
|
118
|
+
|
119
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
120
|
+
Enabled: true
|
121
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
122
|
+
Enabled: true
|
123
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
124
|
+
Enabled: true
|
125
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
126
|
+
Enabled: true
|
127
|
+
Lint/RefinementImportMethods: # new in 1.27
|
128
|
+
Enabled: true
|
129
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
130
|
+
Enabled: true
|
131
|
+
Security/CompoundHash: # new in 1.28
|
132
|
+
Enabled: true
|
133
|
+
Style/EmptyHeredoc: # new in 1.32
|
134
|
+
Enabled: true
|
135
|
+
Style/EnvHome: # new in 1.29
|
136
|
+
Enabled: true
|
137
|
+
Style/FetchEnvVar: # new in 1.28
|
138
|
+
Enabled: true
|
139
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
140
|
+
Enabled: true
|
141
|
+
Style/NestedFileDirname: # new in 1.26
|
142
|
+
Enabled: true
|
143
|
+
Style/ObjectThen: # new in 1.28
|
144
|
+
Enabled: true
|
145
|
+
Style/RedundantInitialize: # new in 1.27
|
146
|
+
Enabled: true
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dor-workflow-client (5.
|
4
|
+
dor-workflow-client (5.1.0)
|
5
5
|
activesupport (>= 3.2.1, < 8)
|
6
6
|
deprecation (>= 0.99.0)
|
7
7
|
faraday (~> 2.0)
|
8
|
-
faraday-retry (~>
|
8
|
+
faraday-retry (~> 2.0)
|
9
9
|
nokogiri (~> 1.6)
|
10
10
|
zeitwerk (~> 2.1)
|
11
11
|
|
@@ -32,7 +32,8 @@ GEM
|
|
32
32
|
faraday-net_http (~> 2.0)
|
33
33
|
ruby2_keywords (>= 0.0.4)
|
34
34
|
faraday-net_http (2.1.0)
|
35
|
-
faraday-retry (
|
35
|
+
faraday-retry (2.0.0)
|
36
|
+
faraday (~> 2.0)
|
36
37
|
hashdiff (1.0.1)
|
37
38
|
i18n (1.12.0)
|
38
39
|
concurrent-ruby (~> 1.0)
|
@@ -66,7 +67,7 @@ GEM
|
|
66
67
|
rspec-support (3.11.0)
|
67
68
|
rspec_junit_formatter (0.5.1)
|
68
69
|
rspec-core (>= 2, < 4, != 2.12.0)
|
69
|
-
rubocop (1.
|
70
|
+
rubocop (1.33.0)
|
70
71
|
json (~> 2.3)
|
71
72
|
parallel (~> 1.10)
|
72
73
|
parser (>= 3.1.0.0)
|
@@ -93,7 +94,7 @@ GEM
|
|
93
94
|
tzinfo (2.0.5)
|
94
95
|
concurrent-ruby (~> 1.0)
|
95
96
|
unicode-display_width (2.2.0)
|
96
|
-
webmock (3.
|
97
|
+
webmock (3.16.0)
|
97
98
|
addressable (>= 2.8.0)
|
98
99
|
crack (>= 0.3.2)
|
99
100
|
hashdiff (>= 0.4.0, < 2.0.0)
|
data/dor-workflow-client.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_dependency 'activesupport', '>= 3.2.1', '< 8'
|
21
21
|
gem.add_dependency 'deprecation', '>= 0.99.0'
|
22
22
|
gem.add_dependency 'faraday', '~> 2.0'
|
23
|
-
gem.add_dependency 'faraday-retry', '~>
|
23
|
+
gem.add_dependency 'faraday-retry', '~> 2.0'
|
24
24
|
|
25
25
|
gem.add_dependency 'nokogiri', '~> 1.6'
|
26
26
|
gem.add_dependency 'zeitwerk', '~> 2.1'
|
@@ -54,8 +54,8 @@ module Dor
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def retry_block
|
57
|
-
lambda do |env
|
58
|
-
logger.warn "retrying connection (#{
|
57
|
+
lambda do |env:, options:, retry_count:, exception:, will_retry_in:|
|
58
|
+
logger.warn "retrying connection (#{retry_count + 1}) to #{env.url}: (#{exception.class}) " \
|
59
59
|
"#{exception.message} #{env.status}"
|
60
60
|
end
|
61
61
|
end
|
@@ -19,9 +19,9 @@ RSpec.describe Dor::Workflow::Client::ConnectionFactory do
|
|
19
19
|
subject(:request) { client.create_workflow_by_name(druid, 'httpException', version: '1') }
|
20
20
|
it 'logs an error and retry upon a targeted Faraday exception' do
|
21
21
|
expect(mock_logger).to receive(:warn)
|
22
|
-
.with("retrying connection (1
|
22
|
+
.with("retrying connection (1) to #{request_url}: (Faraday::RetriableResponse) 500")
|
23
23
|
expect(mock_logger).to receive(:warn)
|
24
|
-
.with("retrying connection (
|
24
|
+
.with("retrying connection (2) to #{request_url}: (Faraday::RetriableResponse) 500")
|
25
25
|
expect { request }.to raise_error Dor::WorkflowException
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-workflow-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willy Mene
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-08-
|
12
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -65,14 +65,14 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.0'
|
69
69
|
type: :runtime
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: nokogiri
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|