execute 0.1.20 → 0.1.21

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 +5 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dfc9c1ddde387fbe5d1007431ae313171bfa0a4
4
- data.tar.gz: 12df9f497fbb12b280e1bbe31baa1fd19faa4d7c
3
+ metadata.gz: 4900401b4c6ac3df5b9470840e13dc0fe2616ae0
4
+ data.tar.gz: 9b3b724b5ed16bafa0c131cc98373fb238ae0ac4
5
5
  SHA512:
6
- metadata.gz: 6aed75ecd990c86282d4e4f8bd46fa9364d7b1f816198a1e554a6b3449abe5032dd52f63021376af224824f67a16be040b0bf998702dc253d96e0dea61625181
7
- data.tar.gz: 51f719d32192612ab418892447ef28536612bb558ae86e4e9ffede54a830b4fe907c20b7abbbe3a10f30f8ffd2ccded3bbbd533e413ac21c75b95d405ea0dc3d
6
+ metadata.gz: a389f1e7f09a41651ed7fe55431792e0d0367d8db9b06e4fee55131de3d58fcfb3a0b5cb6a6579ebe7f382bf5d7d7de05af67041b4f372faab0fbcb41ea5e78c
7
+ data.tar.gz: eb5a70349d5bb408bca6b58c686246397c8339aa5af48495388f03a97d0d799da05b9d73171e1b852fa1824038348cd86cb7e2d206b557c1ccad98bd6f592b59
data/lib/cmd.rb CHANGED
@@ -58,17 +58,17 @@ 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
61
+ #begin
62
62
  stdin.puts $stdin.gets while wait_thr.alive?
63
- rescue Interrupt, Errno::EINTR
64
- exit(1)
65
- end
63
+ #rescue Interrupt, Errno::EINTR
64
+ # exit(1)
65
+ #end
66
66
  end
67
67
  end
68
68
 
69
69
  wait_thr.join
70
70
  hash[:output] = output[:output].join unless(output[:output].empty?)
71
- hash[:error] = output[:error].join unless(output[:output].empty?)
71
+ hash[:error] = output[:error].join unless(output[:error].empty?)
72
72
  hash[:exit_code] = wait_thr.value.to_i
73
73
  end
74
74
  rescue Exception => e
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.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall