libis-tools 0.9.10 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -7
- data/lib/libis/tools/command.rb +7 -3
- data/lib/libis/tools/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2acfb7ca3db4644a7c4001df1ee44999ccc8632f
|
4
|
+
data.tar.gz: 32a297ad8bdc665211b6d4ff51efd67f9e026589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 609edc8e2ec6db1ced8bb0db45b1b55c9f00ebc7b8c6c45cdb12fe7d8dc44194871d5902310b7e173d54c61b4d23cf233919879c3f3feb2d2dc249caf82ceaf0
|
7
|
+
data.tar.gz: e967facb80617a24e4bd3cd4ae2e80995b13e8672fb0dc65d79b2d663883aa3d464d8ed5d61d0faf45cf118363aa60457b32b5eb896c01589ba4f03d77f91ede
|
data/.travis.yml
CHANGED
@@ -2,23 +2,16 @@ language: ruby
|
|
2
2
|
cache: bundler
|
3
3
|
sudo: false
|
4
4
|
rvm:
|
5
|
-
- 1.9.3
|
6
5
|
- 2.1.0
|
7
6
|
- 2.2.0
|
8
7
|
- ruby-head
|
9
|
-
- jruby-1.7.20
|
10
8
|
- jruby-9.0.1.0
|
11
|
-
- jruby-head
|
12
9
|
jdk:
|
13
10
|
- openjdk7
|
14
11
|
- oraclejdk7
|
15
12
|
- oraclejdk8
|
16
13
|
matrix:
|
17
14
|
exclude:
|
18
|
-
- rvm: 1.9.3
|
19
|
-
jdk: oraclejdk7
|
20
|
-
- rvm: 1.9.3
|
21
|
-
jdk: oraclejdk8
|
22
15
|
- rvm: 2.1.0
|
23
16
|
jdk: oraclejdk7
|
24
17
|
- rvm: 2.1.0
|
data/lib/libis/tools/command.rb
CHANGED
@@ -16,7 +16,11 @@ module Libis
|
|
16
16
|
# * +:out+ : the stdout output of the command
|
17
17
|
# * +:err+ : the stderr output of the command
|
18
18
|
def self.run(cmd, *opts)
|
19
|
-
result = {
|
19
|
+
result = {
|
20
|
+
status: 999,
|
21
|
+
out: [],
|
22
|
+
err: []
|
23
|
+
}
|
20
24
|
begin
|
21
25
|
Open3.popen3(cmd, *opts) do |_, output, error, thread|
|
22
26
|
output = output.read
|
@@ -26,8 +30,8 @@ module Libis
|
|
26
30
|
result[:status] = thread.value.exitstatus rescue nil
|
27
31
|
end
|
28
32
|
|
29
|
-
rescue
|
30
|
-
|
33
|
+
rescue StandardError => e
|
34
|
+
result[err] = [e.class.name, e.message]
|
31
35
|
|
32
36
|
end
|
33
37
|
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -310,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
310
|
version: '0'
|
311
311
|
requirements: []
|
312
312
|
rubyforge_project:
|
313
|
-
rubygems_version: 2.
|
313
|
+
rubygems_version: 2.5.0
|
314
314
|
signing_key:
|
315
315
|
specification_version: 4
|
316
316
|
summary: LIBIS toolbox.
|