Navigation Menu

Skip to content

Commit

Permalink
Only add check_dependencies as a test prerequisite when Jeweler is fo…
Browse files Browse the repository at this point in the history
…und.

This avoids aborting the “rake test” if Jeweler is not installed.
  • Loading branch information
Flameeyes committed Jun 19, 2010
1 parent 8c383cd commit 84aabd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -16,6 +16,8 @@ begin
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end end
Jeweler::GemcutterTasks.new Jeweler::GemcutterTasks.new

task :spec => :check_dependencies
rescue LoadError rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end end
Expand All @@ -32,8 +34,6 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.rcov = true spec.rcov = true
end end


task :spec => :check_dependencies

task :default => :spec task :default => :spec


require 'rake/rdoctask' require 'rake/rdoctask'
Expand Down

0 comments on commit 84aabd1

Please sign in to comment.