dor-services-client 7.12.0 → 8.0.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: 7181881f292dff5b32f676a18e544d97031a792f570a51a76bef0d04ed90f7ca
|
4
|
+
data.tar.gz: d3ed67debc15962180f582185a901df0f77e5b8f0f74e3dd48c808a8f6aaa0a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fecbbcee7c36c46ed42d883427bfa886e3fd8a130e30642358e82124676d1b25342c3e90a33a40a5201aed91f1ae0b8a31b435fced99aeac93e26e85e93c187
|
7
|
+
data.tar.gz: 2eacf387bd12985b60357903f15480bbf538bb6ffdd5d8b50de6c0690cdc554805cbd6d9e4238497a1d2eb6453d936eaf1f783f4dbfec6abccde119131adb4c1
|
data/dor-services-client.gemspec
CHANGED
@@ -27,7 +27,8 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency 'activesupport', '>= 4.2', '< 8'
|
28
28
|
spec.add_dependency 'cocina-models', '~> 0.66.0' # leave pinned to patch level until cocina-models hits 1.0
|
29
29
|
spec.add_dependency 'deprecation', '>= 0'
|
30
|
-
spec.add_dependency 'faraday', '
|
30
|
+
spec.add_dependency 'faraday', '~> 2.0'
|
31
|
+
spec.add_dependency 'faraday-retry'
|
31
32
|
spec.add_dependency 'zeitwerk', '~> 2.1'
|
32
33
|
|
33
34
|
spec.add_development_dependency 'bundler'
|
@@ -4,7 +4,7 @@ module Dor
|
|
4
4
|
module Services
|
5
5
|
class Client
|
6
6
|
# This wraps any faraday connection errors with dor-services-client errors
|
7
|
-
class ErrorFaradayMiddleware < Faraday::
|
7
|
+
class ErrorFaradayMiddleware < Faraday::Middleware
|
8
8
|
def call(env)
|
9
9
|
@app.call(env)
|
10
10
|
rescue Faraday::ConnectionFailed
|
data/lib/dor/services/client.rb
CHANGED
@@ -7,6 +7,7 @@ require 'active_support/json'
|
|
7
7
|
require 'active_support/core_ext/object/json'
|
8
8
|
require 'cocina/models'
|
9
9
|
require 'faraday'
|
10
|
+
require 'faraday/retry'
|
10
11
|
require 'singleton'
|
11
12
|
require 'zeitwerk'
|
12
13
|
|
@@ -126,8 +127,8 @@ module Dor
|
|
126
127
|
builder.use Faraday::Request::UrlEncoded
|
127
128
|
|
128
129
|
# @note when token & token_header are nil, this line is required else
|
129
|
-
#
|
130
|
-
#
|
130
|
+
# the Faraday instance will be passed an empty block, which
|
131
|
+
# causes the adapter not to be set. Thus, everything breaks.
|
131
132
|
builder.adapter Faraday.default_adapter
|
132
133
|
builder.headers[:user_agent] = user_agent
|
133
134
|
builder.headers[TOKEN_HEADER] = "Bearer #{token}"
|
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:
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -63,22 +63,30 @@ dependencies:
|
|
63
63
|
name: faraday
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0.15'
|
69
|
-
- - "<"
|
66
|
+
- - "~>"
|
70
67
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2'
|
68
|
+
version: '2.0'
|
72
69
|
type: :runtime
|
73
70
|
prerelease: false
|
74
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: faraday-retry
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
75
79
|
requirements:
|
76
80
|
- - ">="
|
77
81
|
- !ruby/object:Gem::Version
|
78
|
-
version: '0
|
79
|
-
|
82
|
+
version: '0'
|
83
|
+
type: :runtime
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
80
88
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
89
|
+
version: '0'
|
82
90
|
- !ruby/object:Gem::Dependency
|
83
91
|
name: zeitwerk
|
84
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -272,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
272
280
|
- !ruby/object:Gem::Version
|
273
281
|
version: '0'
|
274
282
|
requirements: []
|
275
|
-
rubygems_version: 3.
|
283
|
+
rubygems_version: 3.2.32
|
276
284
|
signing_key:
|
277
285
|
specification_version: 4
|
278
286
|
summary: A client for dor-services-app
|