runtime_command 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runtime_command/logger.rb +11 -1
- data/lib/runtime_command/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: 7bd87734df7e09d934776277a2511c06694c62d2
|
4
|
+
data.tar.gz: c6994818950a65dee8ae0480e1542a8ebb9b146e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 899348bbf681fcb2f9b84fb806561211fe9c25dc1f973601d72a1c4b7c12aa4e8af0f5cf57edbd5e0e79ca07b18b6b75dcf7da57fc93ba5599931acd42694f02
|
7
|
+
data.tar.gz: 7b4997df6abb7ccfd65eb8fa8dbcc7e1e3c280f500beaa82e5226c1fa560474262daafa50d1f0ff09af977850827d9e7516f7dafe3b59bfaea2fa8ee65a1e2dd
|
@@ -27,7 +27,7 @@ module RuntimeCommand
|
|
27
27
|
flash
|
28
28
|
end
|
29
29
|
|
30
|
-
# @param [
|
30
|
+
# @param [String] line
|
31
31
|
def stdin(line)
|
32
32
|
puts HighLine.color(line, @stdin_color) if @output
|
33
33
|
@buffered_log << line + "\n"
|
@@ -35,6 +35,11 @@ module RuntimeCommand
|
|
35
35
|
return
|
36
36
|
end
|
37
37
|
|
38
|
+
# @return [Boolean]
|
39
|
+
def stdout?
|
40
|
+
!@buffered_stdout.empty?
|
41
|
+
end
|
42
|
+
|
38
43
|
# @param [String] line
|
39
44
|
def stdout(line)
|
40
45
|
puts HighLine.color(line.chomp, @stdout_color) if @output
|
@@ -45,6 +50,11 @@ module RuntimeCommand
|
|
45
50
|
return
|
46
51
|
end
|
47
52
|
|
53
|
+
# @return [Boolean]
|
54
|
+
def stderr?
|
55
|
+
!@buffered_stderr.empty?
|
56
|
+
end
|
57
|
+
|
48
58
|
# @param [String] line
|
49
59
|
def stderr(line)
|
50
60
|
puts HighLine.color(line.chomp, @stderr_color) if @output
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runtime_command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- naomichi-y
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.5.1
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Execute external command from Ruby.
|