What is amq-protocol
amq-protocol is an AMQP 0.9.1 serialization library for Ruby. It is not an AMQP 0-9-1 client such as Bunny: amq-protocol only handles serialization and deserialization.
If you want to write your own AMQP 0-9-1 client, this gem will handle all the serialization needs for you, including RabbitMQ extensions to AMQP 0.9.1.
Supported Ruby Versions
2.3.0only supports Ruby 2.2+.
2.2.0and later supports Ruby 2.0+.
1.9.2was the last version to support Ruby 1.8 and 1.9.
gem install amq-protocol
Make sure you have Python, pip and the mako templating package installed:
pip install mako
amq-protocol uses RabbitMQ protocol code generation library that is in Python, so there is some Python involved in the build.
lib/amq/protocol/client.rb from the source (
codegen/* files), run
To make changes, do not edit client.rb directly. Instead, edit the
codegen/protocol.rb.pytemplate and regenerate.
To run tests, use
bundle install --binstubs ./bin/rspec -c spec spec
amq-protocol is maintained by Michael Klishin.
Please report any issues you may find to our Issue tracker on GitHub.
Any questions you may have should be sent to the Ruby AMQP mailing list.
MIT (see LICENSE in the repository root).