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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d4d9a66fb4be7f89c7dda8e08e7e10fdc2145d52eb5310b7b0d5bf0aa657fd7
4
- data.tar.gz: ba85706fcee621d8f23b01a67389c084c8772f759c301e6c22a165b94a2f5686
3
+ metadata.gz: fa15bffee537c8232f3e6b4a798e3c9a0097e6b05a359b7b032e86691b8341cd
4
+ data.tar.gz: e63efb61474d604ada735c3c97e7424561dc6f080c72f9c0a924bc4a87292a5b
5
5
  SHA512:
6
- metadata.gz: f2f682fdde7cd37a7836233bd194c7a1fca1a5f25e4f1f1bb424e95075b40a3b6d46c83ca2a92c57557e038515bb425989a11397067bf7afb2c8128ce532b514
7
- data.tar.gz: c7fa044f6140fc47e040188d0fa66848812ea1b187935fb9fbbdc46efdff7f553037af77089e955481779c1c605396851b6aa9b1fc280a2497fd64f995304a61
6
+ metadata.gz: a51bdf3354ea82c7ebea969e839bcde255b762c2fe34c7f1585089231b0fe927a3a41f9df374435459573eae8dfce6f37207d2d92fe1f47132e5f20b3d65cafd
7
+ data.tar.gz: 4856741590def68e7849b96202e95f5f8ecaacca42c8d08de7671b8307102ad03181ade4fa311ed49fcad3bad3fa8fe2eba45705b07ecff9986f203453587eb3
@@ -28,9 +28,7 @@ module Async
28
28
  end
29
29
 
30
30
  def << string
31
- super
32
-
33
- force_encoding(Encoding::BINARY)
31
+ super(string.b)
34
32
  end
35
33
 
36
34
  alias concat <<
@@ -35,7 +35,7 @@ module Async
35
35
  end
36
36
 
37
37
  def hostname
38
- @options.fetch(:hostname) {@endpoint.hostname}
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), **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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module IO
23
- VERSION = "1.15.0"
23
+ VERSION = "1.15.1"
24
24
  end
25
25
  end
@@ -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::SecureEndpoint.new(endpoint, ssl_context: server_context)}
35
- let(:client_endpoint) {Async::IO::SecureEndpoint.new(endpoint, ssl_context: client_context)}
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2018-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async