Rake failing after upgrade to Rails 2.3.12

I just upgraded to Rails 2.3.12, and now all my rake tasks are failing:

andrew:code[master]$ bundle exec rake -T --trace (in /Volumes/WorkDisk/Fancat/fancat/gitsvn/code) rake aborted! uninitialized constant Object::RDoc /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2503:in `const_missing' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@fancat/gems/rails-2.3.12/lib/ tasks/documentation.rake:3:in `block in <top (required)>' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:1882:in `in_namespace' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:910:in `namespace' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@fancat/gems/rails-2.3.12/lib/ tasks/documentation.rake:1:in `<top (required)>' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@fancat/gems/rails-2.3.12/lib/ tasks/rails.rb:4:in `load' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@fancat/gems/rails-2.3.12/lib/ tasks/rails.rb:4:in `block in <top (required)>' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@fancat/gems/rails-2.3.12/lib/ tasks/rails.rb:4:in `each' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@fancat/gems/rails-2.3.12/lib/ tasks/rails.rb:4:in `<top (required)>' /Volumes/WorkDisk/Fancat/fancat/gitsvn/code/Rakefile:31:in `require' /Volumes/WorkDisk/Fancat/fancat/gitsvn/code/Rakefile:31:in `<top (required)>' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2383:in `load' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2383:in `raw_load_rakefile' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2017:in `block in load_rakefile' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2068:in `standard_exception_handling' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2016:in `load_rakefile' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2000:in `block in run' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:2068:in `standard_exception_handling' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/lib/ rake.rb:1998:in `run' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.8.7/bin/ rake:31:in `<top (required)>' /Users/andrew/.rvm/gems/ruby-1.9.2-p180@fancat/bin/rake:19:in `load'

Has anybody else seen this or have a suggestion on how to fix?

Found the problem.

In the application's Rakefile, you need to change

require 'rake/rdoctask' => require 'rdoc/task'

You all need to Rake::RDocTask to RDoc::Task later in the file.

Normally this would be fixed with 'rake rails:update' but you can't run this command after updating.

Andrew

We have a ticket for it here:

  https://github.com/rails/rails/issues/1551

It seems if you upgrade rake and RDoc, it will stop the errors.

Yes ... and fix the Rakefile ... this was my fix:

https://github.com/stepheneb/rigse/commit/db7b785c4dba7a0de0ea1152e8db67a2726df3b2