Sha256: a92e8794401354c0f5bd8ab32ee1d165917f83b613bb63c72bfe64eb4d716686

Contents?: true

Size: 1.06 KB

Versions: 140

Compression:

Stored size: 1.06 KB

Contents

require 'rake/rdoctask'

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

Version data entries

140 entries across 130 versions & 42 rubygems

Version Path
TwP-bones-2.3.0 lib/bones/tasks/rdoc.rake
TwP-bones-2.4.0 lib/bones/tasks/rdoc.rake
TwP-bones-2.4.1 lib/bones/tasks/rdoc.rake
blowmage-webby-0.9.4.1 tasks/rdoc.rake
remogatto-ffi-generator-0.1.0 tasks/rdoc.rake
remogatto-ffi-generator-0.2.0 tasks/rdoc.rake
remogatto-ffi-opengl-0.1.0 tasks/rdoc.rake
remogatto-ffi-opengl-0.2.0 tasks/rdoc.rake
remogatto-ffi-opengl-0.2.1 tasks/rdoc.rake
remogatto-ffi-swig-generator-0.1.0 tasks/rdoc.rake
remogatto-ffi-swig-generator-0.2.0 tasks/rdoc.rake
remogatto-ffi-swig-generator-0.2.1 tasks/rdoc.rake
cascading.jruby-0.0.9 tasks/rdoc.rake
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/ffi-0.6.3/tasks/rdoc.rake
cascading.jruby-0.0.8 tasks/rdoc.rake
cascading.jruby-0.0.7 tasks/rdoc.rake
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/ffi-0.6.3/tasks/rdoc.rake
cascading.jruby-0.0.6 tasks/rdoc.rake
ffi-1.0.10 tasks/rdoc.rake
firetower-0.1.1 hookr/pkg/schleyfox-hookr-1.0.1/tasks/rdoc.rake