moped v1.3.0 Release Notes

  • ๐Ÿ†• New Features

    • #114 Moped now accepts connecting with a URI. (Christopher Winslett)

    • ๐Ÿ’Ž #79 Tailable cursors are now supported. These are just Ruby Enumerators that keep the cursor open until the next document appears. The cursor will be closed when it becomes "dead".

      enumerator = session[:users].find.tailable.each # Will stay open until next doc.
    • ๐Ÿ”ง mongoid/mongoid#2460 Moped now makes the connection timeout configurable by passing a :timeout option to the session. This defaults to 5 seconds.[ "node1:27017", "node2:27017" ], timeout: 5)
    • ๐Ÿ‘ #49 Support for the 2.2 aggregation framework is included. (Rodrigo Saito)

        "$group" => {
          "_id" => "$city",
          "totalpop" => { "$sum" => "$pop" }
    • ๐Ÿ‘ #42 Moped now supports SSL connections to MongoDB. Provide the ssl: true option when creating a new Session. This is currently experimental.[ "" ], ssl: true)

    Resolved Issues

    • โฑ #110 Handle timeout errors with SSL connections gracefully and mark nodes as down without failing any other queries.

    • #109 Moped reauthorizes on "db assertion failures" with commands that have an unauthorized assertion code in the reply.