Permalink
Browse files

Handle lack of bundler in rakefile

  • Loading branch information...
1 parent c709d2c commit ce7cd53b5b9ae6aedc29b194aab7cf050a97d6a2 @richmeyers richmeyers committed with konstantin Jan 19, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 Rakefile
View
@@ -1,15 +1,20 @@
# -*- ruby -*-
require 'rubygems'
-require 'bundler'
require "rake/testtask"
require 'rcov/rcovtask'
require 'rake/gempackagetask'
require 'rake/clean'
$: << File.dirname(__FILE__)
testglobs = ["test/ts_right_aws.rb"]
-Bundler::GemHelper.install_tasks
+begin
+ require 'bundler'
+rescue LoadError => e
+ STDERR.puts("Bundler is not available, some rake tasks will not be defined: #{e.message}")
+else
+ Bundler::GemHelper.install_tasks
+end
# == Gem == #

0 comments on commit ce7cd53

Please sign in to comment.