async-io 1.6.0 → 1.6.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: 0533045130d08f4efcc4ec788691d9801e17a6a3e5839c248cde817f34d9c196
4
- data.tar.gz: 69c5ea7541d750da46fc4f8a8f906ec00db8420959597f1c5f621687fafa24a0
3
+ metadata.gz: aafe303b0c0b238c295127f824835dba4a5cd60dd6c7f9982c5c7986469643af
4
+ data.tar.gz: 77ef702c59f1a8d0c33f0dbea1efc76ea8141316c063e22d750974276ec2882a
5
5
  SHA512:
6
- metadata.gz: 37043c14010bbc1d9aaf0a6f9d0cc63337a0bb9f37c39265db3c93761e769e4e7a1a5bd716fc8171f9da76d6bb18f7df2cfb4ea9496c56e0fd83d0eb1fbb86ab
7
- data.tar.gz: 1cc08b4414cce0946893ad48e25d65767fe5c76a517330445de2b73d0a8b7f2bcf06fbda85ce2ae62a5f53dbb914472a9f098a15726f7160e3eac53c15bbfc36
6
+ metadata.gz: ceb9f804c934abdff5e465efb40e2423d69c741144b0bff01208ddc1be034c8c60289be7566dd6f9e59bc2bfe24943c153bcf20a267f5f4126ba003524c49e6b
7
+ data.tar.gz: 6ade7b746032a731210d840c5c41d752f5c4b646f875dbaba5753b704a51fc969387a39c737bdfba463b51eb0cb97efd58e08b4e80ca9200474b6fcd6a345b71
@@ -183,7 +183,7 @@ module Async
183
183
  end
184
184
 
185
185
  def hostname
186
- endpoint.hostname
186
+ @options.fetch(:hostname) {@endpoint.hostname}
187
187
  end
188
188
 
189
189
  attr :endpoint
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module IO
23
- VERSION = "1.6.0"
23
+ VERSION = "1.6.1"
24
24
  end
25
25
  end
@@ -24,6 +24,12 @@ require 'async/io/tcp_socket'
24
24
  RSpec.describe Async::IO::Endpoint do
25
25
  include_context Async::RSpec::Reactor
26
26
 
27
+ describe Async::IO::Endpoint.ssl('0.0.0.0', 5234, hostname: "lolcathost") do
28
+ it "should have hostname" do
29
+ expect(subject.hostname).to be == "lolcathost"
30
+ end
31
+ end
32
+
27
33
  describe Async::IO::Endpoint.tcp('0.0.0.0', 5234, reuse_port: true) do
28
34
  it "should be a tcp binding" do
29
35
  subject.bind do |server|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams