async-container-supervisor 0.5.1 → 0.6.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: 6a910d75fb13f17155f9786202f2ca613ca581cd2aa171c942638dc22a372aa9
4
- data.tar.gz: 51b89119b6d9a77511a19436a09f21796bc0a88c0f1d9e0542cf530e18034242
3
+ metadata.gz: 6fee2b80a7228f9c35664c63e1c33093cb768e5c964e52f595465585bea84831
4
+ data.tar.gz: 384a75fb6affd59de5d91a169fe1094515079a938e44304375d786e07cff930b
5
5
  SHA512:
6
- metadata.gz: 8e80d6ba0aa70e17aa8ec115d3536c4f38654e8403bd8a74a8bbc80014116035adeb68887a53d4e9eb13f03ec20dc286a8e24386bab1745ef6e0237baa0347bb
7
- data.tar.gz: 97e1560def4b68e8a0afe42f6a7c6bdda005903ffb11edd909b9ec8c9756daed13d8e38f11c0ed0042b34202665216a0a39f948a51a2bbf348fd8933e33a3eef
6
+ metadata.gz: f4f2dfad26d080569c54a432a6f83461525dde4f4ce0610e90a2b9563e2ebcfb1cf2ee253ab38a669d5a8c2e155b84cb3bb002f385980f5bbddad90664ca1077
7
+ data.tar.gz: 7695b0a3b6b4cecdb25fdcac2ebc55e5f401de4838af0280b9a6819a93e773d2436dc7dbea662b8a767950e8f9b3a3e9589853e99d778b085c5149240757379d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,3 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2025, by Samuel Williams.
1
5
 
2
6
  def initialize(...)
3
7
  super
@@ -5,12 +9,20 @@ def initialize(...)
5
9
  require "async/container/supervisor"
6
10
  end
7
11
 
12
+ # Restart the container, typically causing it to exit (the parent process should then restart it).
8
13
  def restart
9
14
  client do |connection|
10
15
  connection.call(do: :restart)
11
16
  end
12
17
  end
13
18
 
19
+ # Reload the services gracefully, allowing them to reconfigure without dropping connections.
20
+ def reload
21
+ client do |connection|
22
+ connection.call(do: :restart, signal: :HUP)
23
+ end
24
+ end
25
+
14
26
  def status
15
27
  client do |connection|
16
28
  connection.call(do: :status)
@@ -6,7 +6,7 @@
6
6
  module Async
7
7
  module Container
8
8
  module Supervisor
9
- VERSION = "0.5.1"
9
+ VERSION = "0.6.0"
10
10
  end
11
11
  end
12
12
  end
@@ -22,4 +22,4 @@ module Async
22
22
  module Supervisor
23
23
  end
24
24
  end
25
- end
25
+ end
data/readme.md CHANGED
@@ -20,6 +20,10 @@ Please see the [project documentation](https://socketry.github.io/async-containe
20
20
 
21
21
  Please see the [project releases](https://socketry.github.io/async-container-supervisor/releases/index) for all releases.
22
22
 
23
+ ### v0.6.0
24
+
25
+ - Add `async:container:supervisor:reload` command to restart the container (blue/green deployment).
26
+
23
27
  ### v0.1.0
24
28
 
25
29
  - Initial implementation.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.6.0
4
+
5
+ - Add `async:container:supervisor:reload` command to restart the container (blue/green deployment).
6
+
3
7
  ## v0.1.0
4
8
 
5
9
  - Initial implementation.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-container-supervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -36,7 +36,7 @@ cert_chain:
36
36
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
37
37
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
38
38
  -----END CERTIFICATE-----
39
- date: 2025-02-28 00:00:00.000000000 Z
39
+ date: 1980-01-02 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: async-container
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: io-stream
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: memory-leak
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -127,14 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
141
  requirements:
128
142
  - - ">="
129
143
  - !ruby/object:Gem::Version
130
- version: '3.1'
144
+ version: '3.2'
131
145
  required_rubygems_version: !ruby/object:Gem::Requirement
132
146
  requirements:
133
147
  - - ">="
134
148
  - !ruby/object:Gem::Version
135
149
  version: '0'
136
150
  requirements: []
137
- rubygems_version: 3.6.2
151
+ rubygems_version: 3.6.7
138
152
  specification_version: 4
139
153
  summary: A supervisor for managing multiple container processes.
140
154
  test_files: []
metadata.gz.sig CHANGED
Binary file