execute 0.1.23 → 0.1.24

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 +12 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 550d7688196080fd5688811a920c9776c6d2326c
4
- data.tar.gz: f8e7b6a5b169ec44944ba6e7aec5280f340384e7
3
+ metadata.gz: b28113ced8b010d381572d185379b3bf300d7007
4
+ data.tar.gz: 0203575907f47275bc2d26627ed8c13b41f6120b
5
5
  SHA512:
6
- metadata.gz: 858f5ad5b2d6d0c4a0f5592a20a5468a306ad03fe3e0072e74b1beaa754899ccaa14b95b4042ee2175a9f4768a2055c0692433cebb4ed25f29c24441d21e291c
7
- data.tar.gz: 226602f3216a140d555571a81e3df1b90dd05a575175b8c813a53e2073808a914520a181db30a5e64af88bb8e7a1a28310cb4475eea39bc6344ca7c948f3bf32
6
+ metadata.gz: d6c48031159ece03e145a8cb034159f917a66b4d7c2577551f99ae78bf8dbd2231ba0e79619e552c9c329072f0511127f5103cc51dd3783291509e36cde40c37
7
+ data.tar.gz: 459789548b0776501b03faa5845697231059e45825165391c5f10f160f5cb74f5a5a74b45c74a523d8dfea520fc1aedffb8ce2670dcfb6c8f578a2791bbac57e
data/lib/cmd.rb CHANGED
@@ -56,18 +56,18 @@ class CMD < Hash
56
56
  #
57
57
  # while thread.alive? means that we keep on
58
58
  # reading input until the child process ends
59
- Thread.new do
60
- while wait_thr.alive? do
61
- begin
62
- puts "HERE"
63
- c = $stdin.gets
64
- puts "char: #{c}"
65
- stdin.puts c
66
- rescue Interrupt, Errno::EINTR
67
- exit(1)
68
- end
69
- end
70
- end
59
+ #Thread.new do
60
+ # while wait_thr.alive? do
61
+ # #begin
62
+ # puts "HERE"
63
+ # c = STDIN.gets
64
+ # puts "char: #{c}"
65
+ # stdin.puts c
66
+ # #rescue Interrupt, Errno::EINTR
67
+ # # exit(1)
68
+ # #end
69
+ # end
70
+ #end
71
71
 
72
72
  wait_thr.join
73
73
  hash[:output] = output[:output].join unless(output[:output].empty?)
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.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall