Abstract queue sender and receiver
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.travis.yml
Gemfile
README.md
Rakefile
waffle.gemspec

README.md

Waffle

An abstract flow publisher and subscriber.

Build Status

Integration into Rails

Insert in your Rails Gemfile:

gem 'waffle'

and create config file:

production:
  transport: rabbitmq
  encoder: marshal
  url: amqp://anyhost.com:5678

Usage

When you want to performan event, just insert this code in place, where it must occur:

Waffle::Event.occurred 'index_page_load'

You can attach meta data to event like this:

Waffle::Event.occurred 'index_page_load', {'user_id' => 13, 'user_name' => 'Joshua'}

or like this:

Waffle::Event.occurred 'index_page_load', 'bingo!'