dor-services-client 7.11.0 → 8.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: 5daa536eed5f0cf1c7ddaeed7c159d8b7b8f55f9e82321cc9aac567f1133caf6
4
- data.tar.gz: dda62da3d92bf55455fc568c458c48c63f4081ba4a12b7d25020f459cfa150ad
3
+ metadata.gz: b9737b9b065c32fc4dee6d70d899609772bdcd2cba1be079344f40cf721bccc1
4
+ data.tar.gz: 9e8bfeeeea0d98b8c6881da2f6aa15cb3a0cb82cf4276c2a1aad7205a8de90e9
5
5
  SHA512:
6
- metadata.gz: 62d5bd30f16a862494570bb511da48a6bbf4f4c9d4cace4485f69e6c0dab71e91c5d404fb21c5e8622eb549392d17c568992b43180189103c42f9c95bc9b5caa
7
- data.tar.gz: 3aaef88355a8a3e04d0a7fe37276b69f534ae1772bb6be365706d25eb440385a415c1367c1eb0e248ea3353c966a1788c96c0efb08e45f03a597ba813e37b2d1
6
+ metadata.gz: 00a641ad4797d8b569a823e21e8b49062a1e89fe260513e0cdcd8a8de66fab60fbae8077cc126e71f6e985bd36eae2ed6219c87c860ecd7876c6aa61195ab661
7
+ data.tar.gz: 6a6de41a10900ef47e892446c9eea0d7237e695d5a4fcaaa243b942fc074216f19a5b1533ae24833a39f47a60a3882253efa4d2615e582ad1ac8d63372ef905d
@@ -1,12 +1,10 @@
1
- ## Why was this change made?
1
+ ## Why was this change made? 🤔
2
2
 
3
3
 
4
4
 
5
- ## How was this change tested?
5
+ ## How was this change tested? 🤨
6
6
 
7
-
8
-
9
- ## Which documentation and/or configurations were updated?
7
+ ⚡ ⚠ If this change has cross service impact, ***run [integration tests](https://github.com/sul-dlss/infrastructure-integration-test)*** and/or test in [stage|qa] environment, in addition to specs. ⚡
10
8
 
11
9
 
12
10
 
data/README.md CHANGED
@@ -67,7 +67,7 @@ objects_client.register(params: {}, assign_doi: true)
67
67
  virtual_objects_client = Dor::Services::Client.virtual_objects
68
68
 
69
69
  # Create a batch of virtual objects
70
- virtual_objects_client.create(virtual_objects: [{ parent_id: '', child_ids: [''] }])
70
+ virtual_objects_client.create(virtual_objects: [{ virtual_object_id: '', constituent_ids: [''] }])
71
71
 
72
72
  # Retrieve background job results
73
73
  background_jobs_client = Dor::Services::Client.background_job_results
@@ -25,9 +25,10 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = '>= 2.7', '< 4' # dor-services-app needs 2.7 due to fedora3
26
26
 
27
27
  spec.add_dependency 'activesupport', '>= 4.2', '< 8'
28
- spec.add_dependency 'cocina-models', '~> 0.65.0' # leave pinned to patch level until cocina-models hits 1.0
28
+ spec.add_dependency 'cocina-models', '~> 0.67.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.11.0'
6
+ VERSION = '8.1.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.11.0
4
+ version: 8.1.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-08 00:00:00.000000000 Z
12
+ date: 2022-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.65.0
40
+ version: 0.67.0
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.65.0
47
+ version: 0.67.0
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: deprecation
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -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.2.32
283
+ rubygems_version: 3.1.4
276
284
  signing_key:
277
285
  specification_version: 4
278
286
  summary: A client for dor-services-app