From: Charles O Nutter Date: 2006-06-13T05:51:13+09:00 Subject: RubyGems for inclusion in JRuby ------=_Part_75695_28987949.1150145465229 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Rubyists! The next release of JRuby (0.9.0) is the first release in which RubyGems works and gems install correctly from local and remote locations. It will also be the first release in which we ship a full complement of Ruby's own .rb libraries. In short, it's the first really usable release with everything you need included. However, we have a conundrum with RubyGems. We would like to ship the release archive with RubyGems pre-installed. The installation is no big deal, and we'll just run it before wrapping things up and shipping it. However, because we look like a *NIX platform RubyGems installs just the standard unixy #! scripts. That means with a stock JRuby, Windows users would be out of luck. To make matters worse, our startup command is always "jruby" and those scripts assume the startup command is always "ruby". Therefore, we can't just invoke the scripts directly. We obviously want a way to make them run with JRuby instead of Ruby, but we don't want to break existing Ruby installs in the process. A few suggestions have been forwarded: - 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?) - Unixers can symlink ruby to jruby's startup script (Same down side as the first bullet, but at least the user is explicitly accepting that) Are there any other suggestions, or comments on these? If you were to use JRuby with RubyGems pre-installed, how would you want it to work? How would you NOT want it to work? -- Charles Oliver Nutter @ headius.blogspot.com JRuby Developer @ jruby.sourceforge.net Application Architect @ www.ventera.com ------=_Part_75695_28987949.1150145465229--