Sha256: df393de24237bef7efc2eeb679321f6078e903d19beefe295ecd63502424c82a
Contents?: true
Size: 789 Bytes
Versions: 11
Compression:
Stored size: 789 Bytes
Contents
require "rake/rdoctask" namespace :doc do desc "Generate RDoc documentation" Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = "doc" rdoc.title = "#{PKG_NAME}-#{PKG_VERSION} Documentation" rdoc.options << "--line-numbers" << "--inline-source" << "--accessor" << "cattr_accessor=object" << "--charset" << "utf-8" rdoc.template = "#{ENV["template"]}.rb" if ENV["template"] rdoc.rdoc_files.include("README", "CHANGES", "LICENSE") rdoc.rdoc_files.include("lib/**/*.rb") end desc "Generate ri locally for testing" task :ri do sh "rdoc --ri -o ri ." end desc "Remove ri products" task :clobber_ri do rm_r "ri" rescue nil end end desc "Alias to doc:rdoc" task "doc" => "doc:rdoc" task "clobber" => ["doc:clobber_rdoc", "doc:clobber_ri"]
Version data entries
11 entries across 11 versions & 2 rubygems