Skip to content

Commit

Permalink
Allow running specs even if Jeweler is not installed.
Browse files Browse the repository at this point in the history
The check_dependencies task exists only when Jeweler is installed; if it is
not, don't add it as a dependency.
  • Loading branch information
Flameeyes committed Jun 19, 2010
1 parent 9800ee4 commit c9572c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -14,6 +14,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
Expand All @@ -30,8 +32,6 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.rcov = true
end

task :spec => :check_dependencies

task :default => :spec

require 'rake/rdoctask'
Expand Down

0 comments on commit c9572c1

Please sign in to comment.