async-service 0.9.0 → 0.10.0

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: d1e2ef9fcbc4732f3683889f55acfd02fa632aa95189c0767c04c8b24f64eb52
4
- data.tar.gz: debef0f6bdc887b83dc8ebf1dfbf63bf9ab0591a4b99a52a8c1aa6ccd47a419c
3
+ metadata.gz: b0b675712917a6e60c73eb1365551f672e2d64bd3f452803fbc260061be33043
4
+ data.tar.gz: fad370b868d9f4b66cc9a2f5c0ca24642a5888f927f5a1a4735505e7f5fc848c
5
5
  SHA512:
6
- metadata.gz: 0ec21ead9612856e07467c62d3d52fa3452ca7883455f9a67c78743f61a9db512063550356a2ca9b5e374313dfccc64dbe909205c8410b6efd8ccf2b52fc4cc4
7
- data.tar.gz: 0aa73567ad8f19c62c5c630ae9c4bc02fa5c2ba253a4882326e08b9ce9090c14a4c73e29241320e280136aa23e5e783d6ff7f06b63a3806c2464717c067318db
6
+ metadata.gz: 3cbe624d6f4b5c3c754935b828ee5957aabe25fd72fb275d6eef7711b36c31a97c4276694a7b3e5280d93458435cff70d5cb7593b7a9fa6708a86c84b48cc033
7
+ data.tar.gz: edc1cc618ece20772be304b32cf86720c0d2607b45076808d04829a24d2eddbd6f4ead009b4d74fe965f60bb28af3101296af0574e45eeb42f6b5402fbf42362
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
@@ -133,6 +133,10 @@ module Async
133
133
  return @cache
134
134
  end
135
135
 
136
+ def to_json(...)
137
+ self.to_h.to_json(...)
138
+ end
139
+
136
140
  def [](key)
137
141
  self.__send__(key)
138
142
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Service
8
- VERSION = "0.9.0"
8
+ VERSION = "0.10.0"
9
9
  end
10
10
  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.9.0
4
+ version: 0.10.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-22 00:00:00.000000000 Z
40
+ date: 2024-03-23 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: async
metadata.gz.sig CHANGED
Binary file