Update Rakefile. (From rdoc to yardoc)

This commit is contained in:
Akiko Takano
2013-05-01 05:21:04 +09:00
parent 5f6f3c518f
commit d5db6c3055
2 changed files with 12 additions and 14 deletions

View File

@@ -1,2 +1,5 @@
^coverage$
^rdoc$
^coverage$
^rdoc$
^doc$
.yardoc$
syntax: glob

View File

@@ -1,24 +1,19 @@
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'yard'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the redmine_issue_templates plugin.'
desc 'Test the redmine_banner plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the redmine_issue_templates plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Redmine Issue Templates'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('app/**/*.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.options = ["--charset", "utf-8"]
end
YARD::Rake::YardocTask.new(:yardoc) do |t|
files = ['lib/**/*.rb', 'app/**/*.rb'] #exclude test file
t.files = files
t.options += ['--output-dir', './doc']
end