dbalatero/typhoeus — pull request #151 by danielcavanagh (2012-04-26 05:39:25+00:00)
Title: switch typhoeus to ffi

makes typhoeus use ffi to access libcurl, rather than the c extension

the changes have been tested on ruby 1.9, ruby 1.8, and jruby 1.6.7 (--1.9 and --1.8) on mac os 10.7, win xp, and win 7. everything works

the instructions for installing on windows have been updated and are much simpler now

all specs pass, except for a few time-based ones on windows (easy.connect_time and such). these fail because libcurl itself returns 0.0 for these times rather than the higher value that the specs are expecting. not much to be done about it other than being more permissive in the specs if on windows?

the specs however won't start on windows jruby until my pull request for headius/spoon is accepted and a new version pushed to rubygems.org

i've tested rubinius on mac os x with the very latest code in git (they've only just added support for enum and callbacks) but it's still missing at least union support so no go just yet. maybe in a few weeks though?

macruby doesn't work because it's ffi implementation is completely gimped and no one seems to care. i guess this can be considered a regression, but the macruby kids can just stick with a previous version of the code if they wish to continue using typhoeus. no point holding back typhoeus just for them

blast off to the future!