execute 0.1.63 → 0.1.64

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: 3e0c68a2ea9b098c87b6fac99fea901adaf089a4
4
- data.tar.gz: fcac1ab33e9449bfe83e95e5502f6ffd7d8292ac
3
+ metadata.gz: f292e7da56b9d559da658d511a6d2bec12657938
4
+ data.tar.gz: 045a2bccfc873bb5a0a9e433f50863959dd37ff6
5
5
  SHA512:
6
- metadata.gz: 81a7df676f38711d4a81b1b457b7e09f1f184234cd6f71da601b055b0f9c71aefc3e5b2f0634e157e4c6dcb1d80b450316e792bdfd422b5dd31b66a70cb4f133
7
- data.tar.gz: 11b36f0367d8d714b65fd008343cfdb54cc2ac12ee569a93ac8a28d69e3601cd911ecd98b6279eb1d8dd805355e6f240eceb391e2b1963f43c311aa2ab75c4b6
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
- unless((char = stream.getc).nil?)
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.63
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-25 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler