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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2793bfea616c3829e4e892c854772aba2ace1b28bc425fa792c190882e6290f
4
- data.tar.gz: cd78711d9c21080560d2ed175c240a5cd5640b185f73a8aff93f431f46acb89a
3
+ metadata.gz: e7adf1896a47b233182c937ab7b2af7dc5c096580ebba30fad4c6153f1af26c0
4
+ data.tar.gz: f84bdd5f8bdc921449c814788a093342e7508cb1b449b42cfc3994069c2d350a
5
5
  SHA512:
6
- metadata.gz: 7806e094721c20aa4f160b3505dfe6f21792d96f4e6d697c6f4670990a11ce7a6c03eeed22ef381f229d2014478b935bcf5e4af036a650fa1849f8fa6d6cb560
7
- data.tar.gz: 744567b07a9aedfc02ad12e06f4620013e8345a260970e78c88fd39a4e4a90c7d4fcc691724c94009f3b9eb2ead81948139223d8a28b3c9f4b4ca3afdcbd69bd
6
+ metadata.gz: 2fd17ac64451b53a6ce97c057c2cc150b2e17a7540252770fa2e0ab9a3652ed27acbe1250a218e9ec6f14ef95471d0004855870572da666f77d1b9d7776b15e8
7
+ data.tar.gz: a9503f7eb323e982812103fb313e1dff3edbc558479240a97b451f3458b34e9f85415a2e1db505573cfa6f4241a354fcfd5f8d767dab14af15f1602a77de48a0
data/examples/channel.rb CHANGED
@@ -13,7 +13,7 @@ class Channel
13
13
 
14
14
  def receive
15
15
  if data = @in.gets
16
- return JSON.parse(data, symbolize_names: true)
16
+ JSON.parse(data, symbolize_names: true)
17
17
  end
18
18
  end
19
19
 
@@ -11,13 +11,14 @@ require 'async/container'
11
11
  # end
12
12
  #
13
13
  # def << object
14
- # return :object
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
- return @status
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
- pid, @status = ::Process.wait(@pid)
89
+ _pid, @status = ::Process.wait(@pid)
90
90
  end
91
91
 
92
- return @status
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
- elsif !options.key?(:out)
60
- options[:out] = @io
61
- environment[NOTIFY_PIPE] = "1"
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)
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module Container
25
- VERSION = "0.16.2"
25
+ VERSION = "0.16.3"
26
26
  end
27
27
  end
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: process-group