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: f8259e7beb65f6bb70043b122e130ddd7f421eee38c56f179f9ab7e7a22cff65
4
- data.tar.gz: 57d53cd3564325c8597c62d4d095a20c67ae3f1bff8f01789e0b80878326377d
3
+ metadata.gz: 7181881f292dff5b32f676a18e544d97031a792f570a51a76bef0d04ed90f7ca
4
+ data.tar.gz: d3ed67debc15962180f582185a901df0f77e5b8f0f74e3dd48c808a8f6aaa0a4
5
5
  SHA512:
6
- metadata.gz: dd5a6f5b690198a5c8ce8794ab87a94ddeb44bc26b880dc3895d4bfd38022de024d93480bbb43983011f137f2b03fe21af013d0b864f766925fb92c9ae369052
7
- data.tar.gz: f481f132d39a36be9e01998da7c1b862038ee04f45c51aaea90aabdc553efdd857ef71dec5f32e4d7b52eb55b6e4b7199c38a77c363dfc36b3867250abd6f4a0
6
+ metadata.gz: 5fecbbcee7c36c46ed42d883427bfa886e3fd8a130e30642358e82124676d1b25342c3e90a33a40a5201aed91f1ae0b8a31b435fced99aeac93e26e85e93c187
7
+ data.tar.gz: 2eacf387bd12985b60357903f15480bbf538bb6ffdd5d8b50de6c0690cdc554805cbd6d9e4238497a1d2eb6453d936eaf1f783f4dbfec6abccde119131adb4c1
@@ -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', '>= 0.15', '< 2'
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::Response::Middleware
7
+ class ErrorFaradayMiddleware < Faraday::Middleware
8
8
  def call(env)
9
9
  @app.call(env)
10
10
  rescue Faraday::ConnectionFailed
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '7.12.0'
6
+ VERSION = '8.0.0'
7
7
  end
8
8
  end
9
9
  end
@@ -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
- # the Faraday instance will be passed an empty block, which
130
- # causes the adapter not to be set. Thus, everything breaks.
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: 7.12.0
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-02-25 00:00:00.000000000 Z
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.15'
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: '2'
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.1.4
283
+ rubygems_version: 3.2.32
276
284
  signing_key:
277
285
  specification_version: 4
278
286
  summary: A client for dor-services-app