[Rubygems-developers] How to bundle up MS Windows version separately

Trans transfire at gmail.com
Mon Nov 5 06:03:58 EST 2007


On Nov 4, 2007 10:41 PM, Assaph Mehr <assaph at gmail.com> wrote:
> Hi Mikel,
>
>
> > I am wondering if anyone has a good link / resource / howto, whatever
> > on how you make a windows gem or a different version so that you get
> > this sort of output on gem install:
> >
> > Select which gem to install for your platform (i386-openbsd4.1)
> >  1. hpricot 0.6 (mswin32)
> >  2. hpricot 0.6 (jruby)
> >  3. hpricot 0.6 (ruby)
> >  4. ...
>
> Look at: http://rubygems.org/read/chapter/20#platform
> Use the #platform directive of the gem specification to note the
> target platform. The default is Ruby.

I'm still confused by one thing. When I use setup.rb, it will compile
extensions and I'll end with .so files located down in ext/ somewhere.
For instacen with TMail:

  ext/tmail/base64/base64.so
  ext/tmail/scanner_c/scanner_c.so

But when I create a gem how does gems know where to find the .so ?


More information about the Rubygems-developers mailing list