The MongoDB Ruby team is pleased to announce version 2.23.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 the MongoDB Ruby Driver.
Install this release using RubyGems via the command line as follows:
gem install -v 2.23.0 mongo
Or simply add it to your Gemfile:
gem 'mongo', '2.23.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
RUBY-3612 OpenTelemetry (PR)
When the feature is enabled, Ruby driver traces driver operation and the corresponding server commands nested under the operation. Tracing can be enabled per Mongo::Client instance (by setting the tracing option to true), or globally via the OTEL_RUBY_INSTRUMENTATION_MONGODB_ENABLED environment variable.
RUBY-3552 and RUBY-3588 Deprecate support for server versions 3.6 and 4.0
Support for MongoDB server versions 3.6 and 4.0 is now deprecated, and will be removed in version 2.24.0 of the Ruby driver. If you are using MongoDB server version 4.0 or older, please upgrade to at least version 4.2.
Other New Features
- Add
csfle_convert_to_ruby_typesconfig option for converting encryption types (PR) - RUBY-3714 Client metadata capture for TruffleRuby (PR)
- RUBY-3519 Allow valid SRV hostnames with less than 3 parts (PR)
- Ruby 4.0 Support (PR)