Permalink
Browse files

Load tasks only if Jeweler is installed

  • Loading branch information...
dkubb committed Nov 26, 2009
1 parent 29dcc62 commit 36f05677e78011f6985f93ef81cb3ef683fdd93b
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
@@ -1,8 +1,6 @@
require 'rubygems'
require 'rake'
-FileList['tasks/**/*.rake'].each { |task| load task }
-
begin
gem 'jeweler', '~> 1.4'
require 'jeweler'
@@ -28,6 +26,8 @@ begin
Jeweler::RubyforgeTasks.new do |rubyforge|
rubyforge.doc_task = 'yardoc'
end
+
+ FileList['tasks/**/*.rake'].each { |task| load task }
rescue LoadError
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
end

0 comments on commit 36f0567

Please sign in to comment.