Skip to content

Commit 6ba2e90

Browse files
Merge branch 'main' into matt/show-all-headers-email-preview
2 parents 449d92d + ad83b01 commit 6ba2e90

File tree

1,053 files changed

+42076
-42258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,053 files changed

+42076
-42258
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ RUN cd /tmp/rails \
4949
&& bundle install \
5050
&& yarn install \
5151
&& rm -rf /tmp/rails
52+
RUN chown -R vscode:vscode /usr/local/rvm

.github/pull_request_template.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
<!--
2+
Thanks for contributing to Rails!
3+
4+
Please do not make *Draft* pull requests, as they still send
5+
notifications to everyone watching the Rails repo.
6+
7+
Create a pull request when it is ready for review and feedback
8+
from the Rails team :).
9+
10+
If your pull request affects documentation or any non-code
11+
changes, guidelines for those changes are [available
12+
here](https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#contributing-to-the-rails-documentation)
13+
214
About this template
315
416
The following template aims to help contributors write a good description for their pull requests.
@@ -8,7 +20,10 @@ Feel free to discard it if you need to (e.g. when you just fix a typo). -->
820

921
### Motivation / Background
1022

11-
<!-- Describe why this Pull Request needs to be merged. What bug have you fixed? What feature have you added? Why is it important? -->
23+
<!--
24+
Describe why this Pull Request needs to be merged. What bug have you fixed? What feature have you added? Why is it important?
25+
If you are fixing a specific issue, include "Fixes #ISSUE" (replace with the issue number, remove the quotes) and the issue will be linked to this PR.
26+
-->
1227

1328
This Pull Request has been created because [REPLACE ME]
1429

@@ -25,23 +40,6 @@ This Pull Request changes [REPLACE ME]
2540
Before submitting the PR make sure the following are checked:
2641

2742
* [ ] This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
28-
* [ ] There are no typos in commit messages and comments.
2943
* [ ] Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: `[Fix #issue-number]`
30-
* [ ] Feature branch is up-to-date with `main` (if not - rebase it).
31-
* [ ] Pull request only contains one commit for bug fixes and small features. If it's a larger feature, multiple commits are permitted but must be descriptive.
32-
* [ ] Tests are added if you fix a bug or add a feature.
44+
* [ ] Tests are added or updated if you fix a bug or add a feature.
3345
* [ ] CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.
34-
* [ ] PR is not in a draft state.
35-
* [ ] CI is passing.
36-
37-
<!--
38-
Note: Please avoid making *Draft* pull requests, as they still send
39-
notifications to everyone watching the Rails repo.
40-
Create a pull request when it is ready for review and feedback
41-
from the Rails team :).
42-
43-
If your pull request affects documentation or any non-code
44-
changes, guidelines for those changes are [available
45-
here](https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#contributing-to-the-rails-documentation)
46-
47-
Thanks for contributing to Rails! -->

.github/workflows/rubocop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
env:
12-
BUNDLE_WITHOUT: default doc job cable storage ujs test db
12+
BUNDLE_ONLY: rubocop
1313

1414
steps:
1515
- uses: actions/checkout@v3
1616

17-
- name: Set up Ruby 3.1
17+
- name: Set up Ruby 3.2
1818
uses: ruby/setup-ruby@v1
1919
with:
20-
ruby-version: 3.1
20+
ruby-version: 3.2
2121
bundler-cache: true
2222

2323
- name: Run RuboCop

.rubocop.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ Lint/AmbiguousRegexpLiteral:
211211
Lint/DuplicateRequire:
212212
Enabled: true
213213

214+
Lint/DuplicateMagicComment:
215+
Enabled: true
216+
214217
Lint/DuplicateMethods:
215218
Enabled: true
216219

@@ -236,6 +239,11 @@ Lint/UselessAssignment:
236239
Lint/DeprecatedClassMethods:
237240
Enabled: true
238241

242+
Style/EvalWithLocation:
243+
Enabled: true
244+
Exclude:
245+
- '**/test/**/*'
246+
239247
Style/ParenthesesAroundCondition:
240248
Enabled: true
241249

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ https://rubyonrails.org/conduct
99
For a history of updates, see the page history here:
1010

1111
https://github.com/rails/website/commits/main/_pages/conduct.html
12-

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Changes that are cosmetic in nature and do not add anything substantial to the s
3939

4040
* Do not open an issue on GitHub until you have collected positive feedback about the change. GitHub issues are primarily intended for bug reports and fixes.
4141

42+
* We generally reject changes to Active Support core extensions. Those change should be proposed in the [Ruby issue tracker instead](https://bugs.ruby-lang.org/issues), as we don't want to conflict with future versions of Ruby.
43+
4244
#### **Do you have questions about the source code?**
4345

4446
* Ask any question about how to use Ruby on Rails in the [rubyonrails-talk mailing list](https://discuss.rubyonrails.org/c/rubyonrails-talk).

Gemfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ else
1010
end
1111

1212
# We need a newish Rake since Active Job sets its test tasks' descriptions.
13-
gem "rake", ">= 11.1"
13+
gem "rake", ">= 13"
1414

1515
gem "sprockets-rails", ">= 2.0.0"
1616
gem "propshaft", ">= 0.1.7"
17-
gem "capybara", ">= 3.26"
17+
gem "capybara", ">= 3.38"
1818
gem "selenium-webdriver", ">= 4.0.0"
1919

2020
gem "rack-cache", "~> 1.2"
@@ -36,6 +36,9 @@ gem "terser", ">= 1.1.4", require: false
3636
# Explicitly avoid 1.x that doesn't support Ruby 2.4+
3737
gem "json", ">= 2.0.0"
3838

39+
# Workaround until Ruby ships with cgi version 0.3.6 or higher.
40+
gem "cgi", ">= 0.3.6", require: false
41+
3942
group :rubocop do
4043
gem "rubocop", ">= 1.25.1", require: false
4144
gem "rubocop-minitest", require: false
@@ -45,7 +48,8 @@ group :rubocop do
4548
end
4649

4750
group :doc do
48-
gem "sdoc", ">= 2.4.0"
51+
gem "sdoc", ">= 2.6.0"
52+
gem "rdoc", "~> 6.5"
4953
gem "redcarpet", "~> 3.2.3", platforms: :ruby
5054
gem "w3c_validators", "~> 1.3.6"
5155
gem "rouge"
@@ -62,6 +66,12 @@ gem "rexml", require: false
6266
# for railties
6367
gem "bootsnap", ">= 1.4.4", require: false
6468
gem "webrick", require: false
69+
gem "jbuilder", require: false
70+
gem "web-console", require: false
71+
72+
# Action Pack and railties
73+
rack_version = ENV.fetch("RACK", "~> 2.0") # Change to ~> 3 after #46594 is merged.
74+
gem "rack", rack_version
6575

6676
# Active Job
6777
group :job do
@@ -74,12 +84,11 @@ group :job do
7484
gem "sneakers", require: false
7585
gem "backburner", require: false
7686
gem "delayed_job_active_record", require: false
77-
gem "sequel", require: false
7887
end
7988

8089
# Action Cable
8190
group :cable do
82-
gem "puma", require: false
91+
gem "puma", ">= 5.0.3", require: false
8392

8493
gem "redis", ">= 4.0.1", require: false
8594

@@ -105,12 +114,6 @@ group :ujs do
105114
gem "webdrivers"
106115
end
107116

108-
# Action View
109-
group :view do
110-
gem "blade", require: false, platforms: [:ruby]
111-
gem "sprockets-export", require: false
112-
end
113-
114117
# Add your own local bundler stuff.
115118
local_gemfile = File.expand_path(".Gemfile", __dir__)
116119
instance_eval File.read local_gemfile if File.exist? local_gemfile

0 commit comments

Comments
 (0)