Use different debuggers for ruby 2 and 1.9

The debugger gem does not support ruby 2.0.
The byebug gem does not support ruby < 2.0.
Conditionally specify the right gem for the right version of ruby.
This commit is contained in:
Ian Kronquist 2015-06-23 09:43:20 -07:00
parent 624646140f
commit ec328e082f
1 changed files with 5 additions and 1 deletions

View File

@ -26,5 +26,9 @@ end
group :development do group :development do
gem 'pry' gem 'pry'
gem 'pry-debugger' if RUBY_VERSION[0..2] == '1.9'
gem 'pry-debugger'
elsif RUBY_VERSION[0] == '2'
gem 'pry-byebug'
end
end end