async-container 0.16.2 → 0.16.3
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/examples/channel.rb +1 -1
- data/examples/channels/client.rb +3 -4
- data/examples/minimal.rb +3 -3
- data/lib/async/container/notify/pipe.rb +4 -3
- data/lib/async/container/version.rb +1 -1
- 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: e7adf1896a47b233182c937ab7b2af7dc5c096580ebba30fad4c6153f1af26c0
|
4
|
+
data.tar.gz: f84bdd5f8bdc921449c814788a093342e7508cb1b449b42cfc3994069c2d350a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fd17ac64451b53a6ce97c057c2cc150b2e17a7540252770fa2e0ab9a3652ed27acbe1250a218e9ec6f14ef95471d0004855870572da666f77d1b9d7776b15e8
|
7
|
+
data.tar.gz: a9503f7eb323e982812103fb313e1dff3edbc558479240a97b451f3458b34e9f85415a2e1db505573cfa6f4241a354fcfd5f8d767dab14af15f1602a77de48a0
|
data/examples/channel.rb
CHANGED
data/examples/channels/client.rb
CHANGED
@@ -11,13 +11,14 @@ require 'async/container'
|
|
11
11
|
# end
|
12
12
|
#
|
13
13
|
# def << object
|
14
|
-
#
|
14
|
+
# :object
|
15
15
|
# end
|
16
16
|
#
|
17
17
|
# def [] key
|
18
18
|
# return
|
19
|
+
# end
|
19
20
|
# end
|
20
|
-
#
|
21
|
+
#
|
21
22
|
# class Proxy < BasicObject
|
22
23
|
# def initialize(bus, name)
|
23
24
|
# @bus = bus
|
@@ -62,8 +63,6 @@ require 'async/container'
|
|
62
63
|
# class Channel
|
63
64
|
# def self.pipe
|
64
65
|
# input, output = Async::IO.pipe
|
65
|
-
#
|
66
|
-
#
|
67
66
|
# end
|
68
67
|
#
|
69
68
|
# def initialize(input, output)
|
data/examples/minimal.rb
CHANGED
@@ -39,7 +39,7 @@ class Threaded
|
|
39
39
|
@waiter = nil
|
40
40
|
end
|
41
41
|
|
42
|
-
|
42
|
+
@status
|
43
43
|
end
|
44
44
|
|
45
45
|
protected
|
@@ -86,9 +86,9 @@ class Forked
|
|
86
86
|
|
87
87
|
def wait
|
88
88
|
unless @status
|
89
|
-
|
89
|
+
_pid, @status = ::Process.wait(@pid)
|
90
90
|
end
|
91
91
|
|
92
|
-
|
92
|
+
@status
|
93
93
|
end
|
94
94
|
end
|
@@ -56,9 +56,10 @@ module Async
|
|
56
56
|
environment[NOTIFY_PIPE] = notify_pipe.to_s
|
57
57
|
|
58
58
|
# Use stdout if it's not redirected:
|
59
|
-
|
60
|
-
|
61
|
-
|
59
|
+
# This can cause issues if the user expects stdout to be connected to a terminal.
|
60
|
+
# elsif !options.key?(:out)
|
61
|
+
# options[:out] = @io
|
62
|
+
# environment[NOTIFY_PIPE] = "1"
|
62
63
|
|
63
64
|
# Use fileno 3 if it's available:
|
64
65
|
elsif !options.key?(3)
|
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.3
|
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-03-
|
11
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: process-group
|