Skip to content

Commit

Permalink
Load tasks only if Jeweler is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Nov 26, 2009
1 parent 29dcc62 commit 36f0567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
@@ -1,8 +1,6 @@
require 'rubygems'
require 'rake'

FileList['tasks/**/*.rake'].each { |task| load task }

begin
gem 'jeweler', '~> 1.4'
require 'jeweler'
Expand All @@ -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.