execute 0.1.63 → 0.1.64
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/execute.rb +4 -1
- 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: f292e7da56b9d559da658d511a6d2bec12657938
|
4
|
+
data.tar.gz: 045a2bccfc873bb5a0a9e433f50863959dd37ff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff0c210b446a4faf9a55b23a1a8a0cf4b9e8b558312057d30153e26dfb64b517b22f8fa7b746d79797d70afff35d701fb4af2e589e36b77c2d9b4f1b529759c1
|
7
|
+
data.tar.gz: 1cb83faf1d62dc10901fd2f304d8f95aa8d089d67f45ff919d7e5cc66e0b7215808ffccd8f5686c0b667f5e3971625738975c0c837f8e9af2064c4e041db3141
|
data/lib/execute.rb
CHANGED
@@ -87,6 +87,7 @@ class Execute < Hash
|
|
87
87
|
interrupt
|
88
88
|
Thread.stop
|
89
89
|
end
|
90
|
+
sleep(1)
|
90
91
|
end
|
91
92
|
end
|
92
93
|
end
|
@@ -96,7 +97,9 @@ class Execute < Hash
|
|
96
97
|
begin
|
97
98
|
while wait_thr.alive? && !key?(:timed_out) && !@stop_threads do
|
98
99
|
unless(stream.closed?)
|
99
|
-
|
100
|
+
if((char = stream.getc).nil?)
|
101
|
+
sleep(0.1)
|
102
|
+
else
|
100
103
|
case key
|
101
104
|
when :output
|
102
105
|
output << char
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: execute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.64
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Marshall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|