Sha256: 38ddf53e942f7779db100f383e18b84354deb8bd1c43914887c2a7613faa48b9

Contents?: true

Size: 723 Bytes

Versions: 5

Compression:

Stored size: 723 Bytes

Contents

# Waffle

An abstract flow publisher and subscriber.

[![Build Status](https://secure.travis-ci.org/peanut/waffle.png?branch=master)](http://travis-ci.org/peanut/waffle)

## 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!'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
waffle-0.3.5 README.md
waffle-0.3.4 README.md
waffle-0.3.3 README.md
waffle-0.3.2 README.md
waffle-0.3.1 README.md