mongo-ruby-driver/lib/mongo
Mislav Marohnić 56f37e49b6 replace usage of `returning` with `each_with_object`
`each_with_object` is a Ruby 1.9 method, here re-implemented in core_ext.rb
in case it's missing (for older Ruby versions). Using `returning` is bad in
combination with Ruby on Rails because each usage of the method will emit
a Rails deprecation warning. This might be considered an Active Support bug,
but it's better to avoid using `returning` altogether and use `tap` from
Ruby 1.8.7, also re-implemented here in case it's missing.

Since existing usages or `returning` were better suited for `each_with_object`
than `tap`, they were rewritten using the former instead.
2010-09-13 01:10:38 +08:00
..
gridfs RUBY-158 deprecate BSON::ObjectID for BSON::ObjectId 2010-08-24 12:49:23 -04:00
util replace usage of `returning` with `each_with_object` 2010-09-13 01:10:38 +08:00
collection.rb Create logging message only when a logger is passed to the Connection. 2010-09-08 14:27:27 -04:00
connection.rb replace usage of `returning` with `each_with_object` 2010-09-13 01:10:38 +08:00
cursor.rb replace usage of `returning` with `each_with_object` 2010-09-13 01:10:38 +08:00
db.rb RUBY-158 deprecate BSON::ObjectID for BSON::ObjectId 2010-08-24 12:49:23 -04:00
exceptions.rb minor: source file encoding with magic comment 2010-05-07 15:33:27 -04:00