Permalink
Browse files

Keep rake functional in absence of bundler.

Even without bundler it is possible to run the tests.
  • Loading branch information...
1 parent ee869ff commit 4d3c4b044b64e1117f7bd08579a9f90abd838b6f @p p committed Aug 26, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 Rakefile
View
10 Rakefile
@@ -1,5 +1,11 @@
-require 'bundler'
-Bundler::GemHelper.install_tasks
+begin
+ require 'bundler'
+rescue LoadError => e
+ warn("warning: Could not load bundler: #{e}")
+ warn(" Some rake tasks will not be defined")
+else
+ Bundler::GemHelper.install_tasks
+end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|

0 comments on commit 4d3c4b0

Please sign in to comment.