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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98f13081542982df8eeea93fc2ddf21f442693d1d4f15c48a272677640890edc
4
- data.tar.gz: de30016e74b6a9bfd908355c4c7948f7d25c3deb11c1cb96d5b1636472a839bf
3
+ metadata.gz: c48a3ae419ebbc66e273b3ed61f60e51c3f475fa53d5894cc99a937e197da631
4
+ data.tar.gz: 28d03f15ea69f6a8086201bfa5e608847a6f73b4ae07cdee4773da3e02e21c8c
5
5
  SHA512:
6
- metadata.gz: 934012973a75ad970bcfed1de05d17895641dd21f438b78989c019f83c68770358c6b06f2cd153767429e8156b2d15ef0be02d84a74fc01a0d9fc9ce865d6482
7
- data.tar.gz: 3a2880a72bd22554c47cce146a5c497e1a12173a967df0650983acaa25c79e20c9cf45bc7bc879fd5cc45cc27956c57afcd3f32f4b6c0dd16ed1d5d9452fbcaa
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
- "�eB3U���UL���=��Y������V ��Q�i7P�`=o'6K�`�J���$���򕎒�8�����$=$��fz�$�;�[��U���E"!H��� ^`����6q/C��$t����N�1/Q#l|S�/�`H�}+|Ԏ���԰Xo��%h���od�dS�W���2]�h�Ԛ��V/WwY#pj q��
2
+ ��/�w���Z"�j��ģ׆q�>ٽ~�+��{������mxn����ß 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-��n fH�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.to_h.each do |key, value|
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
@@ -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)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Service
8
- VERSION = "0.1.0"
8
+ VERSION = "0.2.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.1.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-19 00:00:00.000000000 Z
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
- bq��3���v�k?ˎ�ݔChbe���ݟ0���"Eˈ��>�����}{p�UҜ�e
2
- ��H�������
1
+ ��^B*9��O*T�./����� �p�U( a�(v�g�E�6ە��EͮN3>�B7Tn+�r>z�n�����B˙؊s\���{C���0��uOK�
2
+ Ȓ��K�6]h*�
3
+ ���'6�