Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.0.2
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (26 sloc) 0.921 kb

tavern-redis

Tavern Redis lets you publish and receive tavern messages over redis. Useful for situations where you want to implement simple pubsub with ruby-like semantics over a network. Magic!

Installation

Add this line to your application's Gemfile:

gem 'tavern-redis'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tavern-redis

Usage

Inside your application, simple set your hub to a Tavern::Redis::Hub instance:

Tavern.hub = Tavern::Redis::Hub.new Redis.new

Next, in a script where you want the subscribers to work, run:

Tavern.hub.start

Whilst using the hub as normal in your main application

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Jump to Line
Something went wrong with that request. Please try again.