io-endpoint 0.17.0 → 0.17.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/io/endpoint/named_endpoints.rb +18 -0
- data/lib/io/endpoint/version.rb +1 -1
- data/readme.md +4 -4
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a1fd8b9900456445fa95fc7de22135fc86c96c9ed05586acec98c492de11ab7
|
|
4
|
+
data.tar.gz: b179c79964d3fba2d92753fc4494fd0fa2a88bcb825dc20561a61784adc60fec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6370da98fec490d732f957fd5cf947396551bed010d88211a4e6684529d4ea930bff17753ae672c3cc8e482315f96bd2d31ee4365a77bb85476fa12da23ace4f
|
|
7
|
+
data.tar.gz: c478357360832dd7c225979f2531025025f711fca06616b4efd2a7398d700a1c248021a5d2be6749fd9b5dc5950cd04a953ac383527c8d2cb301745ee5ac5038
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -16,6 +16,24 @@ module IO::Endpoint
|
|
|
16
16
|
@endpoints = endpoints
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
# Get a string representation of the named endpoints.
|
|
20
|
+
# @returns [String] A string representation listing all named endpoints.
|
|
21
|
+
def to_s
|
|
22
|
+
parts = @endpoints.map do |name, endpoint|
|
|
23
|
+
"#{name}:#{endpoint}"
|
|
24
|
+
end
|
|
25
|
+
"named:#{parts.join(",")}"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Get a detailed string representation of the named endpoints.
|
|
29
|
+
# @returns [String] A detailed string representation including all named endpoints.
|
|
30
|
+
def inspect
|
|
31
|
+
parts = @endpoints.map do |name, endpoint|
|
|
32
|
+
"#{name}: #{endpoint.inspect}"
|
|
33
|
+
end
|
|
34
|
+
"\#<#{self.class} #{parts.join(", ")}>"
|
|
35
|
+
end
|
|
36
|
+
|
|
19
37
|
# @attribute [Hash(Symbol, Generic)] The endpoints hash mapping names to endpoint instances.
|
|
20
38
|
attr :endpoints
|
|
21
39
|
|
data/lib/io/endpoint/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -16,6 +16,10 @@ Please see the [project documentation](https://socketry.github.io/io-endpoint) f
|
|
|
16
16
|
|
|
17
17
|
Please see the [project releases](https://socketry.github.io/io-endpointreleases/index) for all releases.
|
|
18
18
|
|
|
19
|
+
### v0.17.1
|
|
20
|
+
|
|
21
|
+
- Add `#to_s` and `#inspect` for `IO::Endpoint::NamedEndpoints`.
|
|
22
|
+
|
|
19
23
|
### v0.17.0
|
|
20
24
|
|
|
21
25
|
- Added `IO::Endpoint::NamedEndpoints` for accessing endpoints by symbolic names, useful for running applications on multiple endpoints with different configurations.
|
|
@@ -54,10 +58,6 @@ Please see the [project releases](https://socketry.github.io/io-endpointreleases
|
|
|
54
58
|
|
|
55
59
|
- Expose `size` and internal endpoints for composite endpoint.
|
|
56
60
|
|
|
57
|
-
### v0.10.3
|
|
58
|
-
|
|
59
|
-
- Fixed `SSLServer#accept` failures causing accept loop to exit. (\#10)
|
|
60
|
-
|
|
61
61
|
## See Also
|
|
62
62
|
|
|
63
63
|
- [async-io](https://github.com/socketry/async-io) — Where this implementation originally came from.
|
data/releases.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## v0.17.1
|
|
4
|
+
|
|
5
|
+
- Add `#to_s` and `#inspect` for `IO::Endpoint::NamedEndpoints`.
|
|
6
|
+
|
|
3
7
|
## v0.17.0
|
|
4
8
|
|
|
5
9
|
- Added `IO::Endpoint::NamedEndpoints` for accessing endpoints by symbolic names, useful for running applications on multiple endpoints with different configurations.
|
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.17.
|
|
4
|
+
version: 0.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
|
-
rubygems_version:
|
|
85
|
+
rubygems_version: 4.0.3
|
|
86
86
|
specification_version: 4
|
|
87
87
|
summary: Provides a separation of concerns interface for IO endpoints.
|
|
88
88
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|