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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99b21a2454e10904ebbf717bf4c1f5dcc337db1a50c88cefea5ef25116759ef2
4
- data.tar.gz: 4f789220815ddc651cf8397697e30924660c231bebcdb2375f14eac1785fed39
3
+ metadata.gz: 6a1fd8b9900456445fa95fc7de22135fc86c96c9ed05586acec98c492de11ab7
4
+ data.tar.gz: b179c79964d3fba2d92753fc4494fd0fa2a88bcb825dc20561a61784adc60fec
5
5
  SHA512:
6
- metadata.gz: 4c1720d279b749cd199455eb42ef4fe023a62287100230734d989b6dd8a944b8585c5f5565fa5899aa30b8563ae6350e938632e0c7b2a0b816d80f7273ddf81a
7
- data.tar.gz: 06baff00190678e64cd396e6ac90e4f6a3e136295fabbaa92b6e7ab7d3894ab9345e084430745d6e0ba0633af7ed240a8478009fafc12134d3886aad4c642e05
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
 
@@ -7,6 +7,6 @@
7
7
  class IO
8
8
  # @namespace
9
9
  module Endpoint
10
- VERSION = "0.17.0"
10
+ VERSION = "0.17.1"
11
11
  end
12
12
  end
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.0
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: 3.6.9
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