Skip to content

Instantly share code, notes, and snippets.

@ianmariano
Created March 6, 2013 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianmariano/5101671 to your computer and use it in GitHub Desktop.
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.
#!/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