summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Arko <andre@arko.net>2013-09-27 14:41:53 -0700
committerAndré Arko <andre@arko.net>2013-09-27 14:41:53 -0700
commit1f6805e60b0f655fb0b1907133f63b38778d7a44 (patch)
treed19d1b93b89606ce2323987ae0e98afd3b175522
parentf4e0464282426a2ec65ac4d6e3675b0a3498be61 (diff)
parentaa6088aa2f53640fceb5f618947a92168161d0e2 (diff)
downloadbundler-1f6805e60b0f655fb0b1907133f63b38778d7a44.tar.gz
Merge pull request #2651 from cowboyd/use-instance-definition-in-installer
don't use global definition in standalone gen
-rw-r--r--lib/bundler/installer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index 80427ff937..bd6b1b07bf 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -148,7 +148,7 @@ module Bundler
if options[:binstubs_cmd] && spec.executables.empty?
options = {}
spec.runtime_dependencies.each do |dep|
- bins = Bundler.definition.specs[dep].first.executables
+ bins = @definition.specs[dep].first.executables
options[dep.name] = bins unless bins.empty?
end
if options.any?
@@ -233,9 +233,9 @@ module Bundler
paths = []
if groups.empty?
- specs = Bundler.definition.requested_specs
+ specs = @definition.requested_specs
else
- specs = Bundler.definition.specs_for groups.map { |g| g.to_sym }
+ specs = @definition.specs_for groups.map { |g| g.to_sym }
end
specs.each do |spec|