runtime_command 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17f103bf5c46fbe2b771a455ffad78cafbf987e4
4
- data.tar.gz: 49b9fbfb70bd5def5df84af7cf9327baefce547a
3
+ metadata.gz: 7bd87734df7e09d934776277a2511c06694c62d2
4
+ data.tar.gz: c6994818950a65dee8ae0480e1542a8ebb9b146e
5
5
  SHA512:
6
- metadata.gz: b0a1b6422e20b95da363a1ee89769794528fb1a0cb65278bebf8eca88d81fe98be5853547298f998890f2f0894bcb44601cbfc55b0e5a43f3bb765b4a12b5ef4
7
- data.tar.gz: 4abed7ff903b81b5320e89c83d5bf1e05e022b2dfa404047f0b96c7084cc223cc818a307fb146ea4b751347d1ad3f65c1ed4b0fa0e140556086a676e0272bc17
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 [string] line
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
@@ -1,3 +1,3 @@
1
1
  module RuntimeCommand
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-02-28 00:00:00.000000000 Z
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.6.10
94
+ rubygems_version: 2.5.1
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Execute external command from Ruby.