Rakefile in paranoid-0.0.1 vs Rakefile in paranoid-0.0.2
- old
+ new
@@ -1,5 +1,6 @@
+require 'rake/rdoctask'
require "spec"
require "spec/rake/spectask"
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
@@ -19,7 +20,17 @@
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"
end
+
+Rake::RDocTask.new { |rdoc|
+ rdoc.rdoc_dir = 'doc'
+ rdoc.title = "Paranoid"
+ rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
+ rdoc.options << '--charset' << 'utf-8'
+ rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : './rdoc/template.rb'
+ rdoc.rdoc_files.include('README.textile')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+}
task :default => :spec
\ No newline at end of file