execute 0.1.36 → 0.1.37

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 +2 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b4d882f012fc41a6d197fe677340d1cd163c251
4
- data.tar.gz: 9869de1e75989008ae341953b9f1b06998b82063
3
+ metadata.gz: 50979d85b76131a887a010d6c3d166c6d8210d8c
4
+ data.tar.gz: ae27c5d9262f350ee15f11c2244b685ac22342c9
5
5
  SHA512:
6
- metadata.gz: 92e498355cf119dd509c03856bbf1c90c30fb94adf02220565a9ee6c5a7c6d7144923e6da5fdee00ae55b1aa605c121cb34c40f14fc5630de34079835cdf9e8e
7
- data.tar.gz: ef50e6daaf13a94c8b2bca18893370c97d0d4d50dc21616c204b66101637209078d5784824b1f756e764f3a3298bbe1266dc5059ae86d2af16636a7f603339c3
6
+ metadata.gz: d466768a2f3ba27561e38d55b772ff1f682ee1495462f11dbd34409ce705767dd7dc15c95cca8cbbc5b5656476ce05b8e02825a0926418825711c8f095425d71
7
+ data.tar.gz: d0a0aba93cd1a5ac38ea6607c0ddbbd27fb191b198dba8aa198f71a97c4ccf1b8f630d2483dbbd5b0ceb45bab0d30e1ed128ddaa4663d0b8d88890223b884295
data/lib/cmd.rb CHANGED
@@ -37,7 +37,6 @@ class CMD < Hash
37
37
  puts "exit_code: #{self[:exit_code]}"
38
38
  end
39
39
 
40
- puts "exit_code: #{self[:exit_code]}"
41
40
  if((self[:exit_code] != 0) && !self[:ignore_exit_code])
42
41
  exception_text = "Exit code: #{self[:exit_code]}"
43
42
  exception_text = "#{exception_text}\nError: '#{self[:error]}'"
@@ -76,8 +75,8 @@ class CMD < Hash
76
75
 
77
76
  wait_thr.join
78
77
 
79
- self[:output] = output.join unless(output.empty?)
80
- self[:error] = error.join unless(error.empty?)
78
+ self[:output] = output unless(output.empty?)
79
+ self[:error] = error unless(error.empty?)
81
80
  self[:exit_code] = wait_thr.value.to_i
82
81
  end
83
82
  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.36
4
+ version: 0.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall