Skip to content

Commit 40652ff

Browse files
authored
MONGOID-5311 Drop support for Rails < 5.2 and Ruby < 2.6 (#5349)
* MONGOID-5311 Drop support for Rails < 5.2 and Ruby < 2.6 * MONGOID-5311 remove jruby-9.2 configs * MONGOID-5311 add release not for dropping support * MONGOID-5311 deprecate in 7.5 * MONGOID-5311 update compatibility tables * MONGOID-5311 deprecate JRuby 9.2
1 parent 8bba38c commit 40652ff

File tree

4 files changed

+61
-7
lines changed

4 files changed

+61
-7
lines changed

source/reference/compatibility.txt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ specified Mongoid versions.
3737
- |checkmark|
3838
-
3939

40+
* - 7.5
41+
- |checkmark|
42+
-
43+
4044
* - 7.4
4145
- |checkmark|
4246
-
@@ -91,13 +95,25 @@ is deprecated.
9195
- |checkmark|
9296
- |checkmark|
9397
- |checkmark|
94-
- |checkmark|
98+
-
9599
-
96100
-
97101
-
98102
-
99103
- |checkmark|
100104

105+
* - 7.5
106+
- |checkmark|
107+
- |checkmark|
108+
- |checkmark|
109+
- |checkmark|
110+
- D
111+
-
112+
-
113+
-
114+
- D
115+
-
116+
101117
* - 7.4
102118
- |checkmark|
103119
- |checkmark|
@@ -335,7 +351,14 @@ are supported by Mongoid.
335351
- |checkmark|
336352
- |checkmark|
337353
- |checkmark| [#rails-5-ruby-3.0]_
354+
-
355+
356+
* - 7.5
357+
- |checkmark|
358+
- |checkmark|
359+
- |checkmark|
338360
- |checkmark| [#rails-5-ruby-3.0]_
361+
- D
339362

340363
* - 7.4
341364
- |checkmark|

source/reference/crud.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,8 @@ operations with examples.
213213
``belongs_to`` *associations of the document with the option set.
214214
This operation skips validations and callbacks.*
215215

216-
*Attempting to touch a destroyed document will raise* ``FrozenError``
217-
* (as of Ruby 2.5,* ``RuntimeError`` *on previous Ruby versions),
218-
same as if attempting to update an attribute on a destroyed
216+
*Attempting to touch a destroyed document will raise* ``FrozenError``,
217+
*same as if attempting to update an attribute on a destroyed
219218
document.*
220219
-
221220
.. code-block:: ruby

source/release-notes/mongoid-7.5.txt

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,35 @@ please consult GitHub releases for detailed release notes and JIRA for
1818
the complete list of issues fixed in each release, including bug fixes.
1919

2020

21+
Ruby 2.5 Deprecated
22+
-------------------
23+
24+
Mongoid 7.5 deprecates support for Ruby 2.5.
25+
Mongoid 8 will require Ruby 2.6 or newer.
26+
27+
28+
JRuby 9.2 Deprecated
29+
--------------------
30+
31+
Mongoid 7.5 deprecates support for JRuby 9.2.
32+
Mongoid 8 will require JRuby 9.3 or newer.
33+
34+
35+
Rails 5.1 Deprecated
36+
--------------------
37+
38+
Mongoid 7.5 deprecates support for Rails 5.1.
39+
Mongoid 8 will require Rails 5.2 or newer.
40+
41+
2142
``Document#to_a`` deprecated
22-
````````````````````````````
43+
----------------------------
2344

2445
The ``Document#to_a`` method is deprecated in Mongoid 7.5.
2546

2647

2748
Combine Chained Operators Using ``and`` Instead of ``override``
28-
```````````````````````````````````````````````````````````````
49+
---------------------------------------------------------------
2950

3051
Mongoid 7.5 with the ``Mongoid.overwrite_chained_operators`` option set to ``false``
3152
will combine conditions that use the same operator and field using an ``and``.
@@ -90,7 +111,7 @@ replacing upsert, and Mongoid 7.5 correctly calls ``replace_one``.
90111

91112

92113
Force the ``attributes`` Method to Always Return a ``Hash``
93-
```````````````````````````````````````````````````````````
114+
-----------------------------------------------------------
94115

95116
Mongoid 7.5 with the ``Mongoid.legacy_attributes`` option set to ``false``
96117
will always return a ``Hash`` when calling the ``attributes`` method.

source/release-notes/mongoid-8.0.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ Support for MongoDB 3.4 and Earlier Servers Dropped
2424
Mongoid 8 requires MongoDB 3.6 or newer. Earlier server versions are not
2525
supported.
2626

27+
Support for Ruby 2.5 Dropped
28+
----------------------------
29+
30+
Mongoid 8 requires Ruby 2.6 or newer. Earlier Ruby versions are not supported.
31+
32+
33+
Support for Rails 5.1 Dropped
34+
-----------------------------
35+
36+
Mongoid 8 requires Rails 5.2 or newer. Earlier Rails versions are not supported.
37+
2738

2839
Default Option Values Changed
2940
-----------------------------

0 commit comments

Comments
 (0)