Created
March 6, 2013 18:19
-
-
Save ianmariano/5101671 to your computer and use it in GitHub Desktop.
Missing ruby_noexec_wrapper? Put this script on your path and chmod a+x it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
original_file=ARGV[0] | |
ARGV.shift | |
$PROGRAM_NAME=original_file | |
require 'rubygems' | |
begin | |
require 'rubygems-bundler/noexec' | |
rescue LoadError | |
warn "unable to load rubygems-bundler/noexec" if ENV.key?('NOEXEC_DEBUG') | |
end | |
eval File.read(original_file), binding, original_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment