execute 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cmd.rb +7 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4900401b4c6ac3df5b9470840e13dc0fe2616ae0
4
- data.tar.gz: 9b3b724b5ed16bafa0c131cc98373fb238ae0ac4
3
+ metadata.gz: b05775fe15bbb404fe9d7008cfa90ff4a118cc65
4
+ data.tar.gz: a2e63d76e865a17b3ea6e243f6976401ec2384ea
5
5
  SHA512:
6
- metadata.gz: a389f1e7f09a41651ed7fe55431792e0d0367d8db9b06e4fee55131de3d58fcfb3a0b5cb6a6579ebe7f382bf5d7d7de05af67041b4f372faab0fbcb41ea5e78c
7
- data.tar.gz: eb5a70349d5bb408bca6b58c686246397c8339aa5af48495388f03a97d0d799da05b9d73171e1b852fa1824038348cd86cb7e2d206b557c1ccad98bd6f592b59
6
+ metadata.gz: 42cee1866a72fda8d7e84c32ecd543e3b083f4773601e678e9145d664c79735bb02689e050ef08e324c77c828137bbaca18de150ed8da71713f7cb8a9a5c77d5
7
+ data.tar.gz: b952f499601aa93fe1029e391ca57d943b3c3b0d4a085a3e5c08f19330e529372890fd3a0362c9032aec107905c030261ec0b76397e6ebd579bf9798d75caaf8
data/lib/cmd.rb CHANGED
@@ -58,11 +58,13 @@ class CMD < Hash
58
58
  # reading input until the child process ends
59
59
  Thread.new do
60
60
  while wait_thr.alive? do
61
- #begin
62
- stdin.puts $stdin.gets while wait_thr.alive?
63
- #rescue Interrupt, Errno::EINTR
64
- # exit(1)
65
- #end
61
+ begin
62
+ c = $stdin.gets
63
+ puts "char: #{c}"
64
+ stdin.puts c
65
+ rescue Interrupt, Errno::EINTR
66
+ exit(1)
67
+ end
66
68
  end
67
69
  end
68
70
 
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.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall