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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f7f1e1833ae119be22f91c6c84073871863a49269b3173a9ed0506dbdb7afc3
4
- data.tar.gz: a05e566aa7668b42991189b7bcea2f8e9e298a4a51545880e965e82256ac7d8e
3
+ metadata.gz: b5fa1e0b807079efcf1c13c43e5bc35f12fe6959d8415b82fdae1918d797d593
4
+ data.tar.gz: 2b4117db3c442078b549b75ba5ab6e03af7bf78e62827fc31e2c5b21f674083b
5
5
  SHA512:
6
- metadata.gz: 64b72fff461e46bf290c993b0fbe2ca03a7014f4cecbf0af35bceb32e5303626a62bfdeb4f2bf2fe78ae07c763939ad5830e3613881af89d9b5f80e123fa20fb
7
- data.tar.gz: 6e64b02a88d0bf6b07fe228cf125c1b6864f9f29d589e2c828b7bd6733a154b2c40f4ac7e83b4f715d28281d2284a331e13669925f81ff0bed1025df63d0aa76
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 = true)
95
+ def stop(graceful = @graceful_stop)
95
96
  @services.each do |service|
96
97
  begin
97
98
  service.stop
@@ -36,6 +36,7 @@ module Async
36
36
  # @returns [Hash] The options for the container.
37
37
  def container_options
38
38
  {
39
+ name: self.name,
39
40
  restart: true,
40
41
  count: self.count,
41
42
  startup_timeout: self.startup_timeout,
@@ -7,6 +7,6 @@
7
7
  module Async
8
8
  # @namespace
9
9
  module Service
10
- VERSION = "0.23.0"
10
+ VERSION = "0.24.1"
11
11
  end
12
12
  end
data/license.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # MIT License
2
2
 
3
3
  Copyright, 2024-2026, by Samuel Williams.
4
+ Copyright, 2026, by Udi Feldman.
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
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.23.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.6
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