execute 0.1.19 → 0.1.20

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 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88173eecd2af8a6411804f35b30ba95decc9e9bf
4
- data.tar.gz: 7ff1a4bb4dbe8b0f1f79d42be784806652d03026
3
+ metadata.gz: 9dfc9c1ddde387fbe5d1007431ae313171bfa0a4
4
+ data.tar.gz: 12df9f497fbb12b280e1bbe31baa1fd19faa4d7c
5
5
  SHA512:
6
- metadata.gz: b56fc793f61b4f1559b2b03bbac688a60341b17afa77a6cf19b9b9786e9fe090822fed1dfd9e5d204f7daa56232c3dad3969f4721805844dfdb6ba3f75f75180
7
- data.tar.gz: 4d96f0d03804375abc973f1528de703e47060ae4825f9e239f210cf83d4bf8698ecab1a2a9ade5d8b0bcc29b02c2372bfcf017398388d5a17e294ffe95a35038
6
+ metadata.gz: 6aed75ecd990c86282d4e4f8bd46fa9364d7b1f816198a1e554a6b3449abe5032dd52f63021376af224824f67a16be040b0bf998702dc253d96e0dea61625181
7
+ data.tar.gz: 51f719d32192612ab418892447ef28536612bb558ae86e4e9ffede54a830b4fe907c20b7abbbe3a10f30f8ffd2ccded3bbbd533e413ac21c75b95d405ea0dc3d
data/lib/cmd.rb CHANGED
@@ -67,8 +67,8 @@ class CMD < Hash
67
67
  end
68
68
 
69
69
  wait_thr.join
70
- hash[:output] = output[:output].join
71
- hash[:error] = output[:error].join
70
+ hash[:output] = output[:output].join unless(output[:output].empty?)
71
+ hash[:error] = output[:error].join unless(output[:output].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.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall