[Rubygems-developers] require hack
chad at chadfowler.com
Fri Mar 26 11:04:08 EST 2004
On Mar 26, 2004, at 10:43 AM, Simon Strandgaard wrote:
> Jim Weirich suggested a few improvements, which has been fixed.
> Now it should work out of the box.
> Purpose with this patch is to avoid
> require 'randomlib'
> has to be replaced by
> require 'rubygems'
> require_gem 'randomlib'
> so that one can stick with good old require.
> Follow these 2 steps
> 1) Place the 'ubygems.rb' file somewhere in Ruby's path:
> 2) Its necessary to the the environment variable
> That should be it.
> BTW: The patch is carefully tested.. you may try for yourself:
This is a cool hack, Simon!
More information about the Rubygems-developers