Well, the gem is missing the extension binary...
Without the binary, no matter you hard you mark a gem as x86-mingw32,
is not going to work.
I would recommend to the gem author:
* Better organize the extension layout
* Use of rake-compiler to build the extension
* Add pure-ruby entry points for the library and adjust the loaded
extension using fat-binary approach.
All the above stuff can be found at rake-compiler readme:
http://github.com/luislavena/rake-compiler
And samples on how to do that in the wiki:
http://wiki.github.com/luislavena/rake-compiler/projects-using-rake-compiler
Simple cases with this approach are mysql-gem and sqlite3-ruby, but
they download 3rd party binaries to make that happen... which can be
ignored for this case.
If the repository was in GitHub, I could definitely perform the
reorganization and all the patches in a couple of hours, but Mercurial
is not my strongest DVCS
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
> Well, the gem is missing the extension binary...
>
> Without the binary, no matter you hard you mark a gem as x86-mingw32,
> is not going to work.
[snip]
> If the repository was in GitHub, I could definitely perform the
> reorganization and all the patches in a couple of hours, but Mercurial
> is not my strongest DVCS
In that case, what about RDiscount instead? Ryan Tomayko seems to be
actively maintaining it and it's on Github...
http://github.com/rtomayko/rdiscount/
Charles
AFAIK, RDiscount uses a non-portable posix functionality, is like a
memory mapped file handler (cookie something?)
Why you don't force the installation of the ruby gem and use the
development kit to make it compile it instead?
gem install --platform=ruby
Genius!
C:\>gem install bluecloth --platform=ruby
Building native extensions. This could take a while...
Successfully installed bluecloth-2.0.5
1 gem installed
C:\>irb -rubygems
irb(main):001:0> require 'bluecloth'
=> true
Luis, you truly are a Ruby Hero. :D
Charles