io-endpoint 0.15.0 → 0.15.2

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: 85f53ad778e7ab62a17def218d84235d361df69805fa9f0edbf08b4ec0dfebc1
4
- data.tar.gz: db08fed38c6ff791c0d4b98af3a661af718c5c44595f135cb0bf77147a36155b
3
+ metadata.gz: 0ab97a46f319ca04819bf0c53b225163977979f70242a77d84f09f2a4da438be
4
+ data.tar.gz: 396ba42209012cc921b2ecff5ef51eedcba214f215d7b4fcb62d4cb1f52347ea
5
5
  SHA512:
6
- metadata.gz: 7c00c73e293110af0cb9caed8e7a8477b1c18eabe896b523297e42f3daf689586e916c989e103c33b9d4be37ce75e67a3433d2bfed92cdd5e366177076454bfe
7
- data.tar.gz: a1bb99c8199618a8984deca2678c9884f382542b38c83c3fe6a08b1896a13fd5f9a57efb125b487a259f9b0a0e6fc4425446aea083ce8423b27acc1420178331
6
+ metadata.gz: 77457ee3835cc1daa48a72ad6e025e855061dadbafbbd154090e81bf2854b2e96abe0a70f82eef58eb1893eaf1e968f668d6e58485879d2216ad0680a3a4263b
7
+ data.tar.gz: 0f01d192468b9e6c38ec6e410086674bfe7a6ff96622ab82cd8739b5627e02c055bfbb193dbcd806fc4a87bea7880bf234c1a6c197e0a4f2d426dc66a49352f5
checksums.yaml.gz.sig CHANGED
Binary file
@@ -35,7 +35,7 @@ module IO::Endpoint
35
35
  return false
36
36
  end
37
37
 
38
- def bind(&block)
38
+ def bind(...)
39
39
  super
40
40
  rescue Errno::EADDRINUSE
41
41
  # If you encounter EADDRINUSE from `bind()`, you can check if the socket is actually accepting connections by attempting to `connect()` to it. If the socket is still bound by an active process, the connection will succeed. Otherwise, it should be safe to `unlink()` the path and try again.
@@ -5,6 +5,6 @@
5
5
 
6
6
  class IO
7
7
  module Endpoint
8
- VERSION = "0.15.0"
8
+ VERSION = "0.15.2"
9
9
  end
10
10
  end
@@ -23,6 +23,11 @@ module IO::Endpoint
23
23
  end
24
24
  end
25
25
 
26
+ # Legacy method for compatibility with older code.
27
+ def async(&block)
28
+ schedule(&block)
29
+ end
30
+
26
31
  def set_timeout(io, timeout)
27
32
  if io.respond_to?(:timeout=)
28
33
  io.timeout = timeout
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-endpoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -36,7 +36,7 @@ cert_chain:
36
36
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
37
37
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
38
38
  -----END CERTIFICATE-----
39
- date: 2025-02-11 00:00:00.000000000 Z
39
+ date: 2025-02-20 00:00:00.000000000 Z
40
40
  dependencies: []
41
41
  executables: []
42
42
  extensions: []
metadata.gz.sig CHANGED
Binary file