sus-fixtures-async-http 0.5.0 → 0.6.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: df2bb9c46d8f6d673272830dd7688210094111cb8c4e9fe3b13f7f9a0204c9f3
4
+ data.tar.gz: 28c48df587ecc424a72f3a0e86f01f713f4abb6989a7b8bc3544a7bf163c7261
5
5
  SHA512:
6
- metadata.gz: a4368d65fe89f46c66edcd4ea75dfab615880b1910dce9d3a761337bf8510db10ffa0a78d2693096f088f77389af15956c835f7657aedac02bdc655d7ac89b12
7
- data.tar.gz: 181d72bdc9e30a058c1dbe71e2309a63e1f60b42ce5d21e66a23da3d5a4a5416872910f8eb577089c3c14abb4571a934e326e07d6f448ac610430b8a5cb5440c
6
+ metadata.gz: 78ecf6f23da89a06e93d80894490ad90c459fff767ee9ba6774c2a8c6bea3a0cd1c229d1f75b3b0020dd7ee66627b9aeb3a8da4b7efc7ccf3e093493fe617b10
7
+ data.tar.gz: 5a0195e4fa34d1eb874c4c7c3cf4078617d071f900a9c8e46466c0d694b69606b2c9274abf4f6ab7d1e1ffee6de796eaa743392d6ad52bfe68a8ead5d88f527a
checksums.yaml.gz.sig CHANGED
Binary file
@@ -89,7 +89,12 @@ module Sus::Fixtures
89
89
  bound_endpoint.local_address_endpoint
90
90
  end
91
91
 
92
+ def make_client(endpoint, **options)
93
+ options[:retries] = retries unless options.key?(:retries)
92
94
 
95
+ ::Async::HTTP::Client.new(endpoint, **options)
96
+ end
97
+
93
98
  def before
94
99
  super
95
100
 
@@ -118,7 +123,7 @@ module Sus::Fixtures
118
123
  wrapper.replace(:path) {endpoint.path}
119
124
  end
120
125
 
121
- @client = ::Async::HTTP::Client.new(@client_endpoint, retries: retries)
126
+ @client = make_client(@client_endpoint)
122
127
  end
123
128
 
124
129
  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.6.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.6.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