Skip to content

Commit 85da0d0

Browse files
authored
RUBY-2942: Update documentation links (#5482)
1 parent 6291585 commit 85da0d0

File tree

13 files changed

+22
-22
lines changed

13 files changed

+22
-22
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ For instructions on upgrading to newer versions, visit
6363

6464
* Mongoid now uses the official Mongo Ruby Driver 2.x instead of Moped.
6565

66-
* Most driver specific configuration options have changed, please see [here](http://docs.mongodb.org/ecosystem/tutorial/ruby-driver-tutorial/#ruby-options) for the new options.
66+
* Most driver specific configuration options have changed, please see [here](https://www.mongodb.com/docs/ecosystem/tutorial/ruby-driver-tutorial/#ruby-options) for the new options.
6767

6868
* All references to `session` are now replaced with `client`. This includes the mongoid.yml configuration, `store_in` options, and all exceptions and modules with `Session` in the name.
6969

@@ -872,8 +872,8 @@ child elements.
872872
handling of validations. (Gerad Suyderhoud)
873873

874874
* \#2443 `expire_after_seconds` is now a valid index option
875-
(http://docs.mongodb.org/manual/core/indexes/#ttl-indexes,
876-
http://docs.mongodb.org/manual/tutorial/expire-data/).
875+
(https://www.mongodb.com/docs/manual/core/indexes/#ttl-indexes,
876+
https://www.mongodb.com/docs/manual/tutorial/expire-data/).
877877

878878
class Event
879879
include Mongoid::Document

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Mongoid is an ODM (Object-Document Mapper) framework for MongoDB in Ruby.
88
Documentation
99
-------------
1010

11-
Mongoid has [extensive user documentation](https://docs.mongodb.com/mongoid/current/).
12-
[API documentation](https://docs.mongodb.com/mongoid/current/api/) is also available.
11+
Mongoid has [extensive user documentation](https://www.mongodb.com/docs/mongoid/current/).
12+
[API documentation](https://www.mongodb.com/docs/mongoid/current/api/) is also available.
1313

1414
Mongoid is built on top of the MongoDB Ruby driver which has
15-
[its own user documentation](https://docs.mongodb.com/ruby-driver/current/).
15+
[its own user documentation](https://www.mongodb.com/docs/ruby-driver/current/).
1616

1717
Compatibility
1818
-------------

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ currently being supported with security updates.
1515

1616
## Reporting a Vulnerability
1717

18-
Please [follow the instructions here](https://docs.mongodb.com/manual/tutorial/create-a-vulnerability-report/)
18+
Please [follow the instructions here](https://www.mongodb.com/docs/manual/tutorial/create-a-vulnerability-report/)
1919
to report a vulnerability.

docs/reference/fields.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Field Type: Hash
242242
----------------
243243

244244
When using a field of type Hash, be wary of adhering to the
245-
`legal key names for mongoDB <http://docs.mongodb.org/manual/reference/limits/#naming-restrictions>`_,
245+
`legal key names for mongoDB <https://www.mongodb.com/docs/manual/reference/limits/#naming-restrictions>`_,
246246
or else the values will not store properly.
247247

248248
.. code-block:: ruby

lib/config/locales/en.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ en:
118118
message: "Empty configuration file: %{path}."
119119
summary: "Your mongoid.yml configuration file appears to be empty."
120120
resolution: "Ensure your configuration file contains the correct contents.
121-
Refer to: https://docs.mongodb.com/mongoid/current/reference/configuration/"
121+
Refer to: https://www.mongodb.com/docs/mongoid/current/reference/configuration/"
122122
invalid_collection:
123123
message: "Access to the collection for %{klass} is not allowed."
124124
summary: "%{klass}.collection was called, and %{klass} is an embedded
@@ -146,7 +146,7 @@ en:
146146
summary: "Your mongoid.yml configuration file does not contain the
147147
correct file structure."
148148
resolution: "Ensure your configuration file contains the correct contents.
149-
Refer to: https://docs.mongodb.com/mongoid/current/reference/configuration/"
149+
Refer to: https://www.mongodb.com/docs/mongoid/current/reference/configuration/"
150150
invalid_config_option:
151151
message: "Invalid configuration option: %{name}."
152152
summary: "A invalid configuration option was provided in your
@@ -238,14 +238,14 @@ en:
238238
\_\_\_\_field :%{name}, %{option}: true\n
239239
\_\_end\n\n
240240
Refer to:
241-
https://docs.mongodb.com/mongoid/current/reference/fields/#custom-field-options"
241+
https://www.mongodb.com/docs/mongoid/current/reference/fields/#custom-field-options"
242242
invalid_field_type:
243243
message: "Invalid field type %{type_inspection} for field '%{field}' on model '%{klass}'."
244244
summary: "Model '%{klass}' defines a field '%{field}' with an unknown type value
245245
%{type_inspection}."
246246
resolution: "Please provide a valid type value for the field.
247247
Refer to:
248-
https://docs.mongodb.com/mongoid/current/reference/fields/#using-symbols-or-strings-instead-of-classes"
248+
https://www.mongodb.com/docs/mongoid/current/reference/fields/#using-symbols-or-strings-instead-of-classes"
249249
invalid_global_executor_concurrency:
250250
message: "Invalid global_executor_concurrency option."
251251
summary: "You set global_executor_concurrency while async_query_executor

lib/mongoid/association/accessors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def _mongoid_filter_selected_fields(assoc_key)
206206

207207
# Positional projection is specified as "foo.$". In this case the
208208
# document that the $ is referring to should be retrieved with all
209-
# fields. See https://docs.mongodb.com/manual/reference/operator/projection/positional/
209+
# fields. See https://www.mongodb.com/docs/manual/reference/operator/projection/positional/
210210
# and https://jira.mongodb.org/browse/MONGOID-4769.
211211
if filtered.keys == %w($)
212212
filtered = nil

lib/mongoid/attributes/projector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Attributes
66
# This module defines projection helpers.
77
#
88
# Projection rules are rather non-trivial. See
9-
# https://docs.mongodb.com/manual/reference/method/db.collection.find/#find-projection
9+
# https://www.mongodb.com/docs/manual/reference/method/db.collection.find/#find-projection
1010
# for server documentation.
1111
# 4.4 server (and presumably all older ones) requires that a projection
1212
# for content fields is either exclusionary or inclusionary, i.e. one

lib/mongoid/criteria/queryable/mergeable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def __multi__(criteria, operator)
283283
# The new value is a simple value.
284284
# Transform the implicit equality to either $eq or $regexp
285285
# depending on the type of the argument. See
286-
# https://docs.mongodb.com/manual/reference/operator/query/eq/#std-label-eq-usage-examples
286+
# https://www.mongodb.com/docs/manual/reference/operator/query/eq/#std-label-eq-usage-examples
287287
# for the description of relevant server behavior.
288288
op = case v
289289
when Regexp, BSON::Regexp::Raw

lib/mongoid/criteria/queryable/selectable.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def exists(criterion)
200200
# the upper right (north east) as the second argument.
201201
# Important: When latitude and longitude are passed, longitude is
202202
# expected as the first element of the coordinate pair.
203-
# Source: https://docs.mongodb.com/manual/reference/operator/query/box/
203+
# Source: https://www.mongodb.com/docs/manual/reference/operator/query/box/
204204
#
205205
# @example Add a geo intersect criterion for a line.
206206
# query.geo_spatial(:location.intersects_line => [[ 1, 10 ], [ 2, 10 ]])
@@ -732,7 +732,7 @@ def with_type(criterion)
732732
# @example Construct a text search selector with options.
733733
# selectable.text_search("testing", :$language => "fr")
734734
#
735-
# @note Per https://docs.mongodb.com/manual/reference/operator/query/text/
735+
# @note Per https://www.mongodb.com/docs/manual/reference/operator/query/text/
736736
# it is not currently possible to supply multiple text search
737737
# conditions in a query. Mongoid will build such a query but the
738738
# server will return an error when trying to execute it.
@@ -752,7 +752,7 @@ def text_search(terms, opts = nil)
752752
criterion = {'$text' => { '$search' => terms }}
753753
criterion['$text'].merge!(opts) if opts
754754
if query.selector['$text']
755-
# Per https://docs.mongodb.com/manual/reference/operator/query/text/
755+
# Per https://www.mongodb.com/docs/manual/reference/operator/query/text/
756756
# multiple $text expressions are not currently supported by
757757
# MongoDB server, but build the query correctly instead of
758758
# overwriting previous text search condition with the currently

lib/mongoid/matcher/eq_impl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module EqImpl
4646
end
4747
end
4848

49-
# Per https://docs.mongodb.com/ruby-driver/current/tutorials/bson-v4/#time-instances,
49+
# Per https://www.mongodb.com/docs/ruby-driver/current/tutorials/bson-v4/#time-instances,
5050
# > Times in BSON (and MongoDB) can only have millisecond precision. When Ruby Time instances
5151
# are serialized to BSON or Extended JSON, the times are floored to the nearest millisecond.
5252
#

0 commit comments

Comments
 (0)