square/cube — pull request #27 by LemonCake (2012-01-13 00:41:56+00:00)
Title: Added support for replicaSet mongo setup

Add support for replicaSet mongo setups by passing in an array of server parameters in the form of [, , ] to the options hash key 'mongo-hosts'

eg.
[
['db1.domain.com', 27017, { auto_reconnect: true, slave_ok: true }
['db2.domain.com', 27017, { auto_reconnect: true, slave_ok: true }
...
]