mongodb/mongo-ruby-driver — pull request #271 by estolfo (2013-09-26 22:34:28+00:00)
Title: Ruby 661 server op timeout

This pull request refactors cursor to allow for arbitrary options.

I changed the options parsing to delete from the argument opts hash and then merge whatever is left in the opts with the query message.

This will let you do something like

db.command({ :ping => 1, :maxTimeMS => 100 })

Previously, the maxTimeMS was ignored because it wasn't explicitly set in cursor.