async-container 0.16.0 → 0.16.1
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 +4 -4
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/examples/async.rb +1 -0
- data/examples/channel.rb +1 -0
- data/examples/channels/client.rb +1 -0
- data/examples/container.rb +1 -0
- data/examples/isolate.rb +1 -0
- data/examples/minimal.rb +1 -0
- data/examples/test.rb +1 -0
- data/examples/threads.rb +1 -0
- data/examples/title.rb +1 -0
- data/examples/udppipe.rb +1 -0
- data/lib/async/container.rb +2 -0
- data/lib/async/container/best.rb +2 -0
- data/lib/async/container/channel.rb +2 -0
- data/lib/async/container/controller.rb +2 -0
- data/lib/async/container/error.rb +2 -0
- data/lib/async/container/forked.rb +2 -0
- data/lib/async/container/generic.rb +2 -0
- data/lib/async/container/group.rb +2 -0
- data/lib/async/container/hybrid.rb +2 -0
- data/lib/async/container/keyed.rb +2 -0
- data/lib/async/container/notify.rb +1 -0
- data/lib/async/container/notify/client.rb +1 -0
- data/lib/async/container/notify/pipe.rb +3 -2
- data/lib/async/container/notify/server.rb +1 -0
- data/lib/async/container/notify/socket.rb +1 -0
- data/lib/async/container/process.rb +2 -0
- data/lib/async/container/statistics.rb +2 -0
- data/lib/async/container/thread.rb +2 -0
- data/lib/async/container/threaded.rb +2 -0
- data/lib/async/container/version.rb +3 -1
- data/spec/async/container/controller_spec.rb +5 -3
- data/spec/async/container/forked_spec.rb +2 -0
- data/spec/async/container/hybrid_spec.rb +2 -0
- data/spec/async/container/notify/notify.rb +1 -0
- data/spec/async/container/notify/pipe_spec.rb +2 -0
- data/spec/async/container/notify_spec.rb +2 -0
- data/spec/async/container/shared_examples.rb +2 -0
- data/spec/async/container/threaded_spec.rb +2 -0
- data/spec/async/container_spec.rb +2 -0
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efe790ddbf87b5df04f8b9e441b27fda5fb1cb69cc6fa2b800a64d3f6af46f24
|
4
|
+
data.tar.gz: 6500f4e2b6d21d8f78a6f99065c0af795694f003c15f1f265634be36a4c8f229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d27b92c0e9333dd121f5f5d65be1249073d1e06e55d018f3d91c0670feb14b8463629783c0fe74c416e8f6df1d08f1c84270a5bc19ec040c68c6778da8bdf02d
|
7
|
+
data.tar.gz: ddb9d010c191f469347a759ff2c90fd8d1cab8fddcb0ab6245357098bb1d576843fd351c767ea1dd9d8302dabe549fef04444e090960e0c9ee3d173ff5cbeed4
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/examples/async.rb
CHANGED
data/examples/channel.rb
CHANGED
data/examples/channels/client.rb
CHANGED
data/examples/container.rb
CHANGED
data/examples/isolate.rb
CHANGED
data/examples/minimal.rb
CHANGED
data/examples/test.rb
CHANGED
data/examples/threads.rb
CHANGED
data/examples/title.rb
CHANGED
data/examples/udppipe.rb
CHANGED
data/lib/async/container.rb
CHANGED
data/lib/async/container/best.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
#
|
3
4
|
# Copyright, 2020, by Samuel G. D. Williams. <http://www.codeotaku.com>
|
4
5
|
#
|
@@ -81,10 +82,10 @@ module Async
|
|
81
82
|
send(ready: true, **message)
|
82
83
|
end
|
83
84
|
|
84
|
-
def
|
85
|
+
def restarting!(**message)
|
85
86
|
message[:ready] = false
|
86
87
|
message[:reloading] = true
|
87
|
-
message[:status] ||= "
|
88
|
+
message[:status] ||= "Restarting..."
|
88
89
|
|
89
90
|
send(**message)
|
90
91
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com>
|
2
4
|
#
|
3
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -20,6 +22,6 @@
|
|
20
22
|
|
21
23
|
module Async
|
22
24
|
module Container
|
23
|
-
VERSION = "0.16.
|
25
|
+
VERSION = "0.16.1"
|
24
26
|
end
|
25
27
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright, 2019, by Samuel G. D. Williams. <http://www.codeotaku.com>
|
2
4
|
#
|
3
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -31,18 +33,18 @@ RSpec.describe Async::Container::Controller do
|
|
31
33
|
container.spawn(key: "test") do |instance|
|
32
34
|
instance.ready!
|
33
35
|
|
34
|
-
sleep(0.
|
36
|
+
sleep(0.2)
|
35
37
|
|
36
38
|
@output.write(".")
|
37
39
|
@output.flush
|
38
40
|
|
39
|
-
sleep(0.
|
41
|
+
sleep(0.4)
|
40
42
|
end
|
41
43
|
|
42
44
|
container.spawn do |instance|
|
43
45
|
instance.ready!
|
44
46
|
|
45
|
-
sleep(0.
|
47
|
+
sleep(0.3)
|
46
48
|
|
47
49
|
@output.write(",")
|
48
50
|
@output.flush
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-container
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01
|
11
|
+
date: 2020-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: process-group
|