async-service 0.9.0 → 0.11.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/configuration.rb +6 -2
- data/lib/async/service/environment.rb +22 -1
- data/lib/async/service/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -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: ab226922c5d99a355fb56c80177597a351e13f8f2fdb7593c5296a4ff73b8cba
|
4
|
+
data.tar.gz: da727eefbbcdf323dde0a9ea28d61c658d269de220667981e799d52f0927609c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0fa9a8839ed9d7e2d2de5653e57c662fccb1aa7fed1a91530237ca1591c6129a5e38eb818e841b4df07cd6d65e43a3926aa7371b2b3f4a938d9df6aee381696
|
7
|
+
data.tar.gz: 845e2d4f873b316d2838120ec786c6bf9afd4941054e3d87894da2d607c57b840a828035505f7a281fe367261e22b0ae1f9a5b11fc6355a10c1131c153d7b706
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -23,9 +23,13 @@ module Async
|
|
23
23
|
return configuration
|
24
24
|
end
|
25
25
|
|
26
|
+
def self.for(*environments)
|
27
|
+
self.new(environments)
|
28
|
+
end
|
29
|
+
|
26
30
|
# Initialize an empty configuration.
|
27
|
-
def initialize
|
28
|
-
@environments =
|
31
|
+
def initialize(environments = [])
|
32
|
+
@environments = environments
|
29
33
|
end
|
30
34
|
|
31
35
|
attr :environments
|
@@ -24,7 +24,24 @@ module Async
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
|
27
|
+
# This allows for a convenient syntax, e.g.:
|
28
|
+
#
|
29
|
+
# Builder.for do
|
30
|
+
# foo 42
|
31
|
+
# end
|
32
|
+
#
|
33
|
+
# or:
|
34
|
+
#
|
35
|
+
# Builder.for do |builder|
|
36
|
+
# builder.foo 42
|
37
|
+
# end
|
38
|
+
if block_given?
|
39
|
+
if block.arity == 0
|
40
|
+
builder.instance_exec(&block)
|
41
|
+
else
|
42
|
+
yield builder
|
43
|
+
end
|
44
|
+
end
|
28
45
|
|
29
46
|
return top
|
30
47
|
end
|
@@ -133,6 +150,10 @@ module Async
|
|
133
150
|
return @cache
|
134
151
|
end
|
135
152
|
|
153
|
+
def to_json(...)
|
154
|
+
self.to_h.to_json(...)
|
155
|
+
end
|
156
|
+
|
136
157
|
def [](key)
|
137
158
|
self.__send__(key)
|
138
159
|
end
|
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.11.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-03-
|
40
|
+
date: 2024-03-24 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: async
|
metadata.gz.sig
CHANGED
Binary file
|