1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
require 'rubygems'
GEMSPEC = Gem::Specification.load('eventmachine.gemspec')
require 'rake/clean'
task :clobber => :clean
desc "Build eventmachine, then run tests."
task :default => [:compile, :test]
desc 'Generate documentation'
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', '-', 'docs/*.md']
t.options = ['--main', 'README.md', '--no-private']
t.options = ['--exclude', 'lib/jeventmachine', '--exclude', 'lib/pr_eventmachine']
end
rescue LoadError
task :yard do puts "Please install yard first!"; end
end
|