Skip to content

Latest commit

 

History

History
83 lines (48 loc) · 1.27 KB

README.md

File metadata and controls

83 lines (48 loc) · 1.27 KB

ruote-mon

A MongoDB storage for ruote.

This is the 'official' storage. There is also: https://github.com/PlasticLizard/ruote-mongodb but it contains optimizations for Plastic Lizard's team.

There is also http://github.com/reedlaw/ruote-moped but it's (2013/04/13) in an early stage of development.

Works best with a 1.9.x Ruby.

usage

require 'ruote'
require 'ruote-mon'

ruote = Ruote::Dashboard.new(
  Ruote::Worker.new(
    Ruote::Mon::Storage.new(
      Mongo::Connection.new()['ruote_mon_test'],
      {})))

# ...

running tests

assuming you have checked out side by side

ruote/
ruote-mon/

Get into ruote/ and make sure you have

gem 'mongo'
gem 'bson_ext'

in the Gemfile there. Run bundle install if necessary.

start your MongoDB server and then, from ruote/

  • basic tests :

run

  RUOTE_STORAGE=mon bundle exec ruby test/functional/storage.rb
  • functional tests :

get into ruote/ and do

  RUOTE_STORAGE=mon bundle exec ruby test/functional/test.rb

license

MIT

links

feedback