This is an AMQP parser for AMQP 0.9.1. It isn’t an AMQP client, just the parser, so if you want to write your own
AMQP client without digging into the protocol, this gem can help you with that.
gem install amq-protocol
examples directory for some examples.
You can always find nightly builds at gems.101ideas.cz. You can install them thusly:
wget http://gems.101ideas.cz/amq-protocol-nightly.gem gem install amq-protocol-nightly.gem
NOTE: This could be better achieved by a gem server, but it’s just utterly broken.
git clone git://github.com/ruby-amqp/amq-protocol.git --recursive
Or, if you are on an older version of Git:
git clone git://github.com/ruby-amqp/amq-protocol.git git submodule update --init
If you want to change some code, don’t do so in
lib/amq/protocol/client.rb, but in
which is a template file for
codegen.py. You can re-generate the code by
nake ./tasks.rb generate.
This assumes you have nake gem installed.