Permalink
Browse files

use Ruby's built-in debugger.

* require 'debug' for MRI/JRuby.
* require 'rubinius/debugger' and Rubinius::Debugger.start for Rubinius.
  • Loading branch information...
1 parent 4ef0113 commit bb14a7bf89b981793eb1ad12192c878ca00467a3 @postmodern postmodern committed with Oct 4, 2012
Showing with 7 additions and 9 deletions.
  1. +0 −6 Gemfile
  2. +0 −1 letters.gemspec
  3. +7 −2 lib/letters/helpers.rb
View
@@ -5,9 +5,3 @@ gem "activesupport"
gem "xml-simple"
gem "timecop"
gem "colorize"
-
-if RUBY_VERSION =~ /1\.9\.\d+/
- gem "debugger"
-else
- gem "ruby-debug"
-end
View
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
s.add_dependency "activesupport"
s.add_dependency "xml-simple"
s.add_dependency "colorize"
- s.add_dependency "debugger"
s.add_development_dependency "timecop"
s.add_development_dependency "rspec"
View
@@ -98,8 +98,13 @@ def self.pretty_callstack(callstack)
# This provides a mockable method for testing
def self.call_debugger
- require "ruby-debug"
- debugger
+ if (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx')
+ require 'rubinius/debugger'
+ Rubinius::Debugger.start
+ else
+ require 'debug'
+ end
+
nil
end

0 comments on commit bb14a7b

Please sign in to comment.