Skip to content

Instantly share code, notes, and snippets.

@erikh
Created November 23, 2010 01:35
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 erikh/b74973ec7a7418655797 to your computer and use it in GitHub Desktop.
Save erikh/b74973ec7a7418655797 to your computer and use it in GitHub Desktop.
--- a/setup.rb
+++ b/setup.rb
@@ -20,6 +20,14 @@ end
Dir.chdir File.dirname(__FILE__)
+module Kernel
+ if RUBY_VERSION > '1.9'
+ undef require
+ alias require gem_original_require
+ undef gem_original_require
+ end
+end
+
$:.unshift 'lib'
require 'rubygems'
require 'rubygems/gem_runner'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment