From 8aa63b900d80589c4ffb0bf9261daa0015e7fe90 Mon Sep 17 00:00:00 2001 From: Nora Reidy Date: Tue, 15 Jul 2025 15:47:46 -0400 Subject: [PATCH 1/6] DOCSP-51932: v2.21.2 patch release (#163) --- snooty.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snooty.toml b/snooty.toml index 7d7ee58b..f3ba841a 100644 --- a/snooty.toml +++ b/snooty.toml @@ -20,7 +20,7 @@ mongo-enterprise = "MongoDB Enterprise Edition" docs-branch = "master" # always set this to the driver branch (i.e. 1.7 1.8, etc.) version-number = "2.21" -patch-version-number = "{+version-number+}.1" +patch-version-number = "{+version-number+}.2" version = "v{+version-number+}" stable-api = "Stable API" api-root = "https://www.mongodb.com/docs/ruby-driver/current/api/" From 089de157cc298b341041b65960d2f4863d9b1781 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Wed, 16 Jul 2025 14:53:16 -0400 Subject: [PATCH 2/6] client option --- source/connect/connection-options.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/connect/connection-options.txt b/source/connect/connection-options.txt index 769ff176..429e4a59 100644 --- a/source/connect/connection-options.txt +++ b/source/connect/connection-options.txt @@ -142,6 +142,17 @@ Server Selection * - Connection Option - Description + * - **:load_balanced** + - | Whether to expect to connect to a load balancer. + | + | The driver will behave as if the server is a load balancer even if it + isn’t connected to a load balancer. + | + | **Data Type**: ``Boolean`` + | **Default**: ``false`` + | **Client Example**: ``load_balanced: { true }`` + | **Connection URI Example**: N/A + * - **:server_selector** - | Get the server selector. It either uses the read preference defined in the client options or defaults to a Primary From 943ad3c11998eca43076fe9b762cc66adcbc0a4d Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Thu, 17 Jul 2025 11:16:27 -0400 Subject: [PATCH 3/6] undo snooty change --- snooty.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snooty.toml b/snooty.toml index f3ba841a..7d7ee58b 100644 --- a/snooty.toml +++ b/snooty.toml @@ -20,7 +20,7 @@ mongo-enterprise = "MongoDB Enterprise Edition" docs-branch = "master" # always set this to the driver branch (i.e. 1.7 1.8, etc.) version-number = "2.21" -patch-version-number = "{+version-number+}.2" +patch-version-number = "{+version-number+}.1" version = "v{+version-number+}" stable-api = "Stable API" api-root = "https://www.mongodb.com/docs/ruby-driver/current/api/" From d2d50df19d41f817b20d7d727b5de2d2be59e092 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Thu, 17 Jul 2025 11:18:01 -0400 Subject: [PATCH 4/6] formatting --- source/connect/connection-options.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/connect/connection-options.txt b/source/connect/connection-options.txt index 429e4a59..812fa387 100644 --- a/source/connect/connection-options.txt +++ b/source/connect/connection-options.txt @@ -146,7 +146,7 @@ Server Selection - | Whether to expect to connect to a load balancer. | | The driver will behave as if the server is a load balancer even if it - isn’t connected to a load balancer. + isn’t connected to a load balancer. | | **Data Type**: ``Boolean`` | **Default**: ``false`` From c9b5830644503081ed737923ff3c875afd54b999 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Thu, 17 Jul 2025 11:21:49 -0400 Subject: [PATCH 5/6] formatting --- source/connect/connection-options.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/connect/connection-options.txt b/source/connect/connection-options.txt index 812fa387..d880c20b 100644 --- a/source/connect/connection-options.txt +++ b/source/connect/connection-options.txt @@ -38,8 +38,8 @@ and the ``tls`` option with a value of ``true``: uri = "mongodb://:/?connectTimeoutMS=60000&tls=true" client = Mongo::Client.new(uri) -Using a ``Mongo::Client`` -~~~~~~~~~~~~~~~~~~~~~~~~~ +Using a Mongo::Client +~~~~~~~~~~~~~~~~~~~~~ You can pass connection options as arguments to the ``Mongo::Client`` constructor instead of including them in your connection URI. From 34eeec83ea97ebcd753db326cd960af9a2520cba Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Fri, 25 Jul 2025 01:25:37 -0400 Subject: [PATCH 6/6] DR feedback --- source/connect/connection-options.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/connect/connection-options.txt b/source/connect/connection-options.txt index d880c20b..3cf2408a 100644 --- a/source/connect/connection-options.txt +++ b/source/connect/connection-options.txt @@ -145,9 +145,6 @@ Server Selection * - **:load_balanced** - | Whether to expect to connect to a load balancer. | - | The driver will behave as if the server is a load balancer even if it - isn’t connected to a load balancer. - | | **Data Type**: ``Boolean`` | **Default**: ``false`` | **Client Example**: ``load_balanced: { true }``