distributor 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,10 +57,10 @@ class Distributor::Server
57
57
  def run(command)
58
58
  ch = @multiplexer.reserve
59
59
 
60
- rd, wr, pid = PTY.spawn(command)
60
+ pipe = IO.popen(command, "w+")
61
61
 
62
62
  # handle data incoming from process
63
- @connector.handle(rd) do |io|
63
+ @connector.handle(pipe) do |io|
64
64
  begin
65
65
  @multiplexer.output(ch, io.readpartial(4096))
66
66
  rescue EOFError
@@ -72,7 +72,7 @@ class Distributor::Server
72
72
  # handle data incoming on the multiplexer
73
73
  @connector.handle(@multiplexer.reader(ch)) do |input_io|
74
74
  data = input_io.readpartial(4096)
75
- wr.write data
75
+ pipe.write data
76
76
  end
77
77
 
78
78
  ch
@@ -1,5 +1,5 @@
1
1
  module Distributor
2
2
 
3
- VERSION = "0.6.0"
3
+ VERSION = "0.7.0"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distributor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-19 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70292678121600 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: 0.13.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70292678121600
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.13.6
25
30
  description: TCP Multiplexer
26
31
  email: ddollar@gmail.com
27
32
  executables: []
@@ -57,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
62
  version: '0'
58
63
  requirements: []
59
64
  rubyforge_project:
60
- rubygems_version: 1.8.11
65
+ rubygems_version: 1.8.23
61
66
  signing_key:
62
67
  specification_version: 3
63
68
  summary: TCP Multiplexer