async-service 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data/bin/async-service +3 -1
- data/lib/async/service/environment.rb +5 -1
- data/lib/async/service/loader.rb +4 -0
- data/lib/async/service/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48a3ae419ebbc66e273b3ed61f60e51c3f475fa53d5894cc99a937e197da631
|
4
|
+
data.tar.gz: 28d03f15ea69f6a8086201bfa5e608847a6f73b4ae07cdee4773da3e02e21c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 272abe889e5a62638c237cc263427e107229f6bca264ab1bf8b6653d612b827e8c906f0fd5e393ea3e43e253f578c47e1ae4501107f589b84ee369abd3349b87
|
7
|
+
data.tar.gz: 25d42444e98c510605bf42d20fde8b66851fa92d14bbd170528f6fcc0dc8a6a462a298d57e7802e4d2b68f182de3b14997f1afe3b631cc7ee1647e4ceee94346
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
�Q3`������ u�,��rm�h����}� �~Y��~��8�=yN�����=�����q�r��:���d�Ȟ�+C�"�̿��+�Z�Os�5C�쁦�}VE�c~R9������ �-�V���酻r��M��#M�
|
2
1
|
���j��+�5����o�� �(���`=�r
|
3
|
-
"�
|
2
|
+
��/�w���Z"�j��ģ׆q�>ٽ~�+��{������m�xn����ß�1��T��B���`�`�{<���xK(V�dؿ�u�t�9�Y�߽L(�/l�T�\>�sn��քXXMy�������w��
|
3
|
+
)av��d�Ѿ��.tL��$���P=n�G�8֙ߊ���D�n/Ӟ�����i�e�K�aW�]jR���]��oX����C��Ƴ^��6��W�s�{Z�T���ԥ�Q���P6(��v�Y(�8b-��nfH�at���z����X�3+0�<�x���Ӧ`�It��ސn����
|
4
|
+
�/[�.p����5���-BJra����+�P\A$w�<�I�-}��dyefI�ʳ��
|
data/bin/async-service
CHANGED
@@ -11,14 +11,16 @@ end
|
|
11
11
|
controller = Async::Service::Controller.new(configuration.services)
|
12
12
|
|
13
13
|
begin
|
14
|
+
require 'bundler'
|
14
15
|
Bundler.require(:preload)
|
15
|
-
rescue Bundler::GemfileNotFound
|
16
|
+
rescue Bundler::GemfileNotFound, LoadError
|
16
17
|
# Ignore.
|
17
18
|
end
|
18
19
|
|
19
20
|
if Process.respond_to?(:warmup)
|
20
21
|
Process.warmup
|
21
22
|
elsif GC.respond_to?(:compact)
|
23
|
+
3.times{GC.start}
|
22
24
|
GC.compact
|
23
25
|
end
|
24
26
|
|
@@ -20,7 +20,7 @@ module Async
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def include(target)
|
23
|
-
target.
|
23
|
+
target.each do |key, value|
|
24
24
|
@cache[key] = value
|
25
25
|
end
|
26
26
|
end
|
@@ -119,6 +119,10 @@ module Async
|
|
119
119
|
Evaluator.new(builder.to_h)
|
120
120
|
end
|
121
121
|
|
122
|
+
def each(&block)
|
123
|
+
builder.to_h.each(&block)
|
124
|
+
end
|
125
|
+
|
122
126
|
def to_h
|
123
127
|
evaluator.to_h
|
124
128
|
end
|
data/lib/async/service/loader.rb
CHANGED
@@ -38,6 +38,10 @@ module Async
|
|
38
38
|
loader.instance_eval(File.read(path), path)
|
39
39
|
end
|
40
40
|
|
41
|
+
def load_file(path)
|
42
|
+
Loader.load_file(@configuration, File.expand_path(path, @root))
|
43
|
+
end
|
44
|
+
|
41
45
|
# Create an environment.
|
42
46
|
def environment(**initial, &block)
|
43
47
|
Environment.new(**initial, &block)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
38
38
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date: 2024-02-
|
40
|
+
date: 2024-02-20 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: async
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
��^B*9��O*T�./����� �p�U(a�(v�g�E�6ە��EͮN�3>�B7Tn+�r>z�n�����B˙؊s\���{C���0��u�OK�
|
2
|
+
Ȓ��K�6]h*�
|
3
|
+
���'6�
|