mongodb/mongo-ruby-driver — pull request #278 by estolfo (2013-10-11 16:50:32+00:00)
Title: Arbitrary command opts need to be merged into the selector

Update to db#command because arbitrary opts for a command need to be merged into the selector.

I updated the code to merge the opts with the selector in db#command. In order for this to work though, you need to remove options such as :read, :comment, :raw, and :socket from opts because they'll cause an error if passed as part of the query on $cmd.