1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Get rid of the silly rdoc_devel rake task.

This commit is contained in:
Nathan Weizenbaum 2008-05-15 14:45:20 -07:00
parent f489bd33c9
commit 2a9436fe0f

View file

@ -91,7 +91,7 @@ rescue LoadError
require 'rake/rdoctask'
end
rdoc_task = Proc.new do |rdoc|
Rake::RDocTask.new do |rdoc|
rdoc.title = 'Haml/Sass'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include(*FileList.new('*') do |list|
@ -102,25 +102,9 @@ rdoc_task = Proc.new do |rdoc|
rdoc.rdoc_files.exclude('TODO')
rdoc.rdoc_files.exclude('lib/haml/buffer.rb')
rdoc.rdoc_files.exclude('lib/sass/tree/*')
end
Rake::RDocTask.new do |rdoc|
rdoc_task.call(rdoc)
rdoc.rdoc_dir = 'rdoc'
end
Rake::RDocTask.new(:rdoc_devel) do |rdoc|
rdoc_task.call(rdoc)
rdoc.rdoc_dir = 'rdoc_devel'
rdoc.options << '--all'
rdoc.rdoc_files.include('test/*.rb')
# Get rid of exclusion rules
rdoc.rdoc_files = Rake::FileList.new(*rdoc.rdoc_files.to_a)
rdoc.rdoc_files.include('lib/haml/buffer.rb')
rdoc.rdoc_files.include('lib/sass/tree/*')
end
# ----- Coverage -----
unless not_loaded.include? 'rcov/rcovtask'