dor-services-client 7.10.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: 247737e90861ec22f94636b9936d5ba4fb6c9d9a590230a9960a5fc516ae1032
4
- data.tar.gz: d9f21704c7da9cc694b2030efc6e5790ab30150ac3a6303cff3fb45bcd49eb0e
3
+ metadata.gz: 7181881f292dff5b32f676a18e544d97031a792f570a51a76bef0d04ed90f7ca
4
+ data.tar.gz: d3ed67debc15962180f582185a901df0f77e5b8f0f74e3dd48c808a8f6aaa0a4
5
5
  SHA512:
6
- metadata.gz: 52b93852476f4a7893e3d4e56e471dd262d674a62cf0172745546e0b08a7aea65b861bd28b1e48f86c9f3e1da261c9527e4b5aa3206b919e83c6e2451af44d84
7
- data.tar.gz: 27c897c3f1bc2fef7bb7f7494292df2320f9768df5c8822b10eff38b28b818a9087e438b693f74a7fb307731dd02be688c827557ff631e93b997330f8a306086
6
+ metadata.gz: 5fecbbcee7c36c46ed42d883427bfa886e3fd8a130e30642358e82124676d1b25342c3e90a33a40a5201aed91f1ae0b8a31b435fced99aeac93e26e85e93c187
7
+ data.tar.gz: 2eacf387bd12985b60357903f15480bbf538bb6ffdd5d8b50de6c0690cdc554805cbd6d9e4238497a1d2eb6453d936eaf1f783f4dbfec6abccde119131adb4c1
@@ -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.64.0' # leave pinned to patch level until cocina-models hits 1.0
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.10.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.10.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-04 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
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.64.0
40
+ version: 0.66.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.64.0
47
+ version: 0.66.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