irt 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/irt/commands/core.rb +1 -1
- data/lib/irt/commands/edit.rb +1 -1
- data/lib/irt/commands/help.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.7
|
data/lib/irt/commands/core.rb
CHANGED
@@ -63,7 +63,7 @@ module IRT
|
|
63
63
|
ensure_session
|
64
64
|
raise ArgumentError, "You must pass an arguent or a block" if arg.nil? && block.nil?
|
65
65
|
# in case of a block we will just capture in memory its whole output to stdout
|
66
|
-
output = arg || capture(&block)
|
66
|
+
output = arg || capture(:stdout, &block)
|
67
67
|
IO.popen(IRT.pager_command, 'w') do |io|
|
68
68
|
io.puts output
|
69
69
|
end
|
data/lib/irt/commands/edit.rb
CHANGED
@@ -67,7 +67,7 @@ module IRT
|
|
67
67
|
def copy_to_clipboard(cmd)
|
68
68
|
raise IRT::NotImplementedError, "No known copy_to_clipboard_command for this system." \
|
69
69
|
unless IRT.copy_to_clipboard_command
|
70
|
-
lines_str = capture { send(cmd) }
|
70
|
+
lines_str = capture(:stdout) { send(cmd) }
|
71
71
|
return unless lines_str.match(/\w/m)
|
72
72
|
begin
|
73
73
|
IO.popen(IRT.copy_to_clipboard_command, 'w') do |io|
|
data/lib/irt/commands/help.rb
CHANGED
@@ -108,7 +108,7 @@ module IRT
|
|
108
108
|
|
109
109
|
#{label " Extensions ", :log_color}
|
110
110
|
Kernel#capture stream {} Executes block and returns a string containing the
|
111
|
-
captured
|
111
|
+
captured stream
|
112
112
|
Kernel#silence stream {} Alias for capture
|
113
113
|
Object#own_methods Returns the methods implemented by the receiver
|
114
114
|
itself (not inherited)
|