Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleanup rakefile

  • Loading branch information...
commit e89b2ab7a9a5dbe3962ed6d5c1743374338f790e 1 parent 1b7c70c
@raggi raggi authored
View
21 Rakefile
@@ -1,10 +1,6 @@
-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
@@ -12,8 +8,13 @@ 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
View
0  tasks/cpp.rake_example → rakelib/cpp.rake_example
File renamed without changes
View
0  tasks/package.rake → rakelib/package.rake
File renamed without changes
View
0  tasks/test.rake → rakelib/test.rake
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.