Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In some projects that don't invoke the entire rails stack, adding rdoc to the Gemfile was the key to success for me:</p> <pre><code>group :development, :test do gem 'rake', '~&gt; 0.9.2.2' gem "rdoc", '~&gt; 3.12' end </code></pre> <p>UPDATE: This was still bugging me with a rails 3.0.x project. Rakefile, gems all seemed ok but I was still getting the issue. To find out exactly where the warning wacoming from I put a canary in gems/rake-0.9.2.2/lib/rake/rdoctask.rb:</p> <pre><code>if Rake.application begin raise 'where am i' rescue puts $@ end Rake.application.deprecate('require \'rake/rdoctask\'', 'require \'rdoc/task\' (in RDoc 2.4.2+)', __FILE__) end </code></pre> <p>This immediately pointed to the issue in the rails stack itself. A quick check and it is apparent that rails 3.0.8 is full of requires to rake/rdoctask. Updating to rails (3.0.9 or higher I believe) fixes the issue (or you can downgrade rake as others have suggested).</p> <p>But while you are stuck on ~ 3.0.8 and don't want to downgrade rake, you can suppress the warning by setting ignore_deprecate in your Rakefile:</p> <pre><code>require File.expand_path('../config/application', __FILE__) require 'rake' require 'rake/testtask' require 'rdoc/task' # add this (and perhaps make it conditional on Rails.version if you like): Rake.application.options.ignore_deprecate = true Babylon::Application.load_tasks </code></pre> <p>Why suppress the warning? My main motivation was to ensure cron jobs that invoke rake don't log and email spurious output.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload