2009-11-04 17:00:05 -05:00
|
|
|
require 'rubygems'
|
2010-04-09 11:08:06 -04:00
|
|
|
require 'spec/rake/spectask'
|
2010-07-14 18:24:59 -04:00
|
|
|
require 'yard'
|
2009-12-29 23:34:48 -05:00
|
|
|
|
2010-04-09 11:08:06 -04:00
|
|
|
desc "Run all examples"
|
|
|
|
Spec::Rake::SpecTask.new('spec') do |t|
|
2010-09-15 12:18:15 -04:00
|
|
|
t.spec_opts = ['--color']
|
2010-04-09 11:08:06 -04:00
|
|
|
t.spec_files = FileList['spec/**/*.rb']
|
2009-11-04 17:00:05 -05:00
|
|
|
end
|
2010-04-09 11:24:14 -04:00
|
|
|
|
2010-07-14 18:24:59 -04:00
|
|
|
YARD::Rake::YardocTask.new do |t|
|
|
|
|
t.files = ['lib/**/*.rb', 'README.rdoc']
|
|
|
|
#t.options = ['--any', '--extra', '--opts'] # optional
|
|
|
|
end
|
|
|
|
|
2010-04-09 11:24:14 -04:00
|
|
|
task :default => :spec
|