Replace ruby-debug19 which doesnt work on 1.9.3 out of the box with a more maintained debugger gem

This commit is contained in:
Aditya Sanghi
2012-04-17 15:00:33 +05:30
parent 9a97699460
commit 56674dbfc1
4 changed files with 5 additions and 5 deletions

View File

@@ -35,4 +35,4 @@ gem 'jquery-rails'
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
# gem 'debugger'

View File

@@ -205,7 +205,7 @@ The debugger used by Rails, +ruby-debug+, comes as a gem. To install it, just ru
$ sudo gem install ruby-debug
</shell>
TIP: If you are using Ruby 1.9, you can install a compatible version of +ruby-debug+ by running +sudo gem install ruby-debug19+
TIP: If you are using Ruby 1.9, you can install a compatible version of +debugger+ by running +sudo gem install debugger+
In case you want to download a particular version or get the source code, refer to the "project's page on rubyforge":http://rubyforge.org/projects/ruby-debug/.

View File

@@ -188,7 +188,7 @@ module Rails
if RUBY_VERSION < "1.9"
"gem 'ruby-debug'"
else
"gem 'ruby-debug19', :require => 'ruby-debug'"
"gem 'debugger'"
end
end

View File

@@ -308,10 +308,10 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
end
def test_inclusion_of_ruby_debug19_if_ruby19
def test_inclusion_of_debugger_if_ruby19
run_generator
assert_file "Gemfile" do |contents|
assert_match(/gem 'ruby-debug19', :require => 'ruby-debug'/, contents) unless RUBY_VERSION < '1.9'
assert_match(/gem 'debugger'/, contents) unless RUBY_VERSION < '1.9'
end
end