Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle lack of bundler in rakefile

  • Loading branch information...
commit ce7cd53b5b9ae6aedc29b194aab7cf050a97d6a2 1 parent c709d2c
Rich Meyers richmeyers authored konstantin-dzreev committed
Showing with 7 additions and 2 deletions.
  1. +7 −2 Rakefile
9 Rakefile
View
@@ -1,7 +1,6 @@
# -*- ruby -*-
require 'rubygems'
-require 'bundler'
require "rake/testtask"
require 'rcov/rcovtask'
require 'rake/gempackagetask'
@@ -9,7 +8,13 @@ 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 == #
Please sign in to comment.
Something went wrong with that request. Please try again.