From ec328e082f398570e155f2a42182108eb14dcd89 Mon Sep 17 00:00:00 2001 From: Ian Kronquist Date: Tue, 23 Jun 2015 09:43:20 -0700 Subject: [PATCH] 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. --- Gemfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index f73d80f..38a0a2a 100644 --- a/Gemfile +++ b/Gemfile @@ -26,5 +26,9 @@ end group :development do 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