Releases: mongodb/mongo-ruby-driver
Releases · mongodb/mongo-ruby-driver
MongoDB Ruby Driver v1.0.1
- set Encoding.default_internal
- DEPRECATE JavaScript string on Collection#find. You now must specify $where explicitly.
- Added Grid#exist? and GridFileSystem#exist?
- Support for replication acknowledgment
- Support for $slice
- Namespaced OrderedHash under BSON (sleverbor)
MongoDB Ruby Driver v1.0
Note: if upgrading from versions prior to 0.20, be sure to upgrade
to 0.20 before upgrading to 1.0.
- Inspected ObjectID is represented in MongoDB extended json format.
- Support for tailable cursors.
- Configurable query response batch size (thx. to Aman Gupta)
- bson_ext installs on early release of Ruby 1.8.5 (dfitzgibbon)
- Deprecated DB#create_index. Use Collection#create_index index.
- Removed deprecated Grid#put syntax; no longer requires a filename.
MongoDB Ruby Driver v0.20
If upgrading from a previous version of the Ruby driver, please read these notes carefully,
along with the 0.20_UPGRADE doc.
- Support for new commands:
- Collection#find_and_modify
- Collection#stats
- DB#stats
- Query :fields options allows for values of 0 to exclude fields (houdini, railsjedi).
- GridFS
- Option to delete old versions of GridFileSystem entries.
- Filename is now optional for Grid#put.
- Option to write arbitrary attributes to a file: @grid.put(@DaTa, :favorite_phrase => "blimey!")
- Indexes created on the chunks collection are now unique. If you have an existing chunks collection,
you may want to remove
- Removed the following deprecated items:
- GridStore class
- RegexpOfHolding class
- Paired connections must now be initialized with Connection.paired
- BSON-related code extracted into two separate gems: bson and bson_ext (thx to Chuck Remes).
- mongo_ext no longer exists.
- BSON::Binary constructor can now take a string, which will be packed into an array.
- Exception class adjustments:
- Mongo::InvalidObjectID moved to BSON::InvalidObjectID
- Mongo::InvalidDocument moved to BSON::InvalidDocument
- Mongo::InvalidStringEncoding moved to BSON::InvalidStringEncoding
- Mongo::InvalidName replaced by Mongo::InvalidNSName and BSON::InvalidKeyName
- BSON types are now namespaced under the BSON module. These types include:
- Binary
- ObjectID
- Code
- DBRef
- MinKey and MaxKey
- Extensions compile on Rubinius (Chuck Remes).