Fixed yardoc task.

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@4 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
bobaman@google.com 2010-08-10 05:01:21 +00:00
parent 70ed84ffec
commit 6901797894
1 changed files with 5 additions and 4 deletions

View File

@ -1,16 +1,17 @@
require "rake" require "rake"
begin begin
require "yard"
require "yard/rake/yardoc_task" require "yard/rake/yardoc_task"
namespace :doc do namespace :doc do
desc "Generate Yardoc documentation" desc "Generate Yardoc documentation"
YARD::Rake::YardocTask.new do |yardoc| YARD::Rake::YardocTask.new do |yardoc|
yardoc.name = "yard" yardoc.name = "yard"
yardoc.options = "-o doc/" yardoc.options = ["--verbose"]
yardoc.files = FileList[ yardoc.files = [
"lib/**/*.rb", "ext/**/*.c", "-", "README", "CHANGELOG", "LICENSE" "lib/**/*.rb", "ext/**/*.c", "README", "CHANGELOG", "LICENSE"
].exclude(/^[_\.]/) ]
end end
end end