From: Thomas E Enebo Date: 2006-06-15T03:42:13+09:00 Subject: Re: RubyGems for inclusion in JRuby On Thu, 15 Jun 2006, Jim Weirich defenestrated me: > Charles O Nutter wrote: > > FYI, if platform was needed, we could most easily provide > > "java-windows", > > "java-x86", or "java-windows-x86" (or some combination) given what the > > JVM > > tells us (System properties os.arch = x86 and os.name = windows). > > Anything > > beyond that would require massaging "windows" and "x86" into something > > else. > > RubyGems uses platforms for two things[1]. The obvious use is selecting > the platform for possible gems to install[2]. The other use is when > installing command file, RubyGems will create .cmd files for all the > programs in the gem. I would imagine that we still need to do this for > the JRuby version, right? It seems to me we need to differentiate > between JRuby on windows vs JRuby on Unix. Perhaps the platform string > is not the appropriate mechanizm for this. I'm will to hear > alternatives. I have not been following the thread as closely as I should have, so forgive me if this has been covered. 'java' is our platform for general Ruby behavior with the only exception of invocation scripts. So host OS is a significant discrimator for external/installation scripts, but not for general Ruby capabilities of the interpreter at large (like regardless of host OS we do not support File.tty?). It seems like this distinction may be a good option for gem creators. -Tom P.S. - I do things from cygwin on windows normally so I guess if I had a choice I would want a shell script in addition to a cmd file on Windows. I am sure I am an oddity in that regard and I suspect this is up to the gem-maker. I don't know if other have asked for this (and I know this has nothing to do with JRuby in particular). -- + http://www.tc.umn.edu/~enebo +---- mailto:enebo@acm.org ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur |