execute 0.1.67 → 0.1.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/execute.rb +4 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f400a72ed951d57586f00ead9719775c1306c0ad
4
- data.tar.gz: 4a0b12e141723950038c9b096987ec21bfa3b3a3
3
+ metadata.gz: 387c6bb8e611b360b3d6c7aefe930311875ebd69
4
+ data.tar.gz: 01eacdd485eda793358765fa47296664a5ca2be6
5
5
  SHA512:
6
- metadata.gz: f4bdb4436e67cf1a4129018dd5ded58bd1f6c8580e9e05a3c88d73b056c436db6074dcba294ac501cc9ceffd1770a30f01aa262482f1f18f1d8a01b6cb0549cf
7
- data.tar.gz: 5f2bad414bce3ccd732c8144083ea5cd2a9c2b71280915189204d13f1ade0e8bc0d3455060daa8b4de43aca34f7cf864bd6fa4473ec92a52adebb739c85b6a9e
6
+ metadata.gz: 65e35afe96d1c2d26206b5bfa9d0631c607c8fef04f765251bb5145fed0461d1a4840c0a8c2bd2fd8ff28633a0dd503c05371d26f974e168cd629c6e849e9007
7
+ data.tar.gz: 85f49d51be4752052d57c028ce7babf441f2f3abcea056c5eb28e606d52166de6bc293348502ec6bae299007f2e52841b62edb2a9caf5996fca21038e3eb3e3a
@@ -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.67
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-02 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler