Browse files

[CHEF-3619] fix obsolete require of 'rake/rdoctask'

'rake/doctask' has been deprecated for quite a while but since version
10.0.0, rake no longer simply warns, and now fails with a cryptic

$ rake -T
rake aborted!
/home/adam/chef/Rakefile:24:in `require'
/home/adam/chef/Rakefile:24:in `<top (required)>'
/home/adam/.rvm/gems/ruby-1.9.3-p194@chef/bin/ruby_noexec_wrapper:14:in `eval'
/home/adam/.rvm/gems/ruby-1.9.3-p194@chef/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
  • Loading branch information...
1 parent d84c505 commit 93e2ddf57fea5e1c4a50c7cd5fdfd530e0561850 @aspiers aspiers committed with Adam Spiers Nov 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
@@ -21,7 +21,7 @@ require File.dirname(__FILE__) + '/lib/chef/version'
require 'rubygems'
require 'rubygems/package_task'
-require 'rake/rdoctask'
+require 'rdoc/task'
require './tasks/rspec.rb'
GEM_NAME = "chef"

0 comments on commit 93e2ddf

Please sign in to comment.