AmqpNotifier is a helper library to wrap Qusion with the AMQP gem.
Run this command:
gem install amqp-notifier
If you want to get the lastest version, add:
gem "amqp_notifier", :git => "git://github.com/nosolopau/amqp_notifier.git"
To use this version, add this to your Gemfile:
gem "amqp_notifier", "0.0.3", :git => "git://github.com/nosolopau/amqp_notifier.git"
AmqpNotifier defines a method for publishing and another for subscription:
AmqpNotifier.new('exchange', 'queue').publish('routing_key', 'message')
a = AmqpNotifier.new('exchange', 'queue').subscribe('routing_key') do |info, message| puts message end