mongodb/mongo-ruby-driver — pull request #195 by estolfo (2013-05-08 21:51:35+00:00)
Title: RUBY-607 Fix nearest read pref option

Specifying a :nearest read preference was failing in the read preference module. This pull request fixes the issue so that :nearest can be used as a read preference.

A unit test is part of this PR as well to verify that select_pool works for each read mode in the read preference module.