ZeroMQ.rb is a tiny wrapper around awesome ffi-rzmq gem. It provides proxies for context/sockets/poller that will raise ruby errors on failures, making them harder to ignore.
Add this line to your application's Gemfile:
gem 'zeromqrb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install zeromqrb
require 'zero_mq'
context = ZeroMQ::Context.new
socket = context.socket(ZMQ::REQ)
# proceed using the socket here
# errors will be raised on failure
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request