Skip to content

Releases: mongodb/mongo-ruby-driver

2.3.1

Choose a tag to compare

@estolfo estolfo released this 01 Nov 14:43

This patch release has the following bug fixes:

  • RUBY-1146 Fix Command Monitoring query formatting for queries to mongos.
  • RUBY-1147 Fix batch size and limit for find commands.
  • RUBY-1163 Fix creating indexes on subdocument fields in server < 2.6

2.4.0.rc0

Choose a tag to compare

@estolfo estolfo released this 19 Sep 12:54

This release candidate contains support for MongoDB Server version 3.4

It contains the following new features:

  • RUBY-1095 Support maxTimeMS option in parallelScan helper.
  • RUBY-1115 Support sending writeConcern for commands that write.
  • RUBY-1140 Add TLS SNI support (MRI only)
  • RUBY-1133 Allow new option, max_staleness, so users can set a limit on acceptable staleness of a secondary for a read.
  • RUBY-1126 Support collation option for operations.
  • RUBY-1136 Implement the MongoDB Handshake protocol.
  • Depend on bson gem 4.2.0.rc0 so that Decimal128 objects are supported.

2.3.0

Choose a tag to compare

@estolfo estolfo released this 16 Aug 15:43
  • RUBY-1122 Change server type to unknown when authentication fails.
  • RUBY-1092 Add option to check keys in inserted documents.
  • RUBY-1104 Automatically kill cursors when they aren't exhausted.
  • RUBY-1105 Unacknowledged writes should use legacy opts, not write commands.
  • RUBY-1111 Support custom GridFS file ids
  • RUBY-1130 Deprecate previous GridFS API.
  • RUBY-1132 Ensure that read preference is applied to #count and #distinct.
  • RUBY-1083 Support 'expire_after_seconds' in addition to 'expire_after' in Index#View
  • RUBY-1135 Only allow local_threshold to be configurable at the Mongo::Client level.
  • Incorporate Ruby docs in repository
  • General Improvements to classes and tests.
  • Depend on bson >= 4.1 so that BSON::Config::validating_keys? is an option.

2.2.7

Choose a tag to compare

@estolfo estolfo released this 25 Jul 09:19

This patch release has the following bug fixes:

  • RUBY-1100 Ensure that connecting block succeeded or disconnect socket.
  • Don't make pry a gem dependency
  • More robust tests

2.2.6

Choose a tag to compare

@estolfo estolfo released this 12 Jul 14:35

This patch release has the following fixes and improvements:

  • Add dependency on pry, which is required by the mongo_console (@pvalena)
  • Make tests more robust. Don't assume which host and port is the primary, adjust test client options.
  • Fix parsing authSource option in URI (@Soulou)
  • Ensure auth options are properly parsed in URI and make them case-insensitive.
  • RUBY-1101 Check if a SSL monitor socket is connectable before connecting it.
  • Retry a monitor's ismaster call once upon socket error.
  • RUBY-1112 Get auth mechanism by calling ismaster on a socket when it's being connected instead of relying on the server's metadata.
  • RUBY-1121 Validate usersInfo command response before parsing it.
  • Ensure that a socket is disconnected when auth fails.
  • RUBY-1117 Validate a response's id against the expected id (request id) when writing and reading off a socket. Disconnect a socket if an error was raised while it was used. (@jarthod and @elhu)
  • RUBY-1100 Fix random authentication failures leading to not authorized errors: don't share SHA1 objects between threads.

2.2.5

Choose a tag to compare

@estolfo estolfo released this 29 Apr 09:28

This release has the following bug fixes:

  • Install mongo_console again (@voxik)
  • RUBY-1101 Fix 'Socket is nil' error when primary in replicaset is shut down and using SSL.
  • Alias #kill_cursors to #close_query on a Collection::View
  • RUBY-1092 Update #to_bson method signatures for bson 4.1 API.

2.2.4

Choose a tag to compare

@estolfo estolfo released this 01 Mar 11:05

The following bug fixes are included in this release:

  • RUBY-1090 Ensure that cursor type is applied to find commands.
  • RUBY-1093 Ensure that negative limits are applied to find commands.

2.2.3

Choose a tag to compare

@estolfo estolfo released this 18 Feb 10:35

This patch level release has the following bug fixes and changes:

  • RUBY-1086 Ensure that error is raised when reply from server has the cursor not found flag.
  • RUBY-1087 Always try to add hosts reported by the primary description.
  • RUBY-1089 Fix counts in BulkWrite::Result
  • RUBY-1085 Ensure that all upserted and inserted ids are included in BulkWrite::Result
  • Driver Benchmarking tests are added to repository. Note that data files are not included in the driver repository.
  • Allow :scram to be set as authentication mechanism in the URI. (@mattberther)
  • New SDAM yaml test added - tests scenario in RUBY-1087.

2.2.2

Choose a tag to compare

@estolfo estolfo released this 25 Jan 10:36

This version has a few changes from users and bug fixes:

  • Support passing IO objects to Grid::File and lazily read from them. @janko-m
  • Remove unnecessary string allocation in GridFS Read Stream @janko-m
  • Don't store authenticator on connection instance.
  • MONGOID-4209 Test to ensure distinct always returns an array (even if no results)
  • Add more error messages indicating an operation can be retried. @jonhyman
  • RUBY-1077 Consider setVersion and electionId when detecting stale primaries
  • RUBY-1079 Update documentation for Collection::View#count
  • RUBY-1082 Account for when write concern is nil in GridFS write stream
  • RUBY-1081 Represent write concern options keys as Symbols and values as Strings or Integers
  • RUBY-1078 Use default max message size when value is nil. @jonhyman

2.2.0

Choose a tag to compare

@estolfo estolfo released this 07 Dec 15:28

This is the general release of MongoDB Ruby driver version 2.2.0, which supports MongoDB server version 3.2.

It has the changes listed in the 2.2.0.rc0 release as well as the following:

  • Update SDAM tests
  • Allow tests to run without requiring mongod to be started with the --auth flag
  • Stop monitor on server garbage collection
  • Scope connection pool to cluster