From: Nick Sieger Date: 2007-08-22T05:34:33+09:00 Subject: Re: Dear Lazyweb: Gem Platforms ------=_Part_103504_21421808.1187728465316 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/20/07, Eric Hodel wrote: > > On Aug 20, 2007, at 22:11, Nick Sieger wrote: > > > "java" is actually not used in either CPU or OS strings in the > > config hash > > currently (this is reflected in the tattle data). JRuby uses > > "java" either > > in the 'arch' or 'target' strings: > > > > irb(main):002:0> Config::CONFIG.select {|k,v| v =~ /java/} > > => [["archdir", > > "/Users/nicksieger/Projects/jruby/trunk/jruby/lib/ruby/site_ruby/ > > 1.8/java"], > > ["arch", "i386-java1.5"], ["build", "java1.5"], ["sitearchdir", > > "/Users/nicksieger/Projects/jruby/trunk/jruby/lib/ruby/site_ruby/ > > 1.8/java"], > > ["target", "java1.5"]] > > irb(main):003:0> RUBY_PLATFORM > > => "java" > > > > Can you work 'arch' into the logic somehow? Or suggest an > > alternative way > > to ensure that JRuby/java platform is possible for gems? > > How's this? It now uses Config::CONFIG['arch']: Looks good, thanks. /Nick ------=_Part_103504_21421808.1187728465316--