async-io 1.15.0 → 1.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/io/buffer.rb +1 -3
- data/lib/async/io/ssl_endpoint.rb +3 -3
- data/lib/async/io/version.rb +1 -1
- data/spec/async/io/ssl_socket_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa15bffee537c8232f3e6b4a798e3c9a0097e6b05a359b7b032e86691b8341cd
|
4
|
+
data.tar.gz: e63efb61474d604ada735c3c97e7424561dc6f080c72f9c0a924bc4a87292a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a51bdf3354ea82c7ebea969e839bcde255b762c2fe34c7f1585089231b0fe927a3a41f9df374435459573eae8dfce6f37207d2d92fe1f47132e5f20b3d65cafd
|
7
|
+
data.tar.gz: 4856741590def68e7849b96202e95f5f8ecaacca42c8d08de7671b8307102ad03181ade4fa311ed49fcad3bad3fa8fe2eba45705b07ecff9986f203453587eb3
|
data/lib/async/io/buffer.rb
CHANGED
@@ -35,7 +35,7 @@ module Async
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def hostname
|
38
|
-
@options
|
38
|
+
@options[:hostname] || @endpoint.hostname
|
39
39
|
end
|
40
40
|
|
41
41
|
attr :endpoint
|
@@ -95,8 +95,8 @@ module Async
|
|
95
95
|
SecureEndpoint = SSLEndpoint
|
96
96
|
|
97
97
|
class Endpoint
|
98
|
-
def self.ssl(*args, **options)
|
99
|
-
SSLEndpoint.new(self.tcp(*args, **options),
|
98
|
+
def self.ssl(*args, ssl_context: nil, hostname: nil, **options)
|
99
|
+
SSLEndpoint.new(self.tcp(*args, **options), ssl_context: ssl_context, hostname: hostname)
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
data/lib/async/io/version.rb
CHANGED
@@ -31,8 +31,8 @@ RSpec.describe Async::IO::SSLSocket do
|
|
31
31
|
|
32
32
|
# Shared port for localhost network tests.
|
33
33
|
let(:endpoint) {Async::IO::Endpoint.tcp("127.0.0.1", 6779, reuse_port: true)}
|
34
|
-
let(:server_endpoint) {Async::IO::
|
35
|
-
let(:client_endpoint) {Async::IO::
|
34
|
+
let(:server_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: server_context)}
|
35
|
+
let(:client_endpoint) {Async::IO::SSLEndpoint.new(endpoint, ssl_context: client_context)}
|
36
36
|
|
37
37
|
let(:data) {"The quick brown fox jumped over the lazy dog."}
|
38
38
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|