Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow running specs even if Jeweler is not installed.

The check_dependencies task exists only when Jeweler is installed; if it is
not, don't add it as a dependency.
  • Loading branch information...
commit c9572c14758e3dba6e1ad1da5320cfbb3160aff2 1 parent 9800ee4
@Flameeyes Flameeyes authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
4 Rakefile
@@ -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
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.