bblimke/webmock — pull request #166 by oruen (2012-03-03 02:28:41+00:00)
Title: Ensure em-synchrony HTTPMethods inclusion.

In a project I use em-synchrony without em-synchrony/em-http inclusion. Since Webmock considers EM::Synchrony's HTTPMethods included as soon as EM::Synchrony constant is present, but no methods really overridden that leads to a `can't yield from root fiber` exception.

Overriding EM::HTTPMethods by Webmock is not really needed when they were not overridden by em-synchrony/em-http. The only way to figure it out I can imagine is to inspect existing HTTPMethods for inclusion of methods defined by em-synchrony/em-http.

I'm really sorry for the lack of test, but I don't see a way to make properly.