Skip to content

Commit 65b9f7e

Browse files
MONGOID-5574 Drop support for Rails 5 and Ruby 2.6 (#5768)
1 parent 031d229 commit 65b9f7e

File tree

16 files changed

+37
-196
lines changed

16 files changed

+37
-196
lines changed

.evergreen/config.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,6 @@ axes:
480480
- id: "jruby"
481481
display_name: JRuby Version
482482
values:
483-
- id: "jruby-9.3"
484-
display_name: jruby-9.3
485-
variables:
486-
RVM_RUBY: "jruby-9.3"
487483
- id: "jruby-9.4"
488484
display_name: jruby-9.4
489485
variables:
@@ -662,7 +658,7 @@ buildvariants:
662658

663659
- matrix_name: "jruby"
664660
matrix_spec:
665-
jruby: ["jruby-9.4", "jruby-9.3"]
661+
jruby: ["jruby-9.4"]
666662
driver: ["current"]
667663
topology: ['replica-set', 'sharded-cluster']
668664
mongodb-version: '5.0'
@@ -801,19 +797,6 @@ buildvariants:
801797
tasks:
802798
- name: "test"
803799

804-
- matrix_name: app-tests-jruby-9-3
805-
matrix_spec:
806-
jruby: ["jruby-9.3"]
807-
driver: ["current"]
808-
mongodb-version: '5.0'
809-
topology: standalone
810-
app-tests: yes
811-
rails: ['6.1']
812-
os: ubuntu-20.04
813-
display_name: "app tests ${driver}, ${jruby}"
814-
tasks:
815-
- name: "test"
816-
817800
# https://github.com/rails/rails/issues/49737
818801
#- matrix_name: app-tests-jruby-9-4
819802
# matrix_spec:

.evergreen/config/axes.yml.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ axes:
107107
- id: "jruby"
108108
display_name: JRuby Version
109109
values:
110-
- id: "jruby-9.3"
111-
display_name: jruby-9.3
112-
variables:
113-
RVM_RUBY: "jruby-9.3"
114110
- id: "jruby-9.4"
115111
display_name: jruby-9.4
116112
variables:

.evergreen/config/variants.yml.erb

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ buildvariants:
4545

4646
- matrix_name: "jruby"
4747
matrix_spec:
48-
jruby: ["jruby-9.4", "jruby-9.3"]
48+
jruby: ["jruby-9.4"]
4949
driver: ["current"]
5050
topology: ['replica-set', 'sharded-cluster']
5151
mongodb-version: '5.0'
@@ -184,19 +184,6 @@ buildvariants:
184184
tasks:
185185
- name: "test"
186186

187-
- matrix_name: app-tests-jruby-9-3
188-
matrix_spec:
189-
jruby: ["jruby-9.3"]
190-
driver: ["current"]
191-
mongodb-version: '5.0'
192-
topology: standalone
193-
app-tests: yes
194-
rails: ['6.1']
195-
os: ubuntu-20.04
196-
display_name: "app tests ${driver}, ${jruby}"
197-
tasks:
198-
- name: "test"
199-
200187
# https://github.com/rails/rails/issues/49737
201188
#- matrix_name: app-tests-jruby-9-4
202189
# matrix_spec:

.github/workflows/test.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ jobs:
4242
driver: current
4343
gemfile: Gemfile
4444
experimental: false
45-
- mongodb: '6.0'
46-
ruby: ruby-3.1
47-
topology: replica_set
48-
os: ubuntu-20.04
49-
task: test
50-
driver: master
51-
gemfile: gemfiles/driver_master.gemfile
52-
experimental: true
5345
- mongodb: '6.0'
5446
ruby: ruby-3.0
5547
topology: replica_set
@@ -109,17 +101,7 @@ jobs:
109101
gemfile: gemfiles/rails-6.0.gemfile
110102
experimental: false
111103
- mongodb: '6.0'
112-
ruby: ruby-2.7
113-
topology: server
114-
os: ubuntu-20.04
115-
task: test
116-
driver: current
117-
rails: '5.2'
118-
fle: helper
119-
gemfile: gemfiles/rails-5.2.gemfile
120-
experimental: false
121-
- mongodb: '6.0'
122-
ruby: jruby-9.3
104+
ruby: jruby-9.4
123105
topology: server
124106
os: ubuntu-20.04
125107
task: test

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require:
44
- rubocop-rspec
55

66
AllCops:
7-
TargetRubyVersion: 2.6
7+
TargetRubyVersion: 2.7
88
NewCops: enable
99
Exclude:
1010
- 'spec/shared/**/*'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Compatibility
1919

2020
Mongoid supports and is tested against:
2121

22-
- MRI 2.6 - 3.1
23-
- JRuby 9.3
22+
- MRI 2.7 - 3.1
23+
- JRuby 9.4
2424
- MongoDB server 3.6 - 6.0
2525

2626
Issues
@@ -39,7 +39,7 @@ Support
3939
License
4040
-------
4141

42-
Copyright (c) 2015-Present MongoDB Inc.
42+
Copyright (c) 2015-Present MongoDB Inc.
4343
Copyright (c) 2009-2016 Durran Jordan
4444

4545
Permission is hereby granted, free of charge, to any person obtaining

docs/reference/compatibility.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ is deprecated.
122122
-
123123
-
124124
-
125-
- |checkmark|
125+
-
126126
- |checkmark|
127127

128128
* - 8.1

docs/release-notes/mongoid-9.0.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ The complete list of releases is available `on GitHub
1717
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

20+
21+
Support for Ruby 2.6 and JRuby 9.3 Dropped
22+
-------------------------------------------
23+
24+
Mongoid 9 requires Ruby 2.7 or newer or JRuby 9.4. Earlier Ruby and JRuby
25+
versions are not supported.
26+
27+
28+
Support for Rails 5 Dropped
29+
-----------------------------
30+
31+
Mongoid 9 requires Rails 6.0 or newer. Earlier Rails versions are not supported.
32+
33+
2034
Deprecated class ``Mongoid::Errors::InvalidStorageParent`` removed
2135
------------------------------------------------------------------
2236

gemfiles/rails-5.2.gemfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

lib/mongoid/association/embedded/embeds_many/proxy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ def exists?(id_or_conditions = :none)
337337
# @yield [ Object ] Yields each enumerable element to the block.
338338
#
339339
# @return [ Document | Array<Document> | nil ] A document or matching documents.
340-
def find(*args, &block)
341-
criteria.find(*args, &block)
340+
def find(...)
341+
criteria.find(...)
342342
end
343343

344344
# Get all the documents in the association that are loaded into memory.

0 commit comments

Comments
 (0)