QueueWorker
A light STOMP wrapper to ease interaction with a queueing system (e.g. ActiveMQ)
Installation
Add this line to your application's Gemfile:
gem 'queue_worker'
And then execute:
$ bundle
Or install it yourself as:
$ gem install queue_worker
Usage
worker = QueueWorker.new('some_queue_name')
worker.push({ name: 'foo' })
worker.handler = proc { |args| puts "Got #{args}" }
worker.subscribe
Contributing
- Fork it ( https://github.com/ridiculous/queue_worker/fork )
- 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 a new Pull Request