Skip to content

Commit

Permalink
Fixes compatibility with pry 0.10.x
Browse files Browse the repository at this point in the history
Pry 0.10.x introduced Pry::Output class, due to class loading it conflicts with BetterErrors::REPL::Pry::Onput, so let’s be more explicit about which class we use.

This fixes BetterErrors#255.
  • Loading branch information
fredwu committed Jul 8, 2014
1 parent c447699 commit 2f8cfef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/better_errors/repl/pry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def initialize(binding)
@fiber = Fiber.new do
@pry.repl binding
end
@input = Input.new
@output = Output.new
@input = REPL::Pry::Input.new
@output = REPL::Pry::Output.new
@pry = ::Pry.new input: @input, output: @output
@pry.hooks.clear_all if defined?(@pry.hooks.clear_all)
@fiber.resume
Expand Down

0 comments on commit 2f8cfef

Please sign in to comment.