async-service 0.23.0 → 0.24.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/async/service/controller.rb +2 -1
- data/lib/async/service/managed/environment.rb +1 -0
- data/lib/async/service/version.rb +1 -1
- data/license.md +1 -0
- data/readme.md +20 -6
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +3 -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: b5fa1e0b807079efcf1c13c43e5bc35f12fe6959d8415b82fdae1918d797d593
|
|
4
|
+
data.tar.gz: 2b4117db3c442078b549b75ba5ab6e03af7bf78e62827fc31e2c5b21f674083b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c26524cfca59735e82fda14d7230e575084c27b0f820a1d285e5a5b42aaaf8267f64b64c351207903b957e1c04e62902fa2a52489efefef14c16915dbb63a8d
|
|
7
|
+
data.tar.gz: 31c9da22315d0bb3737ba692cb2ca2a84524b87d675877446764dccee46e7ab857a5fc2a4a27eb23bfb5a72eda4866a921afd002177cbe4e0866d1486f996d88
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Released under the MIT License.
|
|
4
4
|
# Copyright, 2024-2026, by Samuel Williams.
|
|
5
|
+
# Copyright, 2026, by Udi Feldman.
|
|
5
6
|
|
|
6
7
|
require "async/container/controller"
|
|
7
8
|
require_relative "policy"
|
|
@@ -91,7 +92,7 @@ module Async
|
|
|
91
92
|
end
|
|
92
93
|
|
|
93
94
|
# Stop all named services.
|
|
94
|
-
def stop(graceful =
|
|
95
|
+
def stop(graceful = @graceful_stop)
|
|
95
96
|
@services.each do |service|
|
|
96
97
|
begin
|
|
97
98
|
service.stop
|
data/license.md
CHANGED
data/readme.md
CHANGED
|
@@ -31,6 +31,10 @@ Please see the [project documentation](https://socketry.github.io/async-service/
|
|
|
31
31
|
|
|
32
32
|
Please see the [project releases](https://socketry.github.io/async-service/releases/index) for all releases.
|
|
33
33
|
|
|
34
|
+
### v0.24.1
|
|
35
|
+
|
|
36
|
+
- Managed services now pass their service name through container options by default, restoring process titles for forked and hybrid containers.
|
|
37
|
+
|
|
34
38
|
### v0.23.0
|
|
35
39
|
|
|
36
40
|
- `Async::Service::Generic.wrap` now checks for a `make_service(environment)` method on the evaluator before falling back to `service_class`. This allows environments to compose child environments and return a fully-constructed service without introducing a dedicated service class.
|
|
@@ -76,12 +80,6 @@ Please see the [project releases](https://socketry.github.io/async-service/relea
|
|
|
76
80
|
- `ManagedService` now sends `status!` messages during startup to prevent premature health check timeouts for slow-starting services.
|
|
77
81
|
- Support for `startup_timeout` option via `container_options` to detect processes that hang during startup and never become ready.
|
|
78
82
|
|
|
79
|
-
### v0.16.0
|
|
80
|
-
|
|
81
|
-
- Renamed `Async::Service::Generic` -\> `Async::Service::GenericService`, added compatibilty alias.
|
|
82
|
-
- Renamed `Async::Service::Managed::Service` -\> `Async::Service::ManagedService`.
|
|
83
|
-
- Renamed `Async::Service::Managed::Environment` -\> `Async::Service::ManagedEnvironment`.
|
|
84
|
-
|
|
85
83
|
## Contributing
|
|
86
84
|
|
|
87
85
|
We welcome contributions to this project.
|
|
@@ -92,6 +90,22 @@ We welcome contributions to this project.
|
|
|
92
90
|
4. Push to the branch (`git push origin my-new-feature`).
|
|
93
91
|
5. Create new Pull Request.
|
|
94
92
|
|
|
93
|
+
### Running Tests
|
|
94
|
+
|
|
95
|
+
To run the test suite:
|
|
96
|
+
|
|
97
|
+
``` shell
|
|
98
|
+
bundle exec sus
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Making Releases
|
|
102
|
+
|
|
103
|
+
To make a new release:
|
|
104
|
+
|
|
105
|
+
``` shell
|
|
106
|
+
bundle exec bake gem:release:patch # or minor or major
|
|
107
|
+
```
|
|
108
|
+
|
|
95
109
|
### Developer Certificate of Origin
|
|
96
110
|
|
|
97
111
|
In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
|
data/releases.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## v0.24.1
|
|
4
|
+
|
|
5
|
+
- Managed services now pass their service name through container options by default, restoring process titles for forked and hybrid containers.
|
|
6
|
+
|
|
3
7
|
## v0.23.0
|
|
4
8
|
|
|
5
9
|
- `Async::Service::Generic.wrap` now checks for a `make_service(environment)` method on the evaluator before falling back to `service_class`. This allows environments to compose child environments and return a fully-constructed service without introducing a dedicated service class.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-service
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.24.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
|
+
- Udi Feldman
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain:
|
|
10
11
|
- |
|
|
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
134
|
- !ruby/object:Gem::Version
|
|
134
135
|
version: '0'
|
|
135
136
|
requirements: []
|
|
136
|
-
rubygems_version: 4.0.
|
|
137
|
+
rubygems_version: 4.0.10
|
|
137
138
|
specification_version: 4
|
|
138
139
|
summary: A service layer for Async.
|
|
139
140
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|