diff options
author | André Arko <andre@arko.net> | 2013-09-27 14:41:53 -0700 |
---|---|---|
committer | André Arko <andre@arko.net> | 2013-09-27 14:41:53 -0700 |
commit | 1f6805e60b0f655fb0b1907133f63b38778d7a44 (patch) | |
tree | d19d1b93b89606ce2323987ae0e98afd3b175522 | |
parent | f4e0464282426a2ec65ac4d6e3675b0a3498be61 (diff) | |
parent | aa6088aa2f53640fceb5f618947a92168161d0e2 (diff) | |
download | bundler-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.rb | 6 |
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| |