[Rubygems-developers] Native Extensions and Pure Ruby Alternatives (again)

Eric Hodel drbrain at segment7.net
Mon Dec 10 17:53:05 EST 2007


On Nov 29, 2007, at 18:39 PM, Trans wrote:

> Welll. I have it. Its quite simple. This is how it works: if you set
> 'extensions_fallback' to true in the gemspec and an extension fails to
> build on install then it says "Native extension failed to compile, but
> this gem has a fallback option. Would you like to complete the install
> without the native extensions or abort? [Y/n]
>
> If the RubyGems team thinks this is acceptable I'll send it their
> way... Honestly, I don't know how else it can be done. Without this
> one is stuck with maintaning a secondary gem and trying to inform
> potential users that there is a pure ruby option in case the native
> extension one fails --but maybe that's what the RubyGems team
> considers the better approach?


I like this, but I think extensions_fallback is a bad name.  Go ahead  
and submit the patch, and maybe we can think up a good name in the  
meantime.


More information about the Rubygems-developers mailing list