io-endpoint 0.13.1 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/io/endpoint/address_endpoint.rb +11 -0
- data/lib/io/endpoint/bound_endpoint.rb +4 -0
- data/lib/io/endpoint/composite_endpoint.rb +8 -0
- data/lib/io/endpoint/connected_endpoint.rb +4 -0
- data/lib/io/endpoint/host_endpoint.rb +4 -0
- data/lib/io/endpoint/socket_endpoint.rb +4 -0
- data/lib/io/endpoint/ssl_endpoint.rb +5 -1
- data/lib/io/endpoint/unix_endpoint.rb +5 -1
- data/lib/io/endpoint/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +2 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f51510c717c48af4dbb57bdc410ba223ca4bb5f7880c57ca37e8a95c33a1c59
|
4
|
+
data.tar.gz: 1175cb1f51a2e242a87f3d807047ca01b4f42d06842d5162459cc9f8566eb196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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
|
@@ -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}>"
|
data/lib/io/endpoint/version.rb
CHANGED
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.
|
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-
|
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
|
-
|
2
|
-
|
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|/
|