From: Chad Fowler Date: 2004-08-27T00:43:39+09:00 Subject: Re: Binary gems with precompiled so files for different platforms? On Fri, 27 Aug 2004 00:20:09 +0900, Gavin Sinclair wrote: > On Thursday, August 26, 2004, 10:25:48 PM, Mauricio wrote: > > >> Does RubyGems currently support precompiled binary gems so that I can > >> make one gem that then unpacks the right versions of the so/dll files > >> for the platform? > > > IIRC the canonical way to handle that is creating one gem per platform > > and releasing it under a different name. > > >> Any tutorial / examples of this? > > > One example would be > > > fxruby-1.2.1-mswin32.gem (win32 bin) > > fxruby-1.2.1.gem (source) > > Unless I'm much mistaken, those gems have the same *name* ('fxruby') > but different *platforms*. The filename is not chosen by the person > building the gem; the filename is not actually important. > That's right. The gem build command uses various conventions to avoid gems of the same name and different platforms clobbering each other. But the actual selection of gem to install based on platform uses the gem's metadata--not it's name. So you could have an fxruby gem named blah.gem, and it would still get it's platform _and_ name from the gemspec. Chad