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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sus/fixtures/async/http/server_context.rb +8 -2
- data/lib/sus/fixtures/async/http/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47cfa3da74e88eb30edecd2a485ce01729423622ed2f593ca9ed7f3e1155cc0b
|
4
|
+
data.tar.gz: d4b58108c4e67f5923dc550d8ca8a52c5097b4986444e364d6439e8d922ce8f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 =
|
127
|
+
@client = make_client(@client_endpoint)
|
122
128
|
end
|
123
129
|
|
124
130
|
def after
|
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.
|
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-
|
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
|