bundlerEnv: use full path to ruby in wrappers

This commit is contained in:
Charles Strahan 2015-01-24 16:05:33 -05:00
parent a83cfbfc7c
commit c1814073ac

View file

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