README.md in waffle-0.2.2 vs README.md in waffle-0.3.1

- old
+ new

@@ -6,33 +6,27 @@ ## Integration into Rails Insert in your Rails Gemfile: - gem 'waffle', '~> 0.2.1' + gem 'waffle' and create config file: - # production.waffle.yml - transport: rabbitmq - encoder: marshal - url: amqp://anyhost.com:5678 + production: + transport: rabbitmq + encoder: marshal + url: amqp://anyhost.com:5678 -or if RabbitMQ on local machine - - # production.waffle.yml - transport: rabbitmq - encoder: marshal - ## Usage When you want to performan event, just insert this code in place, where it must occur: - Waffle::Event.occured 'index_page_load' + Waffle::Event.occurred 'index_page_load' You can attach meta data to event like this: - Waffle::Event.occured 'index_page_load', {'user_id' => 13, 'user_name' => 'Joshua'} + Waffle::Event.occurred 'index_page_load', {'user_id' => 13, 'user_name' => 'Joshua'} or like this: - Waffle::Event.occured 'index_page_load', 'bingo!' + Waffle::Event.occurred 'index_page_load', 'bingo!'