Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Switch debugger for ruby > 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Günnewig committed Jun 5, 2014
1 parent 7fe6523 commit deb22c5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
13 changes: 10 additions & 3 deletions Gemfile
Expand Up @@ -14,11 +14,18 @@ group :test do
end

group :development do
gem 'debugger'
gem 'awesome_print'
gem 'debugger-completion'
gem 'pry'
gem 'pry-debugger'

if RUBY_VERSION < '2.0.0'
gem 'pry-debugger'
gem 'debugger'
gem 'debugger-completion'
else
gem 'pry-byebug'
gem 'byebug'
end

gem 'pry-doc'
gem 'tmrb'
gem 'yard'
Expand Down
7 changes: 6 additions & 1 deletion features/support/env.rb
Expand Up @@ -2,7 +2,12 @@
$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__)

unless ENV['CI'] == 'true'
require 'debugger'
if RUBY_VERSION < '2.0.0'
require 'debugger'
else
require 'byebug'
end

require 'pry'
end

Expand Down
7 changes: 6 additions & 1 deletion spec/support/debugging.rb
@@ -1,5 +1,10 @@
# encoding: utf-8
unless ENV['CI'] == 'true'
require 'debugger'
if RUBY_VERSION < '2.0.0'
require 'debugger'
else
require 'byebug'
end

require 'pry'
end

0 comments on commit deb22c5

Please sign in to comment.