async-container 0.32.0 → 0.32.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: 063a67f14c61853591e2391b2d4a9c4fcde57c6f2267863cbcf7da92844d4755
4
- data.tar.gz: ee0b57cf4ab296c3756d997d74a2a194303471a2608967f8790f39881615e564
3
+ metadata.gz: 77daf5246650362c76300eb71c5cf11459ff18967e273ba5de5ec6da3816a0f7
4
+ data.tar.gz: 9083168708fbce12c26900c2f4fa725845db8c67d7c94016c48ad3adbbdb5b5b
5
5
  SHA512:
6
- metadata.gz: 3626a193d3d97014df421b540f8e75516dd8745c6ebbdd95fe88addfaf1dabda4f0a2de88049ec13124656a2c5f30e5448441dab137465ec950f1cb5a4c9978c
7
- data.tar.gz: 2a5f8f5acbf9ca9667cf837f5344568b879faa77ac3f4f15aad8fe97fa61f1b9e6b87af193776884bedb89526735b8f15c0e13c5bb884cef0d42e5c0465e876f
6
+ metadata.gz: d293fd77c34c01ca982bdaf3be8f1c8216eed1552364b036782ecd12c259053270e837a95027374c9e8973d590043329bd00b31d1efe33743f0e5bf0e8af89a8
7
+ data.tar.gz: 7a7073417f66670f9bc686816bfdf35a290f3bc590a9396b1465f6dd1a7c2f27a679145dbbd487c2547ae69d0ae440f65b85a5d7fc63f72cb4cba5df1ea824ed
checksums.yaml.gz.sig CHANGED
Binary file
@@ -24,19 +24,30 @@ module Async
24
24
  # Initialize the controller.
25
25
  # @parameter notify [Notify::Client] A client used for process readiness notifications.
26
26
  def initialize(notify: Notify.open!, container_class: Container, graceful_stop: true)
27
- @container = nil
27
+ @notify = notify
28
28
  @container_class = container_class
29
+ @graceful_stop = graceful_stop
29
30
 
30
- @notify = notify
31
+ @container = nil
31
32
  @signals = {}
32
33
 
33
34
  self.trap(SIGHUP) do
34
35
  self.restart
35
36
  end
36
-
37
- @graceful_stop = graceful_stop
38
37
  end
39
38
 
39
+ # The notify client used by the controller.
40
+ attr :notify
41
+
42
+ # The container class used by the controller.
43
+ attr :container_class
44
+
45
+ # The graceful stop flag used by the controller.
46
+ attr :graceful_stop
47
+
48
+ # The current container being managed by the controller.
49
+ attr :container
50
+
40
51
  # The state of the controller.
41
52
  # @returns [String]
42
53
  def state_string
@@ -60,9 +71,6 @@ module Async
60
71
  @signals[signal] = block
61
72
  end
62
73
 
63
- # The current container being managed by the controller.
64
- attr :container
65
-
66
74
  # Create a policy for managing child lifecycle events.
67
75
  # Can be overridden by a sub-class to provide a custom policy.
68
76
  # @returns [Policy] The policy to use for the container.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Container
8
- VERSION = "0.32.0"
8
+ VERSION = "0.32.1"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -28,6 +28,10 @@ Please see the [project documentation](https://socketry.github.io/async-containe
28
28
 
29
29
  Please see the [project releases](https://socketry.github.io/async-container/releases/index) for all releases.
30
30
 
31
+ ### v0.32.1
32
+
33
+ - Expose `Async::Container::Controller` `#notify`, `#container_class`, and `#graceful_stop` for testing.
34
+
31
35
  ### v0.32.0
32
36
 
33
37
  - Minor **breaking** changes to `Async::Container::Policy` interface.
@@ -70,10 +74,6 @@ Please see the [project releases](https://socketry.github.io/async-container/rel
70
74
 
71
75
  - More logging, especially around failure cases.
72
76
 
73
- ### v0.27.1
74
-
75
- - Log caller and timeout when waiting on a child instance to exit, if it blocks.
76
-
77
77
  ## Contributing
78
78
 
79
79
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.32.1
4
+
5
+ - Expose `Async::Container::Controller` `#notify`, `#container_class`, and `#graceful_stop` for testing.
6
+
3
7
  ## v0.32.0
4
8
 
5
9
  - Minor **breaking** changes to `Async::Container::Policy` interface.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.32.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file