io-endpoint 0.13.1 → 0.14.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
  SHA256:
3
- metadata.gz: 80426a4ee162f18eb945d9ce2fd75bde3cf23e9d5bb8333faa2ff627f6b87a23
4
- data.tar.gz: 37d79a722c7371c993476fc3061d5c63e7c10f6051dcdc5215d079bac88d5965
3
+ metadata.gz: 0f51510c717c48af4dbb57bdc410ba223ca4bb5f7880c57ca37e8a95c33a1c59
4
+ data.tar.gz: 1175cb1f51a2e242a87f3d807047ca01b4f42d06842d5162459cc9f8566eb196
5
5
  SHA512:
6
- metadata.gz: b89867de53a90531d5b9f1484d529e3f556b6ac75b30b6174c2bfc7f3c0199b80208b7699f6998d8c61b8e0eef666b72f66e10377090b566ae4058b4d229859d
7
- data.tar.gz: a7c98d22e20fd3cdd558b8266b92bfb88fc110c6f0a144769daf58b505447cc0e0fff04a4b07d0bbe490327a3a46d5f7b353f436cb72651040cae8e350523f54
6
+ metadata.gz: 616c3bc275c978686816bc6dbcfb5100101bea253e393693d7f319fca284b41955b58d59d2091cf2cc6f0f00bfbdf00b2b1ad8d04346d91f2af8a70f55817070
7
+ data.tar.gz: 1e9b8a3e7e1d1379a270f92fef0075b938a708f7744f622e9c14ab5cb6e179e7e0ea465e03b9ce49eeec88bb9f2aeca126b397c92d0f7f4e378512a8327ce5ef
checksums.yaml.gz.sig CHANGED
Binary file
@@ -17,6 +17,17 @@ module IO::Endpoint
17
17
  end
18
18
 
19
19
  def to_s
20
+ case @address.afamily
21
+ when Socket::AF_INET
22
+ "inet:#{@address.inspect_sockaddr}"
23
+ when Socket::AF_INET6
24
+ "inet6:#{@address.inspect_sockaddr}"
25
+ else
26
+ "address:#{@address.inspect_sockaddr}"
27
+ end
28
+ end
29
+
30
+ def inspect
20
31
  "\#<#{self.class} address=#{@address.inspect}>"
21
32
  end
22
33
 
@@ -55,6 +55,10 @@ module IO::Endpoint
55
55
  end
56
56
 
57
57
  def to_s
58
+ "bound:#{@endpoint}"
59
+ end
60
+
61
+ def inspect
58
62
  "\#<#{self.class} #{@sockets.size} bound sockets for #{@endpoint}>"
59
63
  end
60
64
 
@@ -19,6 +19,14 @@ module IO::Endpoint
19
19
  @endpoints = endpoints
20
20
  end
21
21
 
22
+ def to_s
23
+ "composite:#{@endpoints.join(",")}"
24
+ end
25
+
26
+ def inspect
27
+ "\#<#{self.class} endpoints=#{@endpoints}>"
28
+ end
29
+
22
30
  def with(**options)
23
31
  self.class.new(endpoints.map{|endpoint| endpoint.with(**options)}, **@options.merge(options))
24
32
  end
@@ -57,6 +57,10 @@ module IO::Endpoint
57
57
  end
58
58
 
59
59
  def to_s
60
+ "connected:#{@endpoint}"
61
+ end
62
+
63
+ def inspect
60
64
  "\#<#{self.class} #{@socket} connected for #{@endpoint}>"
61
65
  end
62
66
  end
@@ -14,6 +14,10 @@ module IO::Endpoint
14
14
  end
15
15
 
16
16
  def to_s
17
+ "host:#{@specification[0]}:#{@specification[1]}"
18
+ end
19
+
20
+ def inspect
17
21
  nodename, service, family, socktype, protocol, flags = @specification
18
22
 
19
23
  "\#<#{self.class} name=#{nodename.inspect} service=#{service.inspect} family=#{family.inspect} type=#{socktype.inspect} protocol=#{protocol.inspect} flags=#{flags.inspect}>"
@@ -15,6 +15,10 @@ module IO::Endpoint
15
15
  end
16
16
 
17
17
  def to_s
18
+ "socket:#{@socket}"
19
+ end
20
+
21
+ def inspect
18
22
  "\#<#{self.class} #{@socket.inspect}>"
19
23
  end
20
24
 
@@ -87,7 +87,11 @@ module IO::Endpoint
87
87
  end
88
88
 
89
89
  def to_s
90
- "\#<#{self.class} #{@endpoint}>"
90
+ "ssl:#{@endpoint}"
91
+ end
92
+
93
+ def inspect
94
+ "\#<#{self.class} endpoint=#{@endpoint.inspect}>"
91
95
  end
92
96
 
93
97
  def address
@@ -16,7 +16,11 @@ module IO::Endpoint
16
16
  end
17
17
 
18
18
  def to_s
19
- "\#<#{self.class} #{@path.inspect}>"
19
+ "unix:#{@path}"
20
+ end
21
+
22
+ def inspect
23
+ "\#<#{self.class} path=#{@path.inspect}>"
20
24
  end
21
25
 
22
26
  attr :path
@@ -5,6 +5,6 @@
5
5
 
6
6
  class IO
7
7
  module Endpoint
8
- VERSION = "0.13.1"
8
+ VERSION = "0.14.0"
9
9
  end
10
10
  end
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.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2024-08-27 00:00:00.000000000 Z
40
+ date: 2024-10-12 00:00:00.000000000 Z
41
41
  dependencies: []
42
42
  description:
43
43
  email:
metadata.gz.sig CHANGED
@@ -1,6 +1,2 @@
1
- ^-a�pы }x7�!ipnK��h��EWl}�Ă��ソ]�) �?��n)3�[��x�,ό��|�1�K���9�S-F��g BZ�<�Oթ Rj{�:���\��ZC>6S��K_�}6_��$G�`���~bp,*���$
2
- ��ix��`}r����]M���S i� 7<����
3
-
4
- ��%�^��47��{��ptl$��t���-=&YU&��ҁ��av���I�i4�s
5
- >)����cC�٣Ŧ���{:-N.K#
6
- ������2Dz^
1
+ ^�cC��|��Ta]}�e@�y�! M��!��"y%�s��M1LWDk�&���X���N
2
+ Q0./���I�>�r߯{�{n֧�.)P����FM7+�N9�����J[�Rk;+�R�Qr�u�Z~�"[_at� !�Q�>�lFi��އ4�L� }� �,��L"Y�L|/