summaryrefslogtreecommitdiff
path: root/bin/leap
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-02-25 09:39:35 -0800
committerelijah <elijah@riseup.net>2015-02-25 09:39:35 -0800
commitc0770e0c5a914a7c7f25349e51b41a16a1154373 (patch)
tree799a1a34ea5f4624428af9df6a9173a8b510a915 /bin/leap
parent39c8a357ec10b9cb4ecf75324561ed82241e27d6 (diff)
allow use of byebug
Diffstat (limited to 'bin/leap')
-rwxr-xr-xbin/leap6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/leap b/bin/leap
index dbdd312..e42b8c2 100755
--- a/bin/leap
+++ b/bin/leap
@@ -3,7 +3,11 @@
if ARGV.include?('--debug') || ARGV.include?('-d')
DEBUG=true
begin
- require 'debugger'
+ if RUBY_VERSION =~ /^2/
+ require 'byebug'
+ else
+ require 'debugger'
+ end
rescue LoadError
end
else