execute 0.1.58 → 0.1.60

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 +5 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37f29b3a878d4acff03622c5eed238922d02292e
4
- data.tar.gz: 4b516ef0b62e2349725bac77b632a3f733f5b254
3
+ metadata.gz: 8ef06380e0ee0edf326fa8418bc8c2c8b49b646b
4
+ data.tar.gz: 5e19c0139037ea6b21b88f66b66bc8cf6210913c
5
5
  SHA512:
6
- metadata.gz: 1371a6ce6f5e18fd29d17360e973451045fc9d4ce16c0cafaeca0e20beb90510db623ba86eff162211d33fb751a2bcd847b72ec3c8fec4f4c63ddf5b8fcfcdd2
7
- data.tar.gz: 05723356ca9146548d7a9c0ba2f2e2b176f31e6ab22e7513b22c00f29f80eb9ea32c414df0b03509cbc460696e8a9a5b973bd66256374411be1923fbb24e43e0
6
+ metadata.gz: 235a92e95e683b3c007fe903f7cb3a4bca903897ae321a4e5236a33b7366ead853904e4a89b029f116f13b4080a7b05295827bed4aa8e7135c318767a622e7fb
7
+ data.tar.gz: 9d43f1145228df94a3ebd8a5197211bf563be3fe96afb533887ae6a37f6f1e580d093d5b260ee689b42b1e3555aeebc0ccb0c15ef8df9570a5e3297e0492ef65
data/lib/cmd.rb CHANGED
@@ -49,8 +49,8 @@ class CMD < Hash
49
49
  end
50
50
 
51
51
  puts self[:command] if(self[:echo_command] || self[:debug])
52
- #call_popen
53
- call_capture
52
+ call_popen
53
+ #call_capture
54
54
 
55
55
  if(self[:debug])
56
56
  puts "command: #{self[:command]}"
@@ -117,6 +117,9 @@ class CMD < Hash
117
117
  self[:error] = error unless(error.empty?)
118
118
  self[:exit_code] = wait_thr.value.to_i
119
119
  end
120
+ rescue Interrupt => e
121
+ interrupt
122
+ raise e
120
123
  rescue Exception => e
121
124
  self[:error] = "#{self[:error]}\nException: #{e.to_s}"
122
125
  self[:exit_code]=1 unless(self[:exit_code].nil? || (self[:exit_code] == 0))
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.58
4
+ version: 0.1.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall