summaryrefslogtreecommitdiff
path: root/lib/bundler/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r--lib/bundler/source.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 970a7dc77f..64c6052ef3 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -86,12 +86,13 @@ module Bundler
Bundler.ui.info "Installing #{spec.name} (#{spec.version}) "
install_path = Bundler.requires_sudo? ? Bundler.tmp : Gem.dir
- installer = Gem::Installer.new path,
- :install_dir => install_path,
- :ignore_dependencies => true,
- :wrappers => true,
- :env_shebang => true,
- :bin_dir => "#{install_path}/bin"
+ options = { :install_dir => install_path,
+ :ignore_dependencies => true,
+ :wrappers => true,
+ :env_shebang => true }
+ options.merge!(:bin_dir => "#{install_path}/bin") unless spec.executables.nil? || spec.executables.empty?
+
+ installer = Gem::Installer.new path, options
installer.install
# SUDO HAX