Download Latest Version 2.26.0 source code.zip (3.2 MB)
Email in envelope

Get an email when there's a new version of MongoDB Ruby Driver

Home / v2.26.0
Name Modified Size InfoDownloads / Week
Parent folder
mongo-2.26.0.gem < 14 hours ago 431.1 kB
mongo-2.26.0.gem.sig < 14 hours ago 833 Bytes
2.26.0 source code.tar.gz < 14 hours ago 1.7 MB
2.26.0 source code.zip < 14 hours ago 3.2 MB
README.md < 14 hours ago 2.2 kB
Totals: 5 Items   5.3 MB 0

The MongoDB Ruby team is pleased to announce version 2.26.0 of the mongo gem - a pure-Ruby driver for connecting to, querying, and manipulating MongoDB databases. This is a new minor release in the 2.x series of MongoDB Ruby Driver.

Install this release using RubyGems via the command line as follows:

gem install -v 2.26.0 mongo

Or simply add it to your Gemfile:

gem 'mongo', '2.26.0'

Have any feedback? Click on through to MongoDB's JIRA and open a new ticket to let us know what's on your mind 🧠.

New Features

Add option to configure DEK cache lifetime (RUBY-3524 | PR)

Adds a new option to the Mongo::Client constructor: :key_expiration_ms. This is used to specify the lifetime of the data encryption key cache, in milliseconds. Must be a non-negative integer. A value of 0 means the cache never expires. Defaults to 60000.

Client backpressure with baseBackoffMS (RUBY-3901 | PR)

Improved performance for MongoDB 9.0's Intelligent Workload Management (IWM) by only retrying overload errors when doing so is expected to not worsen server conditions.

Other New Features

  • Add QE text queries (prefix/suffix/substring) (RUBY-3903 | PR)

Bug Fixes

  • Disallow comma in authMechanismProperties connection string value (RUBY-3482 | PR)
  • Fix libmongocrypt version floor, ClientEncryption timeout_ms and missing range_opts (RUBY-3903 | PR)
  • Consult server-side encryptedFields when dropping QE collections (PR)
  • Use exact match for file ID in GridFS methods (CVE-2026-88030)
Source: README.md, updated 2026-09-10