summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-08-13 10:55:14 -0700
committerAndre Arko <andre@arko.net>2015-08-13 10:55:14 -0700
commite38feb6c39d66ceabb21061cad9211ebbf6c6358 (patch)
treeb715af2f811e55b2c1faa82de66e78b5c1f23ea5 /bin
parent21ddb03ee952f96ef3cf09935c8c90db2503e088 (diff)
downloadbundler-e38feb6c39d66ceabb21061cad9211ebbf6c6358.tar.gz
rescue gem load errors so setup can run
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/rake b/bin/rake
index 45e95c6e86..90745e1a61 100755
--- a/bin/rake
+++ b/bin/rake
@@ -4,7 +4,11 @@ require "rubygems"
bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
bundler_spec.dependencies.each do |dep|
- gem dep.name, dep.requirement.to_s
+ begin
+ gem dep.name, dep.requirement.to_s
+ rescue Gem::LoadError => e
+ puts "#{e.message} (#{e.class})"
+ end
end
load Gem.bin_path("rake", "rake")