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 +4 -4
- data/lib/libis/tools/command.rb +4 -13
- data/lib/libis/tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ddbd4686af619d4ec5f46e8e07a8360d6313cca
|
4
|
+
data.tar.gz: c790d5e16d508e8d105c6e7783f1b6d6a9cc56a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe9c29a6617474145d0460a67e64e9842e920c265e768ac49ead7f2b6e2cfaca0012557eb966e46b54821a94bef77c814272016014d163f75ec9ce8c84b33b2e
|
7
|
+
data.tar.gz: 1aba36391559fee2f7796363d8c7d3977e0d620ac6dda5b250ff3fad19b7665b872df44b27518dac75fdf8c685e6be881d748ae14453f20b251360c9a1877313
|
data/lib/libis/tools/command.rb
CHANGED
@@ -43,19 +43,10 @@ module Libis
|
|
43
43
|
err: []
|
44
44
|
}
|
45
45
|
begin
|
46
|
-
|
47
|
-
|
48
|
-
error.
|
49
|
-
|
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]
|
data/lib/libis/tools/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|