dreid/rabbit_common — pull request #2 by seth (2011-10-10 23:27:10+00:00)
Title: Obtain gen_server2 as a rebar dependency rather than embed

Hi,

So I have a project that builds as an OTP release and I attempted to use erldis and amqp_client. This fails because erldis depends on gen_server2 and amqp_client depends on rabbit_common which embeds its own copy of gen_server2.

So this patch pulls out the gen_server2 code and uses rebar to pull it in as a dep. This should allow a project to pull in multiple deps that use gen_server2.