execute 0.1.43 → 0.1.44

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 +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73b0841718342dee74623f6c129006c6a3436718
4
- data.tar.gz: 8a10a2601f18db52456e07a9cd490422dafdbf64
3
+ metadata.gz: a1439547e5faf4c1d64cb069946ccede33985e4d
4
+ data.tar.gz: ba154654bf09d7c91443d077de618c00966d5e60
5
5
  SHA512:
6
- metadata.gz: fe3b914bb5fbadd8976474493bb9c4cdd9b1223c526ac26c1127957df6f41f66db2f2ebd1dc3395e813cdbf3ff39393dd2b3532ccddb2bb77698f88b82356a58
7
- data.tar.gz: 1751754f257369965e0f7bb99434688b38c23294e4a8f7a7bf32b8e6ef74442f97918b29461fcf9c000019f06f8facbf1af0f6e87d94b93f41a264fb1a8e9404
6
+ metadata.gz: c4e1567d5d2342a362a84d6c7e299b90d3dae8a41cfac33bc2576d3774df1360b8ad97a8d757a99153c5c84c2c414ea1af271c64f6b1be9a7c61d9a219e34daa
7
+ data.tar.gz: 53eb5841d430fa20363f112adfa044d458512287f7928b0af1c02dd7da73b98fcba8b7fd6d4967db911cd68cbbce60728c33978016949b177d898f5d97e3aff6
data/lib/cmd.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'open3'
2
2
  require 'sys/proctable'
3
- require_relative 'timeout_error.rb'
3
+ require 'timeout'
4
4
 
5
5
  class CMD < Hash
6
6
  private
@@ -57,7 +57,7 @@ class CMD < Hash
57
57
  puts "exit_code: #{self[:exit_code]}"
58
58
  end
59
59
 
60
- raise TimeoutError.new(self[:command], self[:timeout]) if(key?(:timed_out) && self[:timeout_raise_error])
60
+ raise TimeoutError.new("#{self[:command]} timeout: #{self[:timeout]}") if(key?(:timed_out) && self[:timeout_raise_error])
61
61
 
62
62
  if((self[:exit_code] != 0) && !self[:ignore_exit_code])
63
63
  exception_text = "Exit code: #{self[:exit_code]}"
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.43
4
+ version: 0.1.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall