sus-fixtures-async-http 0.5.0 → 0.7.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: a41ad323811224d46bfa1fa1bd64bb801fe3fcc6c2baae2ba9778c8ad5c2666e
4
- data.tar.gz: 99f04ff7ef291253878b565bc7ce96bb16d6bddb05c482c56fcab80db7ecaaae
3
+ metadata.gz: 47cfa3da74e88eb30edecd2a485ce01729423622ed2f593ca9ed7f3e1155cc0b
4
+ data.tar.gz: d4b58108c4e67f5923dc550d8ca8a52c5097b4986444e364d6439e8d922ce8f3
5
5
  SHA512:
6
- metadata.gz: a4368d65fe89f46c66edcd4ea75dfab615880b1910dce9d3a761337bf8510db10ffa0a78d2693096f088f77389af15956c835f7657aedac02bdc655d7ac89b12
7
- data.tar.gz: 181d72bdc9e30a058c1dbe71e2309a63e1f60b42ce5d21e66a23da3d5a4a5416872910f8eb577089c3c14abb4571a934e326e07d6f448ac610430b8a5cb5440c
6
+ metadata.gz: 7fd7dc7044c7e8cfe292f53460e0a280d8c0fb57c26c423d5c71e87d15a2b7efb420c1eb4cc2adefd08c66a4d712207d5f2509825844dc5ce47d4901aaf9cf34
7
+ data.tar.gz: a0655c4ab5923ba419c347331479644f1e8a31c198228a07ce62cf3a0b8fa0f9402594579d6a71c303f8930cd5db466563554e2166c442c3c63aec96e3fcf26b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -86,10 +86,16 @@ module Sus::Fixtures
86
86
  end
87
87
 
88
88
  def make_client_endpoint(bound_endpoint)
89
- bound_endpoint.local_address_endpoint
89
+ # Pass through the timeout:
90
+ bound_endpoint.local_address_endpoint(timeout: endpoint.timeout)
90
91
  end
91
92
 
93
+ def make_client(endpoint, **options)
94
+ options[:retries] = retries unless options.key?(:retries)
92
95
 
96
+ ::Async::HTTP::Client.new(endpoint, **options)
97
+ end
98
+
93
99
  def before
94
100
  super
95
101
 
@@ -118,7 +124,7 @@ module Sus::Fixtures
118
124
  wrapper.replace(:path) {endpoint.path}
119
125
  end
120
126
 
121
- @client = ::Async::HTTP::Client.new(@client_endpoint, retries: retries)
127
+ @client = make_client(@client_endpoint)
122
128
  end
123
129
 
124
130
  def after
@@ -7,7 +7,7 @@ module Sus
7
7
  module Fixtures
8
8
  module Async
9
9
  module HTTP
10
- VERSION = "0.5.0"
10
+ VERSION = "0.7.0"
11
11
  end
12
12
  end
13
13
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus-fixtures-async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2023-09-10 00:00:00.000000000 Z
40
+ date: 2023-09-11 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: async-http
metadata.gz.sig CHANGED
Binary file