summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-01-26 14:35:00 -0800
committerAndre Arko <andre@arko.net>2014-01-26 14:35:00 -0800
commit106a2589ee09d4d113780062b0befc9ab9938605 (patch)
treeda7255af0004cfaef2a533f9cf967cd7f3788248
parent2f15c3c9f501320d87e7ae7b6f9e7e8f29a0534d (diff)
downloadbundler-106a2589ee09d4d113780062b0befc9ab9938605.tar.gz
fix NoMethodError when binstubs errors
/cc @Who282
-rw-r--r--lib/bundler/cli/binstubs.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/cli/binstubs.rb b/lib/bundler/cli/binstubs.rb
index 3fd74038b0..05cad4d147 100644
--- a/lib/bundler/cli/binstubs.rb
+++ b/lib/bundler/cli/binstubs.rb
@@ -19,7 +19,10 @@ module Bundler
gems.each do |gem_name|
spec = installer.specs.find{|s| s.name == gem_name }
- raise GemNotFound, not_found_message(gem_name, Bundler.definition.specs) unless spec
+ unless spec
+ raise GemNotFound, Bundler::CLI::Common.gem_not_found_message(
+ gem_name, Bundler.definition.specs)
+ end
if spec.name == "bundler"
Bundler.ui.warn "Sorry, Bundler can only be run via Rubygems."
@@ -28,5 +31,6 @@ module Bundler
end
end
end
+
end
end