mongo-ruby-driver/lib/mongo/util
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
..
conversions.rb minor: source file encoding with magic comment 2010-05-07 15:33:27 -04:00
core_ext.rb replace usage of returning with each_with_object 2010-09-13 01:10:38 +08:00
server_version.rb minor: source file encoding with magic comment 2010-05-07 15:33:27 -04:00
support.rb fix for boolean command response in core server 1.5.2 2010-05-31 22:52:03 -04:00