Skip to content

Commit

Permalink
Cleanup rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Jan 26, 2012
1 parent 1b7c70c commit e89b2ab
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
require 'rubygems' unless defined?(Gem)
require 'rake' unless defined?(Rake)
import *Dir['tasks/*.rake']
require 'rubygems'
GEMSPEC = Gem::Specification.load('eventmachine.gemspec')

GEMSPEC = eval(File.read(File.expand_path('../eventmachine.gemspec', __FILE__)))

require 'yard'
require 'rake/clean'
task :clobber => :clean

desc "Build eventmachine, then run tests."
task :default => [:compile, :test]

desc 'Generate documentation'
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']
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
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e89b2ab

Please sign in to comment.