bundlerEnv: use full path to ruby in wrappers

This commit is contained in:
Charles Strahan
2015-01-24 17:35:11 -05:00
parent a83cfbfc7c
commit c1814073ac
@@ -160,7 +160,7 @@ Bundler::Installer.class_eval do
File.open(binstub_path, 'w', 0777 & ~File.umask) do |f| File.open(binstub_path, 'w', 0777 & ~File.umask) do |f|
f.print <<-TEXT f.print <<-TEXT
#!/usr/bin/env #{RbConfig::CONFIG['ruby_install_name']} #!#{RbConfig.ruby}
old_gemfile = ENV["BUNDLE_GEMFILE"] old_gemfile = ENV["BUNDLE_GEMFILE"]
old_gem_home = ENV["GEM_HOME"] old_gem_home = ENV["GEM_HOME"]
@@ -206,7 +206,7 @@ Gem::Installer.class_eval do
# Run the actual executable. # Run the actual executable.
def app_script_text(bin_file_name) def app_script_text(bin_file_name)
return <<-TEXT return <<-TEXT
#{shebang bin_file_name} #!#{RbConfig.ruby}
# #
# This file was generated by Nix's RubyGems. # This file was generated by Nix's RubyGems.
# #