Skip to content

Commit e396935

Browse files
committed
add new URI option mappings to client tutorial
1 parent 7355473 commit e396935

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

docs/tutorials/ruby-driver-create-client.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,18 @@ URI Options Conversions
124124
* - fsync=Boolean
125125
- ``{ :write => { :fsync => true|false }}``
126126

127+
* - heartbeatFrequencyMS=Integer
128+
- ``:heartbeat_frequency => Float``
129+
127130
* - journal=Boolean
128131
- ``{ :write => { :j => true|false }}``
129132

130133
* - localThresholdMS=Integer
131134
- ``:local_threshold => Float``
132135

136+
* - maxIdleTimeMS=Integer
137+
- ``:max_idle_time => Float``
138+
133139
* - maxPoolSize=Integer
134140
- ``:max_pool_size => Integer``
135141

@@ -151,6 +157,27 @@ URI Options Conversions
151157
* - socketTimeoutMS=Integer
152158
- ``:socket_timeout => Float``
153159

160+
* - tls=Boolean
161+
- ``:ssl => boolean``
162+
163+
* - tlsAllowInvalidCertificates=Boolean
164+
- ``:ssl_verify => boolean``
165+
166+
* - tlsCAFile=String
167+
- ``:ssl_ca_cert => String``
168+
169+
* - tlsClientCertFile=String
170+
- ``:ssl_cert => String``
171+
172+
* - tlsClientKeyFile=String
173+
- ``:ssl_key => String``
174+
175+
* - tlsClientKeyPassword=String
176+
- ``:ssl_key_pass_phrase => String``
177+
178+
* - tlsInsecure=Boolean
179+
- ``:ssl_verify => boolean``
180+
154181
* - w=Integer|String
155182
- ``{ :write => { :w => Integer|String }}``
156183

lib/mongo/uri.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ def self.uri_option(uri_key, name, extra = {})
453453
uri_option 'ssl', :ssl
454454
uri_option 'tls', :ssl
455455
uri_option 'tlsallowinvalidcertificates', :ssl_verify, :type => :ssl_verify
456-
uri_option 'tlscafilepath', :ssl_ca_cert
457-
uri_option 'tlsclientcertfilepath', :ssl_cert
458-
uri_option 'tlsclientkeyfilepath', :ssl_key
456+
uri_option 'tlscafile', :ssl_ca_cert
457+
uri_option 'tlsclientcertfile', :ssl_cert
458+
uri_option 'tlsclientkeyfile', :ssl_key
459459
uri_option 'tlsclientkeypassword', :ssl_key_pass_phrase
460-
460+
uri_option 'tlsinsecure', :ssl_verify, :type => :ssl_verify
461461

462462
# Topology options
463463
uri_option 'connect', :connect

0 commit comments

Comments
 (0)