Permalink
Browse files

Using YARD (for now, getting cryptic errors, will debug when lsegal g…

…ets better!)
  • Loading branch information...
ELLIOTTCABLE committed Sep 21, 2008
1 parent d37723f commit 0d3bef06de0dcc39e3841dec016d312e5a33fae1
Showing with 44 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +43 −1 Rakefile.rb
  3. 0 meta/docs/LICENSE
@@ -0,0 +1 @@
meta
@@ -3,7 +3,8 @@
Gem.path.unshift(File.join(File.dirname(__FILE__), "gems"))

require 'rake'
require 'rake/rdoctask'
require 'yard'
require 'yard/rake/yardoc_task'
require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'
require 'stringray/core_ext/spec/rake/verify_rcov'
@@ -66,6 +67,26 @@
end
end

namespace :yard do
YARD::Rake::YardocTask.new :generate do |t|
t.files = ['lib/**/*.rb', 'app/**/*.rb']
t.options = ['--output-dir', "meta/documentation",
'--readme', 'README.mkdn',
'--markup', 'markdown']
end

YARD::Rake::YardocTask.new :db do |t|
t.files = ['lib/**/*.rb']
t.options = ['--no-output',
'--readme', 'README.mkdn',
'--markup', 'markdown']
end

task :open do
system 'open ' + 'meta' / 'documentation' / 'index.html' if PLATFORM['darwin']
end
end

namespace :ditz do

desc "Show current issue status overview"
@@ -135,6 +156,27 @@
end
end

namespace :yard do
YARD::Rake::YardocTask.new :generate do |t|
t.files = ["systems/#{system}/**/*.rb"]
t.options = ['--output-dir', "systems/#{system}/meta/documentation",
'--db', "systems/#{system}/.yardoc",
'--readme', 'README.mkdn',
'--markup', 'markdown']
end

YARD::Rake::YardocTask.new :db do |t|
t.files = ["systems/#{system}/**/*.rb"]
t.options = ['--no-output', '--db', "systems/#{system}/.yardoc",
'--readme', 'README.mkdn',
'--markup', 'markdown']
end

task :open do
system 'open ' + 'meta' / 'documentation' / 'index.html' if PLATFORM['darwin']
end
end

desc 'Check everything over before commiting'
task :aok => [:'rcov:run', :'rcov:verify', :'rcov:open']
end
No changes.

0 comments on commit 0d3bef0

Please sign in to comment.