execute 0.1.51 → 0.1.52

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/cmd.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33da98100d6d789e7ceb01995b8bb47629a206d4
4
- data.tar.gz: 4e003842eaf06a215299b26623fb11212ad51a26
3
+ metadata.gz: d6a15d8efb84c0bca96acd3832af4c228aa810ea
4
+ data.tar.gz: 9991f75eade05a6952209962673fb70db38c7dca
5
5
  SHA512:
6
- metadata.gz: 829d1c964b5fd8fccbf62b5a9de4a7f8731f16b2691270ea5a862ea81e33f1cf1f6774bfb13d0722303f69d410342aeda686dd4d050f8628cf0559c0a3795524
7
- data.tar.gz: 6966284e573565ffc0a5cf4085fc065c22a9f34ed0b07918dbfa773c888361bfa3001d1ca1386ca5a38f435ee41bed3333cfcf13791741bed0a1160b8ff56822
6
+ metadata.gz: 3d965bdfefdb32473e7f59d02b79ac2b09801f9197a0de65aa1cbb3c6e8f3338cdbdeaecd7ca3d59273a060466df9782b39700c77b85c20a64c83372a3228d56
7
+ data.tar.gz: d5d35ed94ed6a13428434913bd13ccf9fd361ca5e7b3bce4c16a9e41485ce0b65df9b79e477612ebe750f14dc16c366d70ad040534bbaa1e71b1eaf778f12920
data/lib/cmd.rb CHANGED
@@ -94,7 +94,7 @@ class CMD < Hash
94
94
  {:output => stdout,:error => stderr}.each do |key, stream|
95
95
  Thread.new do
96
96
  while wait_thr.alive? && !key?(:timed_out) do
97
- if(!(char = stream.getc).nil?)
97
+ if(!stream.closed? && !(char = stream.getc).nil?)
98
98
  case key
99
99
  when :output
100
100
  output << char
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.51
4
+ version: 0.1.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall