From b81ec4e5e252d43452b0994a0e92a813cfcc93e4 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sun, 11 Jul 2010 17:08:25 -0300 Subject: Don't add bin_dir if there are no executables --- lib/bundler/source.rb | 13 +++++++------ 1 file 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 -- cgit v1.2.1