summaryrefslogtreecommitdiffstats
path: root/tasks/rdoc.rake
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-19 10:23:12 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-19 10:23:12 +0200
commit4b29c337347b40528d672cd2e2b52b1c9efe33e5 (patch)
tree8c4bfd0e73790754a834491c69283767d173cde6 /tasks/rdoc.rake
parenta378e73d9da612960d0cf3eef5011c13c0139c39 (diff)
downloadffi-efl-4b29c337347b40528d672cd2e2b52b1c9efe33e5.zip
ffi-efl-4b29c337347b40528d672cd2e2b52b1c9efe33e5.tar.gz
goto bundler
Diffstat (limited to 'tasks/rdoc.rake')
-rw-r--r--tasks/rdoc.rake46
1 files changed, 0 insertions, 46 deletions
diff --git a/tasks/rdoc.rake b/tasks/rdoc.rake
deleted file mode 100644
index 98ef3b8..0000000
--- a/tasks/rdoc.rake
+++ /dev/null
@@ -1,46 +0,0 @@
-# -*- coding: UTF-8 -*-
-#
-require 'rdoc/task'
-
-namespace :doc do
- desc 'Generate RDoc documentation'
- Rake::RDocTask.new do |rd|
- 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|
- case fn
- when excl; false
- when incl; true
- else false end
- end
- rd.rdoc_files.push(*files)
- title = "#{PROJ.name}-#{PROJ.version} Documentation"
- rf_name = PROJ.rubyforge.name
- title = "#{rf_name}'s " + title if rf_name.valid? and rf_name != title
- 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
-end # namespace :doc
-
-desc 'Alias to doc:rdoc'
-task :doc => 'doc:rdoc'
-
-desc 'Remove all build products'
-task :clobber => %w(doc:clobber_rdoc doc:clobber_ri)
-
-remove_desc_for_task %w(doc:clobber_rdoc)
-
-# EOF