Skip to content

Commit b3fecab

Browse files
authored
Merge branch 'main' into feature/delegated-type-types-introspection
2 parents e323d3f + 0496a5f commit b3fecab

File tree

59 files changed

+655
-302
lines changed

Some content is hidden

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

59 files changed

+655
-302
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17+
- name: Remove Gemfile.lock
18+
run: rm -f Gemfile.lock
19+
1720
- name: Set up Ruby 3.3
1821
uses: ruby/setup-ruby@v1
1922
with:
@@ -23,18 +26,6 @@ jobs:
2326
- name: mdl
2427
run: bundle exec rake -f guides/Rakefile guides:lint
2528

26-
- name: Set up Python
27-
uses: actions/setup-python@v3
28-
with:
29-
python-version: "3.10"
30-
31-
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade pip
34-
pip install codespell==2.1.0
35-
- name: Check spelling with codespell
36-
run: codespell --ignore-words=codespell.txt --skip="./vendor/bundle,./actiontext/app/assets/javascripts/trix.js,./yarn.lock" || exit 1
37-
3829
- run: tools/railspect changelogs .
3930
- run: tools/railspect configuration .
4031

.github/workflows/rail_inspector.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20+
- name: Remove Gemfile.lock
21+
run: rm -f Gemfile.lock
2022
- name: Set up Ruby 3.3
2123
uses: ruby/setup-ruby@v1
2224
with:

.github/workflows/rails-new-docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
- name: Remove Gemfile.lock
19+
run: rm -f Gemfile.lock
1820
- name: Set up Ruby 3.3
1921
uses: ruby/setup-ruby@v1
2022
with:

Gemfile.lock

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,13 @@ PATH
3232
activerecord (= 7.2.0.alpha)
3333
activestorage (= 7.2.0.alpha)
3434
activesupport (= 7.2.0.alpha)
35-
mail (>= 2.7.1)
36-
net-imap
37-
net-pop
38-
net-smtp
35+
mail (>= 2.8.0)
3936
actionmailer (7.2.0.alpha)
4037
actionpack (= 7.2.0.alpha)
4138
actionview (= 7.2.0.alpha)
4239
activejob (= 7.2.0.alpha)
4340
activesupport (= 7.2.0.alpha)
44-
mail (~> 2.5, >= 2.5.4)
45-
net-imap
46-
net-pop
47-
net-smtp
41+
mail (>= 2.8.0)
4842
rails-dom-testing (~> 2.2)
4943
actionpack (7.2.0.alpha)
5044
actionview (= 7.2.0.alpha)
@@ -333,7 +327,7 @@ GEM
333327
mini_magick (4.12.0)
334328
mini_mime (1.1.5)
335329
mini_portile2 (2.8.5)
336-
minitest (5.20.0)
330+
minitest (5.21.1)
337331
minitest-bisect (1.7.0)
338332
minitest-server (~> 1.0)
339333
path_expander (~> 1.1)
@@ -677,4 +671,4 @@ DEPENDENCIES
677671
websocket-client-simple!
678672

679673
BUNDLED WITH
680-
2.3.22
674+
2.5.4

actionmailbox/actionmailbox.gemspec

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,5 @@ Gem::Specification.new do |s|
3838
s.add_dependency "activejob", version
3939
s.add_dependency "actionpack", version
4040

41-
s.add_dependency "mail", ">= 2.7.1"
42-
s.add_dependency "net-imap"
43-
s.add_dependency "net-pop"
44-
s.add_dependency "net-smtp"
41+
s.add_dependency "mail", ">= 2.8.0"
4542
end

actionmailer/actionmailer.gemspec

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ Gem::Specification.new do |s|
3838
s.add_dependency "actionview", version
3939
s.add_dependency "activejob", version
4040

41-
s.add_dependency "mail", ["~> 2.5", ">= 2.5.4"]
42-
s.add_dependency "net-imap"
43-
s.add_dependency "net-pop"
44-
s.add_dependency "net-smtp"
41+
s.add_dependency "mail", ">= 2.8.0"
4542
s.add_dependency "rails-dom-testing", "~> 2.2"
4643
end

actionmailer/lib/action_mailer/delivery_methods.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ module DeliveryMethods
3232

3333
add_delivery_method :sendmail, Mail::Sendmail,
3434
location: "/usr/sbin/sendmail",
35-
# See breaking change in the mail gem - https://github.com/mikel/mail/commit/7e1196bd29815a0901d7290c82a332c0959b163a
36-
arguments: Gem::Version.new(Mail::VERSION.version) >= Gem::Version.new("2.8.0") ? %w[-i] : "-i"
35+
arguments: %w[-i]
3736

3837
add_delivery_method :test, Mail::TestMailer
3938
end
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# frozen_string_literal: true
2+
3+
require "stringio"
4+
require "abstract_unit"
5+
6+
class ChunkedTest < ActionDispatch::IntegrationTest
7+
class ChunkedController < ApplicationController
8+
def chunk
9+
render json: {
10+
raw_post: request.raw_post,
11+
content_length: request.content_length
12+
}
13+
end
14+
end
15+
16+
# The TestInput class prevents Rack::MockRequest from adding a Content-Length when the method `size` is defined
17+
class TestInput < StringIO
18+
undef_method :size
19+
end
20+
21+
test "parses request raw_post correctly when request has Transfer-Encoding header without a Content-Length value" do
22+
@app = self.class.build_app
23+
@app.routes.draw do
24+
post "chunked", to: ChunkedController.action(:chunk)
25+
end
26+
27+
post "/chunked", params: TestInput.new("foo=bar"), headers: { "Transfer-Encoding" => "gzip, chunked;foo=bar" }
28+
29+
assert_equal 7, response.parsed_body["content_length"]
30+
assert_equal "foo=bar", response.parsed_body["raw_post"]
31+
end
32+
end

actionview/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Raise `ArgumentError` if `:renderable` object does not respond to `#render_in`
2+
3+
*Sean Doyle*
4+
15
* Add the `nonce: true` option for `stylesheet_link_tag` helper to support automatic nonce generation for Content Security Policy.
26
Works the same way as `javascript_include_tag nonce: true` does.
37

@@ -7,7 +11,9 @@
711

812
*Sean Doyle*
913

10-
* Rename `ActionView::TestCase::Behavior::{Content,RenderedViewContent}`
14+
* Rename `ActionView::TestCase::Behavior::Content` to `ActionView::TestCase::Behavior::RenderedViewContent`
15+
16+
Make `RenderedViewContent` inherit from `String`. Make private API with `:nodoc:`
1117

1218
*Sean Doyle*
1319

actionview/lib/action_view/renderer/abstract_renderer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def partial_path(object, view)
7979
path = if object.respond_to?(:to_partial_path)
8080
object.to_partial_path
8181
else
82-
raise ArgumentError.new("'#{object.inspect}' is not an ActiveModel-compatible object. It must implement :to_partial_path.")
82+
raise ArgumentError.new("'#{object.inspect}' is not an ActiveModel-compatible object. It must implement #to_partial_path.")
8383
end
8484

8585
if view.prefix_partial_path_with_controller_namespace

0 commit comments

Comments
 (0)