From: Charles O Nutter Date: 2006-06-15T00:25:22+09:00 Subject: Re: RubyGems for inclusion in JRuby ------=_Part_110090_18501674.1150298719252 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/13/06, Jim Weirich wrote: > > What does your Config::CONFIG['arch'] look like? Actually it appears to be nil right now; I will fix that based on this discussion. When corrected it will likely be 'java', perhaps with a real underlying platform (win32, linux, whatever) as well. I think it's probably important that java be mentioned, given that we're a distinctly different platform, underlying operating system notwithstanding. ...time passes... I've made it 'java' for the moment. If we can settle this before our 0.9.0release in the next couple days, I'll change it to whatever. Actually, rubygems uses: > > File.join(Config::CONFIG['bindir'], > Config::CONFIG['ruby_install_name']) > > What are the bindir and ruby_install_name values set to under JRuby? bindir = /bin, so it's pointing at the correct location for... ruby_install_name = 'jruby.bat' on my Windows machine, likely just 'jruby' on *nix. The RubyGems teams is very willing to work this out. Thank you much! We're also willing to tailor the Config items most interesting to RubyGems to better suit how they're being used. Given the above, I'd see the following scenario: The "ruby" executable on a windows machine would be /bin/jruby.bat. The arch could be something like 'java' or maybe 'java-win32'. I'm inclined to make it as OS-agnostic as possible, but the legend of complete platform independence is long and storied. If we need the -platform bit, it's probably doable. Preference would be to exclude. RubyGems scripts would be installed such that they use jruby.bat instead of 'ruby'. If arch == 'java', I'd say it would be best to install both Windows and *nix scripts, so they're all present. If arch provides more platform information like 'win32', RubyGems could choose appropriately. -- Charles Oliver Nutter @ headius.blogspot.com JRuby Developer @ jruby.sourceforge.net Application Architect @ www.ventera.com ------=_Part_110090_18501674.1150298719252--