Rakefile in fake_mechanize-0.0.1 vs Rakefile in fake_mechanize-0.0.2
- old
+ new
@@ -40,9 +40,18 @@
end
task :default => :test
-desc "build rdoc using hanna theme"
-task :rdoc do
- `rm -rf rdoc && rdoc --op=rdoc --title=FakeMechanize --inline-source --format=darkfish LICENSE README* lib/**/*.rb`
-end
\ No newline at end of file
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ if File.exist?('VERSION')
+ version = File.read('VERSION')
+ else
+ version = ""
+ end
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "FakeMechanize #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end