async-service 0.8.0 → 0.9.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 +0 -0
- data/lib/async/service/environment.rb +11 -5
- data/lib/async/service/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1e2ef9fcbc4732f3683889f55acfd02fa632aa95189c0767c04c8b24f64eb52
|
4
|
+
data.tar.gz: debef0f6bdc887b83dc8ebf1dfbf63bf9ab0591a4b99a52a8c1aa6ccd47a419c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ec21ead9612856e07467c62d3d52fa3452ca7883455f9a67c78743f61a9db512063550356a2ca9b5e374313dfccc64dbe909205c8410b6efd8ccf2b52fc4cc4
|
7
|
+
data.tar.gz: 0aa73567ad8f19c62c5c630ae9c4bc02fa5c2ba253a4882326e08b9ce9090c14a4c73e29241320e280136aa23e5e783d6ff7f06b63a3806c2464717c067318db
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -7,20 +7,26 @@ module Async
|
|
7
7
|
module Service
|
8
8
|
class Environment
|
9
9
|
class Builder < BasicObject
|
10
|
-
def self.for(
|
11
|
-
|
10
|
+
def self.for(*facets, **values, &block)
|
11
|
+
top = ::Module.new
|
12
|
+
|
13
|
+
builder = self.new(top)
|
14
|
+
|
15
|
+
facets.each do |facet|
|
16
|
+
builder.include(facet)
|
17
|
+
end
|
12
18
|
|
13
19
|
values.each do |key, value|
|
14
20
|
if value.is_a?(::Proc)
|
15
|
-
|
21
|
+
builder.method_missing(key, &value)
|
16
22
|
else
|
17
|
-
|
23
|
+
builder.method_missing(key, value)
|
18
24
|
end
|
19
25
|
end
|
20
26
|
|
21
27
|
builder.instance_exec(&block) if block_given?
|
22
28
|
|
23
|
-
return
|
29
|
+
return top
|
24
30
|
end
|
25
31
|
|
26
32
|
def initialize(facet = ::Module.new)
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
7�-���c�5�h���>B���-Y���Գ����9����U�3csr�Z�d��q��!���m��6
|
2
|
+
\�5f��C̮s
|
3
|
+
zR7�exj��cz���J~Gĉ]���ᒆ�17=&N�F���WO��ci��ײg�}�H�#�Ḥ�}�b�-��IUR�9���s1������F�a^�:����P���)^Y�S��;��}
|
4
|
+
&���.ʢ����~7�^�M�}լ�0*������x��uD��=�K>ܵ������(!�$��+B5��1�»��0����+�Zؖ�9��ӏcU[�(�V>����?>�J�[c� ��R�}�!��r�au�Ym5�*�n��\����Q!d����CQ���
|