We are using RedCloth to provide note formatting inside an open source
project called the Dradis Framework [i] and [ii]. This is a Rails-based
application that end users install in their computers.
What we have done in the past is including RedCloth’s binary .gem into
the Dradis installer and that has worked out perfectly.
However, we are looking into upgrading Dradis to Rails 3 and Ruby 1.9.2.
Unfortunately, we are running into some issues in Windows with the Ruby
Installer (1.9.2p0) and the binary version of RedCloth
(RedCloth-4.2.2-x86-mswin32-60.gem). It installs ok but then fails when
trying to load ‘msvcrt-ruby18.dll’.
I have successfully used DevKit to compile and use RedCloth 4.2.3 in a
test system, but I would like to be able to create a Ruby Installer
compatible binary gem to distribute it with the installer (thus removing
the extra dependency on DevKit for end users). Is this possible? What is
the best way to do this?
Going to the gem folder
(C:\Ruby192\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.3) and running rake
fails with a “no such file to load” error. After tweaking the Rakefile
and running ‘rake mingw compile’ also fails [iii].
Can anyone give me a hand to figure out what is going on?