Permalink
Browse files

Work with newer versions of rdoc

  • Loading branch information...
1 parent 4abe8b7 commit 0c7367ff380fcd2763d93dc30dce24ca510d390a @jeremyevans committed Nov 7, 2011
Showing with 10 additions and 6 deletions.
  1. +10 −6 Rakefile
View
@@ -1,17 +1,21 @@
require "rake"
require "rake/clean"
require "spec/rake/spectask"
-begin
- require "hanna/rdoctask"
-rescue LoadError
- require "rake/rdoctask"
-end
CLEAN.include ["*.gem", "rdoc"]
RDOC_OPTS = ["--quiet", "--line-numbers", "--inline-source", '--title', \
'Sequel PostgreSQL Triggers: Database enforced timestamps, immutable columns, and counter/sum caches', '--main', 'README']
-Rake::RDocTask.new do |rdoc|
+rdoc_task_class = begin
+ require "rdoc/task"
+ RDOC_OPTS.concat(['-f', 'hanna'])
+ RDoc::Task
+rescue LoadError
+ require "rake/rdoctask"
+ Rake::RDocTask
+end
+
+rdoc_task_class.new do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.options += RDOC_OPTS
rdoc.rdoc_files.add %w"README LICENSE lib/sequel_postgresql_triggers.rb"

0 comments on commit 0c7367f

Please sign in to comment.