mongodb/mongo-ruby-driver — pull request #96 by johnbintz (2012-04-25 12:20:31+00:00)
Title: GridIO multi write fix

Ran into an issue where doing multiple write operations to an open GridIO file handle where the ultimate size of the file spanned a chunk. Writes like this caused the file chunks to be written incorrectly because of the use of `Mongo::Collection#insert` instead of `Mongo::Collection#save' to write the chunks to the collection. This pull request switches `insert` to `save` and adds a test to ensure the multiple writes work correctly.