Typhoeus 0.6.1 fails to make requests when webmock is loaded, raising an error instead:
NoMethodError: undefined method `to_sym' for nil:NilClass
from gems/1.8/gems/webmock-1.9.0/lib/webmock/request_stub.rb:80:in `from_request_signature'
from gems/1.8/gems/webmock-1.9.0/lib/webmock/errors.rb:26:in `stubbing_instructions'
from gems/1.8/gems/webmock-1.9.0/lib/webmock/errors.rb:7:in `initialize'
from gems/1.8/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:150:in `new'
from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:21:in `call'
from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:21:in `run'
from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:20:in `each'
from gems/1.8/gems/typhoeus-0.6.1/lib/typhoeus/request/before.rb:20:in `run'
Possibly related to #239, but it seems like the code in question here is different.
Thanks for reporting! Can you provide a simple example b/c the tests are passing.
Yep, (from memory) it should be enough to do this in irb:
ouch! Will look into it!
I included a fix in my existing PR: #253.
@bblimke @iangreenleaf I referenced the wrong issue from my PR. This issue should be fixed.
Just released 1.9.1 with the pull request included.
@bblimke Thank you very much!