README.md in celluloid-zmq-0.13.0 vs README.md in celluloid-zmq-0.14.0.pre
- old
+ new
@@ -1,11 +1,11 @@
![Celluloid::ZMQ](https://github.com/celluloid/celluloid-zmq/raw/master/logo.png)
=================
[![Gem Version](https://badge.fury.io/rb/celluloid-zmq.png)](http://rubygems.org/gems/celluloid-zmq)
[![Build Status](https://secure.travis-ci.org/celluloid/celluloid-zmq.png?branch=master)](http://travis-ci.org/celluloid/celluloid-zmq)
-[![Dependency Status](https://gemnasium.com/celluloid/celluloid-zmq.png)](https://gemnasium.com/celluloid/celluloid-zmq)
[![Code Climate](https://codeclimate.com/github/celluloid/celluloid-zmq.png)](https://codeclimate.com/github/celluloid/celluloid-zmq)
+[![Coverage Status](https://coveralls.io/repos/celluloid/celluloid-zmq/badge.png?branch=master)](https://coveralls.io/r/celluloid/celluloid-zmq)
Celluloid::ZMQ provides Celluloid actors that can interact with [0MQ sockets][0mq].
Underneath, it's built on the [ffi-rzmq][ffi-rzmq] library. Celluloid::ZMQ was
primarily created for the purpose of writing [DCell][dcell], distributed Celluloid
over 0MQ, so before you go building your own distributed Celluloid systems with
@@ -59,11 +59,11 @@
raise
end
end
def run
- loop { handle_message! @socket.read }
+ loop { async.handle_message @socket.read }
end
def handle_message(message)
puts "got message: #{message}"
end
@@ -93,11 +93,13 @@
addr = 'tcp://127.0.0.1:3435'
server = Server.new(addr)
client = Client.new(addr)
-server.run!
+server.async.run
client.write('hi')
+
+sleep
```
Copyright
---------