actionpack 7.0.8.7 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -1
- data/lib/action_controller/metal/http_authentication.rb +1 -1
- data/lib/action_controller/metal/params_wrapper.rb +1 -1
- data/lib/action_controller/metal/redirecting.rb +1 -1
- data/lib/action_dispatch/http/mime_negotiation.rb +1 -1
- data/lib/action_dispatch/http/permissions_policy.rb +1 -1
- data/lib/action_dispatch/middleware/executor.rb +6 -0
- data/lib/action_dispatch/middleware/show_exceptions.rb +1 -0
- data/lib/action_dispatch/routing.rb +1 -1
- data/lib/action_pack/gem_version.rb +2 -2
- metadata +26 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2089990761b1e821a8a28edc2acb6d885028b495301345632e470cb47cbac0d
|
|
4
|
+
data.tar.gz: 2a53863a9fd79e0756af7108ffb0cc53cf5da0fdbc3398aeedc9662e0c6e782f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa4cfe466faedada6c20953e6b0d4d53240058c32700e1f35b39d93fb9620af058716b02fd53e56d1139144621f2fa57d6e7050745d3a446dc7117649939478f
|
|
7
|
+
data.tar.gz: d79ef2acafb1f7b7289c469ba1755c4660d3d98d4afff0ed7dfafe2b12ca88a58dfcb41012a9e373326f9116d061fba02a98667f3fdbb90ad955d42c91d01bd5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## Rails 7.0.10 (October 28, 2025) ##
|
|
2
|
+
|
|
3
|
+
* No changes.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Rails 7.0.9 (October 28, 2025) ##
|
|
7
|
+
|
|
8
|
+
* Fix `ActionDispatch::Executor` middleware to report errors handled by `ActionDispatch::ShowExceptions`.
|
|
9
|
+
|
|
10
|
+
In the default production environment, `ShowExceptions` rescue uncaught errors
|
|
11
|
+
and returns a response. Because if this the executor wouldn't report production
|
|
12
|
+
errors with the default Rails configuration.
|
|
13
|
+
|
|
14
|
+
*Jean Boussier*
|
|
15
|
+
|
|
16
|
+
* Add `racc` as a dependency since it will become a bundled gem in Ruby 3.4.0
|
|
17
|
+
|
|
18
|
+
*Hartley McGuire*
|
|
19
|
+
|
|
20
|
+
|
|
1
21
|
## Rails 7.0.8.7 (December 10, 2024) ##
|
|
2
22
|
|
|
3
23
|
* Add validation to content security policies to disallow spaces and semicolons.
|
|
@@ -7,11 +27,11 @@
|
|
|
7
27
|
|
|
8
28
|
*Gannon McGibbon*
|
|
9
29
|
|
|
30
|
+
|
|
10
31
|
## Rails 7.0.8.6 (October 23, 2024) ##
|
|
11
32
|
|
|
12
33
|
* No changes.
|
|
13
34
|
|
|
14
|
-
|
|
15
35
|
## Rails 7.0.8.5 (October 15, 2024) ##
|
|
16
36
|
|
|
17
37
|
* Avoid regex backtracking in HTTP Token authentication
|
|
@@ -70,7 +70,7 @@ module ActionController
|
|
|
70
70
|
#
|
|
71
71
|
# will try to check if <tt>Admin::User</tt> or +User+ model exists, and use it to
|
|
72
72
|
# determine the wrapper key respectively. If both models don't exist,
|
|
73
|
-
# it will then
|
|
73
|
+
# it will then fall back to use +user+ as the key.
|
|
74
74
|
#
|
|
75
75
|
# To disable this functionality for a controller:
|
|
76
76
|
#
|
|
@@ -154,7 +154,7 @@ module ActionController
|
|
|
154
154
|
public :_compute_redirect_to_location
|
|
155
155
|
|
|
156
156
|
# Verifies the passed +location+ is an internal URL that's safe to redirect to and returns it, or nil if not.
|
|
157
|
-
# Useful to wrap a params provided redirect URL and
|
|
157
|
+
# Useful to wrap a params provided redirect URL and fall back to an alternate URL to redirect to:
|
|
158
158
|
#
|
|
159
159
|
# redirect_to url_from(params[:redirect_url]) || root_url
|
|
160
160
|
#
|
|
@@ -132,7 +132,7 @@ module ActionDispatch
|
|
|
132
132
|
# Sets the \formats by string extensions. This differs from #format= by allowing you
|
|
133
133
|
# to set multiple, ordered formats, which is useful when you want to have a fallback.
|
|
134
134
|
#
|
|
135
|
-
# In this example, the +:iphone+ format will be used if it's available, otherwise it'll
|
|
135
|
+
# In this example, the +:iphone+ format will be used if it's available, otherwise it'll fall back
|
|
136
136
|
# to the +:html+ format.
|
|
137
137
|
#
|
|
138
138
|
# class ApplicationController < ActionController::Base
|
|
@@ -78,7 +78,7 @@ module ActionDispatch # :nodoc:
|
|
|
78
78
|
}.freeze
|
|
79
79
|
|
|
80
80
|
# List of available permissions can be found at
|
|
81
|
-
# https://github.com/w3c/webappsec-permissions-policy/blob/
|
|
81
|
+
# https://github.com/w3c/webappsec-permissions-policy/blob/main/features.md#policy-controlled-features
|
|
82
82
|
DIRECTIVES = {
|
|
83
83
|
accelerometer: "accelerometer",
|
|
84
84
|
ambient_light_sensor: "ambient-light-sensor",
|
|
@@ -12,6 +12,12 @@ module ActionDispatch
|
|
|
12
12
|
state = @executor.run!(reset: true)
|
|
13
13
|
begin
|
|
14
14
|
response = @app.call(env)
|
|
15
|
+
|
|
16
|
+
if env["action_dispatch.report_exception"]
|
|
17
|
+
error = env["action_dispatch.exception"]
|
|
18
|
+
@executor.error_reporter.report(error, handled: false)
|
|
19
|
+
end
|
|
20
|
+
|
|
15
21
|
returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! }
|
|
16
22
|
rescue => error
|
|
17
23
|
@executor.error_reporter.report(error, handled: false)
|
|
@@ -41,6 +41,7 @@ module ActionDispatch
|
|
|
41
41
|
wrapper = ExceptionWrapper.new(backtrace_cleaner, exception)
|
|
42
42
|
status = wrapper.status_code
|
|
43
43
|
request.set_header "action_dispatch.exception", wrapper.unwrapped_exception
|
|
44
|
+
request.set_header "action_dispatch.report_exception", !wrapper.rescue_response?
|
|
44
45
|
request.set_header "action_dispatch.original_path", request.path_info
|
|
45
46
|
request.set_header "action_dispatch.original_request_method", request.raw_request_method
|
|
46
47
|
fallback_to_html_format_if_invalid_mime_type(request)
|
|
@@ -240,7 +240,7 @@ module ActionDispatch
|
|
|
240
240
|
#
|
|
241
241
|
# == View a list of all your routes
|
|
242
242
|
#
|
|
243
|
-
# rails routes
|
|
243
|
+
# $ bin/rails routes
|
|
244
244
|
#
|
|
245
245
|
# Target a specific controller with <tt>-c</tt>, or grep routes
|
|
246
246
|
# using <tt>-g</tt>. Useful in conjunction with <tt>--expanded</tt>
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionpack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0.
|
|
4
|
+
version: 7.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Heinemeier Hansson
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -16,14 +15,28 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - '='
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 7.0.
|
|
18
|
+
version: 7.0.10
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - '='
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 7.0.
|
|
25
|
+
version: 7.0.10
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: racc
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
27
40
|
- !ruby/object:Gem::Dependency
|
|
28
41
|
name: rack
|
|
29
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -98,28 +111,28 @@ dependencies:
|
|
|
98
111
|
requirements:
|
|
99
112
|
- - '='
|
|
100
113
|
- !ruby/object:Gem::Version
|
|
101
|
-
version: 7.0.
|
|
114
|
+
version: 7.0.10
|
|
102
115
|
type: :runtime
|
|
103
116
|
prerelease: false
|
|
104
117
|
version_requirements: !ruby/object:Gem::Requirement
|
|
105
118
|
requirements:
|
|
106
119
|
- - '='
|
|
107
120
|
- !ruby/object:Gem::Version
|
|
108
|
-
version: 7.0.
|
|
121
|
+
version: 7.0.10
|
|
109
122
|
- !ruby/object:Gem::Dependency
|
|
110
123
|
name: activemodel
|
|
111
124
|
requirement: !ruby/object:Gem::Requirement
|
|
112
125
|
requirements:
|
|
113
126
|
- - '='
|
|
114
127
|
- !ruby/object:Gem::Version
|
|
115
|
-
version: 7.0.
|
|
128
|
+
version: 7.0.10
|
|
116
129
|
type: :development
|
|
117
130
|
prerelease: false
|
|
118
131
|
version_requirements: !ruby/object:Gem::Requirement
|
|
119
132
|
requirements:
|
|
120
133
|
- - '='
|
|
121
134
|
- !ruby/object:Gem::Version
|
|
122
|
-
version: 7.0.
|
|
135
|
+
version: 7.0.10
|
|
123
136
|
description: Web apps on Rails. Simple, battle-tested conventions for building and
|
|
124
137
|
testing MVC web applications. Works with any Rack-compatible server.
|
|
125
138
|
email: david@loudthinking.com
|
|
@@ -310,12 +323,11 @@ licenses:
|
|
|
310
323
|
- MIT
|
|
311
324
|
metadata:
|
|
312
325
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
|
313
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.
|
|
314
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.
|
|
326
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.10/actionpack/CHANGELOG.md
|
|
327
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.10/
|
|
315
328
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
|
316
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.
|
|
329
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.10/actionpack
|
|
317
330
|
rubygems_mfa_required: 'true'
|
|
318
|
-
post_install_message:
|
|
319
331
|
rdoc_options: []
|
|
320
332
|
require_paths:
|
|
321
333
|
- lib
|
|
@@ -331,8 +343,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
331
343
|
version: '0'
|
|
332
344
|
requirements:
|
|
333
345
|
- none
|
|
334
|
-
rubygems_version: 3.
|
|
335
|
-
signing_key:
|
|
346
|
+
rubygems_version: 3.6.9
|
|
336
347
|
specification_version: 4
|
|
337
348
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|
|
338
349
|
test_files: []
|