libis-tools 0.9.57 → 0.9.58

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f41609527ad591aacb554d78427bd483c72c3e98
4
- data.tar.gz: d8c7b2d1a9df6ed014844cad0d4789e4b0a8da91
3
+ metadata.gz: 7ddbd4686af619d4ec5f46e8e07a8360d6313cca
4
+ data.tar.gz: c790d5e16d508e8d105c6e7783f1b6d6a9cc56a8
5
5
  SHA512:
6
- metadata.gz: e9ac55598115c0ded4f4212a2a27b21cc2809ad56a98bd1e3d0ba933845d9d9e372cf0e1f52744419525f36f929a8b4c721b9504f7e467c4d66da9744e822e4e
7
- data.tar.gz: 9d69b719ca4432dad3b7709ec872ad949d720f21030434a8959077c05b966ae64fc1126c454067d317bcb7d25f0b7a9a9fe4beb1f8a80e4aef86d75be655471a
6
+ metadata.gz: fe9c29a6617474145d0460a67e64e9842e920c265e768ac49ead7f2b6e2cfaca0012557eb966e46b54821a94bef77c814272016014d163f75ec9ce8c84b33b2e
7
+ data.tar.gz: 1aba36391559fee2f7796363d8c7d3977e0d620ac6dda5b250ff3fad19b7665b872df44b27518dac75fdf8c685e6be881d748ae14453f20b251360c9a1877313
@@ -43,19 +43,10 @@ module Libis
43
43
  err: []
44
44
  }
45
45
  begin
46
- input, output, error, thread = Open3.popen3(cmd, *opts)
47
- input.close
48
- error.each_line do |line|
49
- next if result[:err].size > 100
50
- result[:err] << line.chomp
51
- result[:err] << '.... <<< Extra messages skipped >>> ....' if result[:err] == 100
52
- end
53
- output.each_line do |line|
54
- next if result[:out].size > 100
55
- result[:out] << line.chomp
56
- result[:out] << '.... <<< Extra messages skipped >>> ....' if result[:out] == 100
57
- end
58
- result[:status] = thread.value.exitstatus rescue nil
46
+ output, error, status = Open3.capture3(cmd, *opts)
47
+ result[:out] = output.split("\n").map(&:chomp)
48
+ result[:err] = error.split("\n").map(&:chomp)
49
+ result[:status] = status.exitstatus
59
50
 
60
51
  rescue StandardError => e
61
52
  result[:err] = [e.class.name, e.message]
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '0.9.57'
3
+ VERSION = '0.9.58'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.57
4
+ version: 0.9.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-17 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler