Permalink
Browse files

Only add check_dependencies as a test prerequisite when Jeweler is fo…

…und.

This avoids aborting the “rake test” if Jeweler is not installed.
  • Loading branch information...
1 parent 8c383cd commit 84aabd161d205ec174a3c506e3c75906cef65fb1 @Flameeyes Flameeyes committed Apr 30, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -16,6 +16,8 @@ begin
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
+
+ task :spec => :check_dependencies
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
@@ -32,8 +34,6 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.rcov = true
end
-task :spec => :check_dependencies
-
task :default => :spec
require 'rake/rdoctask'

0 comments on commit 84aabd1

Please sign in to comment.