mongodb/mongo-ruby-driver — pull request #94 by goddamnhippie (2012-03-05 23:52:28+00:00)
Title: Added database_name attr_reader to uri_parser

The auths array doesn't contemplate unauthenticated URIs like mongodb://localhost/test_db.
I don't know if this is the right way to go about this but this would eliminate the need to parse the URI again.