[Rubygems-developers] How best to change defaults for RubyGems in JRuby

Eric Hodel drbrain at segment7.net
Mon Dec 10 17:27:15 EST 2007


On Dec 3, 2007, at 21:49 PM, Charles Oliver Nutter wrote:
> I need to modify RubyGems to have slightly different defaults when
> running under JRuby. Where is the best place to do that? Should I  
> modify
> the RubyGems code we ship with, or is there a better way?
>
> For example, because JRuby's main executable is a shell script,  
> there's
> no way to use it in the shebang line of a script. Unfortunately, by
> default, RubyGems installs the exact name of the executable:
>
> #!/home/blah/jruby-1.0.2/bin/jruby
>
> So I need to enable the env-shebang option always under JRuby, so  
> these
> scripts install right.
>
> Suggestions?

RubyGems should have a configuration file that lives in /etc and  
wherever it is on win32.  I think Dan Berger posted how to do that in  
a previous message.


More information about the Rubygems-developers mailing list