net-ssh-open3 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/net-ssh-open3.rb +4 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b6bedda7ce4102561aeba3aa822b37437e9648
|
4
|
+
data.tar.gz: 5d7890a747e3233c94f0ab34278b023c462149df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e43322e1cb7f093df7b4f6b0e292c892a0ebf990297bed8ee4bab0220c75e5b9cca2b6ec58d821eef135e935f3c3094b7ef83f04b463bd9ac45e392ad9319002
|
7
|
+
data.tar.gz: 348eb4fa3818695a04d7cad75288d5e42d5f51b607c95eaa4e73ad486745914a1353f9de3206e66b3664cf83248c89e9513834927821300465611c8aa0892844
|
data/lib/net-ssh-open3.rb
CHANGED
@@ -149,8 +149,7 @@ module Net::SSH
|
|
149
149
|
|
150
150
|
run_popen(*args,
|
151
151
|
stdin: stdin_data,
|
152
|
-
stdout: stdout
|
153
|
-
block_pipes: [stdout]) do |stdout, waiter_thread|
|
152
|
+
stdout: stdout) do |waiter_thread|
|
154
153
|
[stdout.string, waiter_thread.value]
|
155
154
|
end
|
156
155
|
end
|
@@ -163,8 +162,7 @@ module Net::SSH
|
|
163
162
|
run_popen(*args,
|
164
163
|
stdin: stdin_data,
|
165
164
|
stdout: stdout,
|
166
|
-
stderr: stdout
|
167
|
-
block_pipes: [stdout]) do |stdout, waiter_thread|
|
165
|
+
stderr: stdout) do |waiter_thread|
|
168
166
|
[stdout.string, waiter_thread.value]
|
169
167
|
end
|
170
168
|
end
|
@@ -177,8 +175,7 @@ module Net::SSH
|
|
177
175
|
run_popen(*args,
|
178
176
|
stdin: stdin_data,
|
179
177
|
stdout: stdout,
|
180
|
-
stderr: stderr
|
181
|
-
block_pipes: [stdout, stderr]) do |stdout, stderr, waiter_thread|
|
178
|
+
stderr: stderr) do |waiter_thread|
|
182
179
|
[stdout.string, stderr.string, waiter_thread.value]
|
183
180
|
end
|
184
181
|
end
|
@@ -320,7 +317,7 @@ module Net::SSH
|
|
320
317
|
|
321
318
|
channel.on_eof do
|
322
319
|
logger.debug('server reports EOF') if logger
|
323
|
-
[stdout, stderr].each { |io| io.close if
|
320
|
+
[stdout, stderr].each { |io| io.close if local_pipes.include?(io) && !io.closed? }
|
324
321
|
end
|
325
322
|
|
326
323
|
channel.on_close do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ssh-open3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Sheremet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|