diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-17 08:06:14 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-06-17 08:06:14 +0200 |
commit | 35b257fb69fc7f7821c108a33f21ab316cd74abe (patch) | |
tree | 99b523d25b96f7e2dbd7ac3cd085999e3d01d192 /tasks/rdoc.rake | |
parent | d5265bb9ae3cd188b72573b34e908c35c74903f9 (diff) | |
download | zorglub-35b257fb69fc7f7821c108a33f21ab316cd74abe.zip zorglub-35b257fb69fc7f7821c108a33f21ab316cd74abe.tar.gz |
clean tasks files
Diffstat (limited to 'tasks/rdoc.rake')
-rw-r--r-- | tasks/rdoc.rake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tasks/rdoc.rake b/tasks/rdoc.rake index 71adf9a..98ef3b8 100644 --- a/tasks/rdoc.rake +++ b/tasks/rdoc.rake @@ -1,6 +1,6 @@ # -*- coding: UTF-8 -*- # -require 'rake/rdoctask' +require 'rdoc/task' namespace :doc do desc 'Generate RDoc documentation' @@ -8,7 +8,7 @@ namespace :doc do rdoc = PROJ.rdoc rd.main = rdoc.main rd.rdoc_dir = rdoc.dir - + incl = Regexp.new(rdoc.include.join('|')) excl = Regexp.new(rdoc.exclude.join('|')) files = PROJ.gem.files.find_all do |fn| @@ -24,12 +24,12 @@ namespace :doc do rd.options << "-t #{title}" rd.options.concat(rdoc.opts) end - + desc 'Generate ri locally for testing' task :ri => :clobber_ri do sh "#{RDOC} --ri -o ri ." end - + task :clobber_ri do rm_r 'ri' rescue nil end |