Browse files

Replace ruby-debug19 which doesnt work on 1.9.3 out of the box with a…

… more maintained debugger gem
  • Loading branch information...
1 parent 9a97699 commit 56674dbfc1718c35c33ee35baba349fc752f6725 Aditya Sanghi committed Apr 17, 2012
View
2 railties/guides/code/getting_started/Gemfile
@@ -35,4 +35,4 @@ gem 'jquery-rails'
# gem 'capistrano'
# To use debugger
-# gem 'ruby-debug19', :require => 'ruby-debug'
+# gem 'debugger'
View
2 railties/guides/source/debugging_rails_applications.textile
@@ -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
2 railties/lib/rails/generators/app_base.rb
@@ -188,7 +188,7 @@ def ruby_debugger_gemfile_entry
if RUBY_VERSION < "1.9"
"gem 'ruby-debug'"
else
- "gem 'ruby-debug19', :require => 'ruby-debug'"
+ "gem 'debugger'"
end
end
View
4 railties/test/generators/app_generator_test.rb
@@ -308,10 +308,10 @@ def test_inclusion_of_ruby_debug
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

0 comments on commit 56674db

Please sign in to comment.