Rakefile in wvanbergen-scoped_search-0.7.3 vs Rakefile in wvanbergen-scoped_search-1.0.0
- old
+ new
@@ -1,6 +1,25 @@
require 'rubygems'
+require 'rake/rdoctask'
Dir['tasks/*.rake'].each { |file| load(file) }
desc 'Default: run unit tests.'
-task :default => :test
\ No newline at end of file
+task :default => [:test]
+
+##############################################
+# Build RDocs
+##############################################
+desc 'Generate documentation for the acts_as_callback_logger plugin.'
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'doc/html'
+ rdoc.title = 'scoped_search'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.main = 'README'
+ rdoc.rdoc_files.include('README',
+ 'CHANGELOG',
+ 'LICENSE',
+ 'TODO',
+ 'lib/')
+end
+##############################################
+