digital-transport 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 507c30df6b4922032b78a429b53c45727de4a1e5
4
- data.tar.gz: cf66ce9d410277c8f57872da99f767e9470e6a86
3
+ metadata.gz: c8049be40a3e3b583d7bd139f725f8970b19cad9
4
+ data.tar.gz: 5af871b954f84474022cd6945249b66cd1ee7215
5
5
  SHA512:
6
- metadata.gz: 8bb507f23f253040b712c8d953a47973cf9ffae9d774d2d5eea722703aacb33343a72abba95685d4b07b333532f027142bca9db96e7c6ba7851e3e6385eab918
7
- data.tar.gz: 00c4a2913cc370de0c0b384bbe01009e82a22bd09435270ab6a4176740f46ced7d63cbe4be28b6d423d1e0fe0e6f06149e89d19d9fcdd40d9d2001f399a4d5e4
6
+ metadata.gz: 0bf2e6aab9e46c8b95c7e21a7e365a915f89b9ba90058771ebe3e4885a9c87e72992402c563d96d53519a872f1d30f160a9fe5f0dd73867d3b095923e4a48437
7
+ data.tar.gz: a3a649d45353ee204e39fdb560f358cd686239dc7797c4dd0cc8bbfc815314998db9aea1602f722b49864430c276af2ffeb0c857ae1b388dc8ce347261eece4e
@@ -97,7 +97,7 @@ module Digital
97
97
  def connect_nonblock(io_like, endpoint, timeout)
98
98
  # IO.connect_nonblock retrun value is different across multiple platform.
99
99
  io_like.connect_nonblock(endpoint)
100
- io_like
100
+ Either.right(self)
101
101
  rescue Errno::EINPROGRESS # connection in progress, wait a bit.
102
102
  IO.select(nil, [io_like], nil, timeout) ? retry : nil
103
103
  rescue Errno::EISCONN # The socket is already connected.
@@ -1,5 +1,5 @@
1
1
  module Digital
2
2
  module Transport
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.5.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digital-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Lishtaba