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 CHANGED
@@ -1 +1 @@
1
- 1.2.6
1
+ 1.2.7
@@ -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
@@ -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|
@@ -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 str(eam).
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)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: irt
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.6
5
+ version: 1.2.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Domizio Demichelis