moped v1.2.7 Release Notes

  • Resolved Issues

    • #87 Moped::BSON::ObjectId.legal? now returns true for object ids.

    • #85 Allow === comparisons with object ids to check for equality of the underlying string. (Bob Aman)

    • #84 Query hints are no longer wiped on explain.

    • #60/#80 Moped now gracefully handles replica set reconfig and crashes of the primary and secondary. By default, the node list will be refreshed every second and the operation will be retried up to 30 times. This is configurable by setting the :max_retries and :retry_interval options on the session.

      Moped::Session.new(
        [ "node1:27017", "node2:27017" ],
        retry_interval: 0.5, max_retries: 45
      )