Skip to content

Commit

Permalink
Merge pull request #44 from danlucraft/fix-deprecation-option
Browse files Browse the repository at this point in the history
--no-deprecation-warnings should silence the rake/rdoctask deprecation warning
  • Loading branch information
jimweirich committed Jun 5, 2011
2 parents 0c9f1d0 + 2c5b923 commit feb1afd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rake/rdoctask.rb
@@ -1,6 +1,8 @@
# rake/rdoctask is deprecated in favor of rdoc/task

warn 'rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)'
if Rake.application
Rake.application.deprecate('require \'rake/rdoctask\'', 'require \'rdoc/task\' (in RDoc 2.4.2+)', __FILE__)
end

require 'rubygems'

Expand Down

0 comments on commit feb1afd

Please sign in to comment.