celluloid/celluloid-zmq — pull request #16 by grantr (2012-12-15 01:07:49+00:00)
Title: 0MQ pubsub notifier

Adds a notifier based on pubsub sockets. This replaces the default fanout notifier and enables remote notifications. It is a drop-in replacement. Code using notifications does not need to change.

````
Celluloid::Actor[:notifications_fanout].terminate
Celluloid::Actor[:notifications_fanout] = Celluloid::ZMQ::PubsubNotifier.new("tcp://127.0.0.1:5901", ["tcp://127.0.0.1:5901", "tcp://127.0.0.1:5902"])
````
(There should probably be a Celluloid::Notifications.notifier setter to make this more obvious)

The first arg is the endpoint to bind to, the second is an array of endpoints to connect to. For now this must include the bound endpoint, but eventually that may be assumed.

Having some trouble getting tests to not hang, so no tests are included yet, but the test cases pass in irb.