Permalink
Browse files

Rakefile cleanup

  • Loading branch information...
1 parent d08f776 commit c92b5b7fad5fcaa492e5888f07a3a6391458131b @weppos committed Aug 19, 2011
Showing with 10 additions and 9 deletions.
  1. +10 −9 Rakefile
View
@@ -1,7 +1,7 @@
require 'rubygems'
+require 'rubygems/package_task'
require 'bundler'
require 'rake/testtask'
-require 'rubygems/package_task'
require 'yard'
require 'yard/rake/yardoc_task'
@@ -20,15 +20,8 @@ if ENV['SNAPSHOT'].to_i == 1
end
-# Run all the tests in the /test folder
-Rake::TestTask.new do |t|
- t.libs << "test"
- t.test_files = FileList["test/**/*_test.rb"]
- t.verbose = true
-end
-
# Run test by default.
-task :default => ["test"]
+task :default => :test
# This builds the actual gem. For details of what all these options
@@ -88,6 +81,14 @@ desc "Package the library and generates the gemspec"
task :package => [:gemspec]
+# Run all the tests in the /test folder
+Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList["test/**/*_test.rb"]
+ t.verbose = true
+end
+
+
YARD::Rake::YardocTask.new(:yardoc) do |y|
y.options = ["--output-dir", "yardoc"]
end

0 comments on commit c92b5b7

Please sign in to comment.