sus-fixtures-async-http 0.1.3 → 0.2.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: 943ec9df610ff9ca3218cb788c983691e3af8c2edeaec9d3ea43fc3e195e2772
4
- data.tar.gz: b6c6c1f8e6563c9b47c2a79a5d9ee5ecef7df1d5ceda477a1d0df8c6a32d9d41
3
+ metadata.gz: ee6d8ef3cde95bed688b17080244dbe31c1384ae130d48d3fb7bf4b3e2c5530a
4
+ data.tar.gz: 8bf80d2f089462c073e3f35c50b72471e4b4935c89e3f3624c0a1c40e238dd5e
5
5
  SHA512:
6
- metadata.gz: 4c742d502dc1e72d392f6755561f316a6ac2157d6420124d4ecf4575d6521069d95a1cf16474fb6a21c80bb23425b5d4f8d096e4c070db7011af99670c9157b9
7
- data.tar.gz: 2215debc7e4e79b360a8232342fd71e8164990e219b0251f493a864bf15f2a2ed910a775b8d9be0512ceceb65dece94b640ceab8ee7947b8e72daba3f2243fe8
6
+ metadata.gz: a24cec244482e9fbe9c93124dd55ffeb4140e6d13f718262730ec6d4cef12e20f0ea1640ad9d1eef5162620dce5504623a89bac3f2f9b3ff62ed63aaefc02ff4
7
+ data.tar.gz: 8005a829cd3c68dc6ee738fb48d8eced10daeec3716612ca50f5126ec1efbc09521a95dc54173e2b93cf6797d85aebe6f7b2be5f94f3f57885b43f059c2dad79
checksums.yaml.gz.sig CHANGED
Binary file
@@ -44,10 +44,14 @@ module Sus::Fixtures
44
44
  @client
45
45
  end
46
46
 
47
+ def client_endpoint
48
+ @address_endpoint
49
+ end
50
+
47
51
  def before
48
52
  # We bind the endpoint before running the server so that we know incoming connections will be accepted:
49
53
  @bound_endpoint = ::Async::IO::SharedEndpoint.bound(endpoint)
50
- @address_endpoint = @bound_endpoint.local_address_endpoint
54
+ @client_endpoint = @bound_endpoint.local_address_endpoint
51
55
 
52
56
  # I feel a dedicated class might be better than this hack:
53
57
  mock(@bound_endpoint) do |mock|
@@ -55,7 +59,7 @@ module Sus::Fixtures
55
59
  mock.replace(:scheme) {endpoint.scheme}
56
60
  end
57
61
 
58
- mock(@address_endpoint) do |mock|
62
+ mock(@client_endpoint) do |mock|
59
63
  mock.replace(:protocol) {endpoint.protocol}
60
64
  mock.replace(:scheme) {endpoint.scheme}
61
65
  mock.replace(:authority) {endpoint.authority}
@@ -65,7 +69,7 @@ module Sus::Fixtures
65
69
  server.run
66
70
  end
67
71
 
68
- @client = ::Async::HTTP::Client.new(@address_endpoint, protocol: endpoint.protocol, retries: retries)
72
+ @client = ::Async::HTTP::Client.new(@client_endpoint, protocol: endpoint.protocol, retries: retries)
69
73
  end
70
74
 
71
75
  def after
@@ -6,7 +6,7 @@ require 'sus/fixtures'
6
6
  module Sus::Fixtures
7
7
  module Async
8
8
  module HTTP
9
- VERSION = "0.1.3"
9
+ VERSION = "0.2.0"
10
10
  end
11
11
  end
12
12
  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.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file