Sha256: 8d91e98974d1715fdf96b9e5587ee9d8491a2d51c0bc1fb0d1db22675f3a8bd1

Contents?: true

Size: 1.06 KB

Versions: 99

Compression:

Stored size: 1.06 KB

Contents

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

Version data entries

99 entries across 99 versions & 9 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.7.4 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.7.3 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.7.2 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.7.1 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.7.0 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.9 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.8 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.7 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/ffi-1.1.5/tasks/rdoc.rake
classiccms-0.6.6 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.5 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.4 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.3 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.2 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.1 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.6.0 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.5.17 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
classiccms-0.5.16 vendor/bundle/gems/ffi-1.0.11/tasks/rdoc.rake
ffi-1.1.5-x86-mingw32 tasks/rdoc.rake