sus-fixtures-async-http 0.6.0 → 0.8.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: df2bb9c46d8f6d673272830dd7688210094111cb8c4e9fe3b13f7f9a0204c9f3
4
- data.tar.gz: 28c48df587ecc424a72f3a0e86f01f713f4abb6989a7b8bc3544a7bf163c7261
3
+ metadata.gz: 471d3740244246ef662eae76bb71684344d63f751b3bcb1318128783bc39a4c4
4
+ data.tar.gz: 426cc86ae59a9b7bf1c294e61d1547996ee359ceb2a9877d53080b73a2c27a7d
5
5
  SHA512:
6
- metadata.gz: 78ecf6f23da89a06e93d80894490ad90c459fff767ee9ba6774c2a8c6bea3a0cd1c229d1f75b3b0020dd7ee66627b9aeb3a8da4b7efc7ccf3e093493fe617b10
7
- data.tar.gz: 5a0195e4fa34d1eb874c4c7c3cf4078617d071f900a9c8e46466c0d694b69606b2c9274abf4f6ab7d1e1ffee6de796eaa743392d6ad52bfe68a8ead5d88f527a
6
+ metadata.gz: 98e73e0b6c399b1a2b1710a2ebc4d021e3ae5a2e7c5efd72daa07fb24c3883a429940ca9f70b80491a9196e65006ee48c9f1ffea30c6e7bba486638992f49ff6
7
+ data.tar.gz: 21d9273dcc95e6228f485471490f60cc1ab4b6507632f812225afa41dbba4fdb92854e13d15156eb399a21b15a896656fa5ea6ebccd16b209fc91dc1b787784e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -8,7 +8,6 @@ require 'sus/fixtures/async/reactor_context'
8
8
  require 'async/http/server'
9
9
  require 'async/http/client'
10
10
  require 'async/http/endpoint'
11
- require 'async/io/shared_endpoint'
12
11
 
13
12
  module Sus::Fixtures
14
13
  module Async
@@ -86,7 +85,8 @@ module Sus::Fixtures
86
85
  end
87
86
 
88
87
  def make_client_endpoint(bound_endpoint)
89
- bound_endpoint.local_address_endpoint
88
+ # Pass through the timeout:
89
+ bound_endpoint.local_address_endpoint(timeout: endpoint.timeout)
90
90
  end
91
91
 
92
92
  def make_client(endpoint, **options)
@@ -99,7 +99,7 @@ module Sus::Fixtures
99
99
  super
100
100
 
101
101
  # We bind the endpoint before running the server so that we know incoming connections will be accepted:
102
- @bound_endpoint = ::Async::IO::SharedEndpoint.bound(endpoint)
102
+ @bound_endpoint = endpoint.bound
103
103
 
104
104
  @server_endpoint = make_server_endpoint(@bound_endpoint)
105
105
  mock(@server_endpoint) do |wrapper|
@@ -7,7 +7,7 @@ module Sus
7
7
  module Fixtures
8
8
  module Async
9
9
  module HTTP
10
- VERSION = "0.6.0"
10
+ VERSION = "0.8.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.6.0
4
+ version: 0.8.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-11 00:00:00.000000000 Z
40
+ date: 2024-01-22 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: async-http
@@ -53,20 +53,6 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0.54'
56
- - !ruby/object:Gem::Dependency
57
- name: async-io
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '1.34'
63
- type: :runtime
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '1.34'
70
56
  - !ruby/object:Gem::Dependency
71
57
  name: sus
72
58
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
126
  - !ruby/object:Gem::Version
141
127
  version: '0'
142
128
  requirements: []
143
- rubygems_version: 3.4.10
129
+ rubygems_version: 3.4.22
144
130
  signing_key:
145
131
  specification_version: 4
146
132
  summary: Test fixtures for running in Async::HTTP.
metadata.gz.sig CHANGED
Binary file