lib/mongo/uri.rb in mongo-2.5.3 vs lib/mongo/uri.rb in mongo-2.6.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2014-2017 MongoDB, Inc.
+# Copyright (C) 2014-2018 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -173,29 +173,31 @@
# Error details for an invalid port.
#
# @since 2.1.0
INVALID_PORT = "Invalid port. Port must be an integer greater than 0 and less than 65536".freeze
- # Map of URI read preference modes to ruby driver read preference modes
+ # Map of URI read preference modes to Ruby driver read preference modes
#
# @since 2.0.0
READ_MODE_MAP = {
'primary' => :primary,
'primarypreferred' => :primary_preferred,
'secondary' => :secondary,
'secondarypreferred' => :secondary_preferred,
'nearest' => :nearest
}.freeze
- # Map of URI authentication mechanisms to ruby driver mechanisms
+ # Map of URI authentication mechanisms to Ruby driver mechanisms
#
# @since 2.0.0
AUTH_MECH_MAP = {
'PLAIN' => :plain,
+ # MONGODB-CR is deprecated and will be removed in driver version 3.0
'MONGODB-CR' => :mongodb_cr,
'GSSAPI' => :gssapi,
'MONGODB-X509' => :mongodb_x509,
- 'SCRAM-SHA-1' => :scram
+ 'SCRAM-SHA-1' => :scram,
+ 'SCRAM-SHA-256' => :scram256
}.freeze
# Options that are allowed to appear more than once in the uri.
#
# @since 2.1.0