tracetool 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tracetool/utils/pipe.rb +6 -7
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afbd4e779196959227fce1f14d17eb630f614ac8d8381917ce6856d20afe8965
|
4
|
+
data.tar.gz: 83631e87b47888b320a67e4a7b565426f6ed9f00ce577eef769ee4b7809baa29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b32f99eff59b5365612ddb8ffe245d915a6b38867b7a933199b227ad6fb456f2a9fa00d25b4c13fb935dc5e167fdac63a4ecb395be9ac44af0740e7bae4026c5
|
7
|
+
data.tar.gz: 4a1e752a9e5f9a0eb3ad3b00c2dc62fe7af0640e1de9ec7a9de817180fb0c976159f3da3ee8d962e99b648a1a55294e925114320871037bfd9d23ed4afd97d43
|
data/lib/tracetool/utils/pipe.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'open3'
|
2
|
+
|
2
3
|
module Tracetool
|
3
|
-
#
|
4
|
+
# Helper module for launching commands
|
4
5
|
module Pipe
|
5
6
|
# Executes shell command
|
6
7
|
class Executor
|
@@ -14,12 +15,10 @@ module Tracetool
|
|
14
15
|
end
|
15
16
|
|
16
17
|
def <<(args)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
io.read.chomp
|
22
|
-
end
|
18
|
+
out, err, status = Open3.capture3({}, *cmd, stdin_data: args)
|
19
|
+
raise "#{cmd.join(' ')} (exit: #{status.exitstatus}) #{err.chomp}" unless status.success?
|
20
|
+
|
21
|
+
out.chomp
|
23
22
|
end
|
24
23
|
end
|
25
24
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracetool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ilya.arkhanhelsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: powerpack
|