[Rubygems-developers] require hack

Simon Strandgaard neoneye at adslhome.dk
Fri Mar 26 04:41:32 EST 2004


On Fri, 2004-03-26 at 05:13, Jim Weirich wrote:
> Simon Strandgaard wrote:
> > On Tue, 2004-03-23 at 18:53, Simon Strandgaard wrote:
> > 
> >>I have made a small hack, so that it no longer is necessary to replace 
> >
> > Has anyone tried it out? 
> > 
> > Is this an ok solution?
> 
> I like it.  I have two suggestions ...
> 
> (1) Include an extra require, in case the gem in question doesn't have 
> an autorequire defined.  That would make the patch ...	

Ok.

> 
> (2) Name the file "ubygems.rb".  Then we can invoke it with ...
> 
>      ruby -rubygems non_gem_script.rb

Good idea.


Jim, did you see the 2 files at the bottom of the page?
http://rubyforge.org/tracker/download.php/126/577/439/20/gemrequirehack.rb
http://rubyforge.org/tracker/download.php/126/577/439/21/test_gemrequirehack.rb

Did the testsuite pass ok?

--
Simon Strandgaard



More information about the Rubygems-developers mailing list