execute 0.1.67 → 0.1.68
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: 387c6bb8e611b360b3d6c7aefe930311875ebd69
|
4
|
+
data.tar.gz: 01eacdd485eda793358765fa47296664a5ca2be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e35afe96d1c2d26206b5bfa9d0631c607c8fef04f765251bb5145fed0461d1a4840c0a8c2bd2fd8ff28633a0dd503c05371d26f974e168cd629c6e849e9007
|
7
|
+
data.tar.gz: 85f49d51be4752052d57c028ce7babf441f2f3abcea056c5eb28e606d52166de6bc293348502ec6bae299007f2e52841b62edb2a9caf5996fca21038e3eb3e3a
|
data/lib/execute.rb
CHANGED
@@ -111,9 +111,12 @@ class Execute < Hash
|
|
111
111
|
threads << Thread.new do
|
112
112
|
begin
|
113
113
|
end_loop = stop_threads
|
114
|
+
last_pass_time = Time.now
|
114
115
|
while wait_thr.alive? && !end_loop do
|
115
116
|
unless(stream.closed?)
|
116
|
-
if((char = stream.getc).nil?)
|
117
|
+
if(((char = stream.getc).nil?) ||
|
118
|
+
(Time.now - last_pass_time).to_f > 30))
|
119
|
+
last_pass_time = Time.now
|
117
120
|
sleep(0.1)
|
118
121
|
Thread.pass
|
119
122
|
else
|
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.68
|
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-02-
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|