pry-command_result 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,10 +4,13 @@ module Kernel
4
4
  def command_result(command)
5
5
  output = StringIO.new
6
6
  pager = Pry.config.pager
7
+ color = Pry.config.color
7
8
  Pry.config.pager = false
9
+ Pry.config.color = false
8
10
  Pry.run_command(command, output: output, show_output: true)
9
11
  output.string
10
12
  ensure
13
+ Pry.config.color = color
11
14
  Pry.config.pager = pager
12
15
  output.close
13
16
  end
@@ -1,3 +1,3 @@
1
1
  module PryCommandResult
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pry-command_result
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Takatoshi Matsumoto