aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli/binstubs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/binstubs.rb')
-rw-r--r--lib/bundler/cli/binstubs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/binstubs.rb b/lib/bundler/cli/binstubs.rb
index 971d8075..f7a27b01 100644
--- a/lib/bundler/cli/binstubs.rb
+++ b/lib/bundler/cli/binstubs.rb
@@ -21,7 +21,7 @@ module Bundler
end
gems.each do |gem_name|
- spec = installer.specs.find {|s| s.name == gem_name }
+ spec = Bundler.definition.specs.find {|s| s.name == gem_name }
unless spec
raise GemNotFound, Bundler::CLI::Common.gem_not_found_message(
gem_name, Bundler.definition.specs