From: Charles O Nutter Date: 2006-06-14T05:35:33+09:00 Subject: Re: RubyGems for inclusion in JRuby ------=_Part_95759_27124749.1150230912349 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline If we were to talk about "fixing" the installation of RubyGems, I think the following might be a good model: - base the files installed off querying something from the implementation (like whether to install unix or windows-friendly scripts...or both in our case) - modify the scripts to reference the install platform's ruby executables (jruby (sh) or jruby.bat in our case) That would certainly be ideal for a future rubygems release; if we were able to count on the installer asking us how it should install itself, we'd avoid all issues with script naming and updating. On 6/13/06, Austin Ziegler wrote: > > On 6/12/06, Charles O Nutter wrote: > > - Rename jruby startup scripts to 'ruby' > > (Obviously bad because it would mask a pre-existing Ruby install, so not > > high on our list) > > - Modify the installed gem scripts to invoke jruby instead of ruby > > (Not a bad suggestion, but it would only take a single gemupdate to wipe > out > > our custom scripts) > > - Provide "J"-prefixed versions of the RubyGems scripts that know how to > > invoke thins correctly, e.g. jgem, jgemupdate > > (Ugly, but the most clean and compatible solution by far; the RubyGems > > scripts could then update without breaking anything, and the J-prefixed > > versions would always work. However, it creates a bunch of new scripts > to > > maintain, and did I mention it's a little ugly?) > > I think this is the best option. You could probably work with RubyGems > to get them to use something like Config::CONFIG["RUBY_INSTALL_NAME"]. > It would also be useful if they created the .cmd scripts based on > something other than just platform. ;) > > -austin > -- > Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ > * austin@halostatue.ca * http://www.halostatue.ca/feed/ > * austin@zieglers.ca > > -- Charles Oliver Nutter @ headius.blogspot.com JRuby Developer @ jruby.sourceforge.net Application Architect @ www.ventera.com ------=_Part_95759_27124749.1150230912349--