async-service 0.14.0 → 0.14.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/context/best-practices.md +1 -1
- data/context/service-architecture.md +3 -3
- data/lib/async/service/loader.rb +0 -2
- data/lib/async/service/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: 89fe1d184a09d9ded720abd6de21db5b499eb60aa50f24401264dc65213e0e1a
|
4
|
+
data.tar.gz: '0208be218dd12d5ad922cd830a304b53086494eb66f9dd2cda984758589677b4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df3091625c43fff8e041d194fe64c0068e5e907b896ecd882f1682506890d05f04e7cb8606a0de13fa3bcdae28f89356c6720b31d0de195370c06bc952fd8680
|
7
|
+
data.tar.gz: c1a424f264717708460ab5216c6328d3fe946a0ea8ab56022a0b6a18c57afc8cac7872211dd836f260ba5e53460297a6be5dce4d56b43edc7911dbb437c88060
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/context/best-practices.md
CHANGED
@@ -4,7 +4,7 @@ This guide outlines recommended patterns and practices for building robust, main
|
|
4
4
|
|
5
5
|
## Application Structure
|
6
6
|
|
7
|
-
If you are creating an application that runs services, you should define a top level `services.rb` file
|
7
|
+
If you are creating an application that runs services, you should define a top level `services.rb` file that includes all your service configurations. This file serves as the main entry point for your services. If you are specifically working with the Falcon web server, this file is typically called `falcon.rb` for historical reasons.
|
8
8
|
|
9
9
|
### Service Configuration
|
10
10
|
|
@@ -13,7 +13,7 @@ This guide explains the key architectural components of `async-service` and how
|
|
13
13
|
|
14
14
|
## Environment
|
15
15
|
|
16
|
-
The {ruby Async::Service::Environment} represents a lazy-evaluated chain of key-value pairs. It handles
|
16
|
+
The {ruby Async::Service::Environment} represents a lazy-evaluated chain of key-value pairs. It handles configuration storage, lazy evaluation of computed values, and composition through module inclusion to create flexible, reusable service configurations.
|
17
17
|
|
18
18
|
### Configuration Storage
|
19
19
|
|
@@ -82,7 +82,7 @@ end
|
|
82
82
|
|
83
83
|
## Service
|
84
84
|
|
85
|
-
The {ruby Async::Service::Generic} represents the service implementation layer. It handles
|
85
|
+
The {ruby Async::Service::Generic} represents the service implementation layer. It handles the actual business logic of your services, provides access to configuration through environment evaluators, and manages the service lifecycle including startup, execution, and shutdown phases.
|
86
86
|
|
87
87
|
### Business Logic
|
88
88
|
|
@@ -172,7 +172,7 @@ end
|
|
172
172
|
|
173
173
|
## Configuration
|
174
174
|
|
175
|
-
The {ruby Async::Service::Configuration} represents the top-level orchestration layer. It handles
|
175
|
+
The {ruby Async::Service::Configuration} represents the top-level orchestration layer. It handles service definition and registration, provides service discovery and management capabilities, supports loading configurations from files, and enables introspection of defined services and their settings.
|
176
176
|
|
177
177
|
### Service Definitions
|
178
178
|
|
data/lib/async/service/loader.rb
CHANGED
@@ -38,8 +38,6 @@ module Async
|
|
38
38
|
loader.instance_eval(File.read(path), path)
|
39
39
|
end
|
40
40
|
|
41
|
-
# Load a file relative to the loader's root directory.
|
42
|
-
# @parameter path [String] The path to the file to load.
|
43
41
|
def load_file(path)
|
44
42
|
Loader.load_file(@configuration, File.expand_path(path, @root))
|
45
43
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|