actionpack 7.2.1.1 → 8.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +108 -100
- data/lib/abstract_controller/helpers.rb +2 -0
- data/lib/abstract_controller/rendering.rb +0 -1
- data/lib/action_controller/api.rb +1 -0
- data/lib/action_controller/form_builder.rb +3 -3
- data/lib/action_controller/metal/allow_browser.rb +12 -2
- data/lib/action_controller/metal/conditional_get.rb +6 -3
- data/lib/action_controller/metal/http_authentication.rb +6 -3
- data/lib/action_controller/metal/instrumentation.rb +1 -2
- data/lib/action_controller/metal/live.rb +19 -8
- data/lib/action_controller/metal/rate_limiting.rb +13 -4
- data/lib/action_controller/metal/renderers.rb +2 -3
- data/lib/action_controller/metal/streaming.rb +5 -84
- data/lib/action_controller/metal/strong_parameters.rb +274 -88
- data/lib/action_controller/railtie.rb +1 -7
- data/lib/action_controller/test_case.rb +6 -5
- data/lib/action_dispatch/http/cache.rb +27 -10
- data/lib/action_dispatch/http/content_security_policy.rb +5 -8
- data/lib/action_dispatch/http/filter_parameters.rb +4 -9
- data/lib/action_dispatch/http/filter_redirect.rb +2 -9
- data/lib/action_dispatch/http/param_builder.rb +163 -0
- data/lib/action_dispatch/http/param_error.rb +26 -0
- data/lib/action_dispatch/http/permissions_policy.rb +2 -0
- data/lib/action_dispatch/http/query_parser.rb +31 -0
- data/lib/action_dispatch/http/request.rb +60 -16
- data/lib/action_dispatch/journey/parser.rb +99 -196
- data/lib/action_dispatch/journey/scanner.rb +40 -42
- data/lib/action_dispatch/middleware/cookies.rb +4 -2
- data/lib/action_dispatch/middleware/debug_exceptions.rb +16 -3
- data/lib/action_dispatch/middleware/debug_view.rb +0 -5
- data/lib/action_dispatch/middleware/exception_wrapper.rb +0 -6
- data/lib/action_dispatch/middleware/remote_ip.rb +5 -6
- data/lib/action_dispatch/middleware/request_id.rb +2 -1
- data/lib/action_dispatch/middleware/ssl.rb +14 -4
- data/lib/action_dispatch/middleware/templates/rescues/_source.html.erb +0 -3
- data/lib/action_dispatch/railtie.rb +2 -0
- data/lib/action_dispatch/request/utils.rb +9 -3
- data/lib/action_dispatch/routing/inspector.rb +1 -1
- data/lib/action_dispatch/routing/mapper.rb +91 -62
- data/lib/action_dispatch/routing/polymorphic_routes.rb +2 -2
- data/lib/action_dispatch/routing/route_set.rb +20 -8
- data/lib/action_dispatch/system_testing/browser.rb +12 -21
- data/lib/action_dispatch/testing/assertions/response.rb +12 -2
- data/lib/action_dispatch/testing/assertions/routing.rb +4 -4
- data/lib/action_dispatch/testing/integration.rb +11 -1
- data/lib/action_dispatch.rb +6 -0
- data/lib/action_pack/gem_version.rb +4 -4
- metadata +15 -34
- data/lib/action_dispatch/journey/parser.y +0 -50
- data/lib/action_dispatch/journey/parser_extras.rb +0 -33
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 8.0.0.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 8.0.0.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.8.5
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: racc
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rack
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,9 +45,6 @@ dependencies:
|
|
59
45
|
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
47
|
version: 2.2.4
|
62
|
-
- - "<"
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: '3.2'
|
65
48
|
type: :runtime
|
66
49
|
prerelease: false
|
67
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,9 +52,6 @@ dependencies:
|
|
69
52
|
- - ">="
|
70
53
|
- !ruby/object:Gem::Version
|
71
54
|
version: 2.2.4
|
72
|
-
- - "<"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '3.2'
|
75
55
|
- !ruby/object:Gem::Dependency
|
76
56
|
name: rack-session
|
77
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,28 +128,28 @@ dependencies:
|
|
148
128
|
requirements:
|
149
129
|
- - '='
|
150
130
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
131
|
+
version: 8.0.0.rc1
|
152
132
|
type: :runtime
|
153
133
|
prerelease: false
|
154
134
|
version_requirements: !ruby/object:Gem::Requirement
|
155
135
|
requirements:
|
156
136
|
- - '='
|
157
137
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
138
|
+
version: 8.0.0.rc1
|
159
139
|
- !ruby/object:Gem::Dependency
|
160
140
|
name: activemodel
|
161
141
|
requirement: !ruby/object:Gem::Requirement
|
162
142
|
requirements:
|
163
143
|
- - '='
|
164
144
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
145
|
+
version: 8.0.0.rc1
|
166
146
|
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
149
|
requirements:
|
170
150
|
- - '='
|
171
151
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
152
|
+
version: 8.0.0.rc1
|
173
153
|
description: Web apps on Rails. Simple, battle-tested conventions for building and
|
174
154
|
testing MVC web applications. Works with any Rack-compatible server.
|
175
155
|
email: david@loudthinking.com
|
@@ -253,8 +233,11 @@ files:
|
|
253
233
|
- lib/action_dispatch/http/mime_negotiation.rb
|
254
234
|
- lib/action_dispatch/http/mime_type.rb
|
255
235
|
- lib/action_dispatch/http/mime_types.rb
|
236
|
+
- lib/action_dispatch/http/param_builder.rb
|
237
|
+
- lib/action_dispatch/http/param_error.rb
|
256
238
|
- lib/action_dispatch/http/parameters.rb
|
257
239
|
- lib/action_dispatch/http/permissions_policy.rb
|
240
|
+
- lib/action_dispatch/http/query_parser.rb
|
258
241
|
- lib/action_dispatch/http/rack_cache.rb
|
259
242
|
- lib/action_dispatch/http/request.rb
|
260
243
|
- lib/action_dispatch/http/response.rb
|
@@ -268,8 +251,6 @@ files:
|
|
268
251
|
- lib/action_dispatch/journey/nfa/dot.rb
|
269
252
|
- lib/action_dispatch/journey/nodes/node.rb
|
270
253
|
- lib/action_dispatch/journey/parser.rb
|
271
|
-
- lib/action_dispatch/journey/parser.y
|
272
|
-
- lib/action_dispatch/journey/parser_extras.rb
|
273
254
|
- lib/action_dispatch/journey/path/pattern.rb
|
274
255
|
- lib/action_dispatch/journey/route.rb
|
275
256
|
- lib/action_dispatch/journey/router.rb
|
@@ -369,10 +350,10 @@ licenses:
|
|
369
350
|
- MIT
|
370
351
|
metadata:
|
371
352
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
372
|
-
changelog_uri: https://github.com/rails/rails/blob/
|
373
|
-
documentation_uri: https://api.rubyonrails.org/
|
353
|
+
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.rc1/actionpack/CHANGELOG.md
|
354
|
+
documentation_uri: https://api.rubyonrails.org/v8.0.0.rc1/
|
374
355
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
375
|
-
source_code_uri: https://github.com/rails/rails/tree/
|
356
|
+
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.rc1/actionpack
|
376
357
|
rubygems_mfa_required: 'true'
|
377
358
|
post_install_message:
|
378
359
|
rdoc_options: []
|
@@ -382,7 +363,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
382
363
|
requirements:
|
383
364
|
- - ">="
|
384
365
|
- !ruby/object:Gem::Version
|
385
|
-
version: 3.
|
366
|
+
version: 3.2.0
|
386
367
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
387
368
|
requirements:
|
388
369
|
- - ">="
|
@@ -1,50 +0,0 @@
|
|
1
|
-
class ActionDispatch::Journey::Parser
|
2
|
-
options no_result_var
|
3
|
-
token SLASH LITERAL SYMBOL LPAREN RPAREN DOT STAR OR
|
4
|
-
|
5
|
-
rule
|
6
|
-
expressions
|
7
|
-
: expression expressions { Cat.new(val.first, val.last) }
|
8
|
-
| expression { val.first }
|
9
|
-
| or
|
10
|
-
;
|
11
|
-
expression
|
12
|
-
: terminal
|
13
|
-
| group
|
14
|
-
| star
|
15
|
-
;
|
16
|
-
group
|
17
|
-
: LPAREN expressions RPAREN { Group.new(val[1]) }
|
18
|
-
;
|
19
|
-
or
|
20
|
-
: expression OR expression { Or.new([val.first, val.last]) }
|
21
|
-
| expression OR or { Or.new([val.first, val.last]) }
|
22
|
-
;
|
23
|
-
star
|
24
|
-
: STAR { Star.new(Symbol.new(val.last, Symbol::GREEDY_EXP)) }
|
25
|
-
;
|
26
|
-
terminal
|
27
|
-
: symbol
|
28
|
-
| literal
|
29
|
-
| slash
|
30
|
-
| dot
|
31
|
-
;
|
32
|
-
slash
|
33
|
-
: SLASH { Slash.new(val.first) }
|
34
|
-
;
|
35
|
-
symbol
|
36
|
-
: SYMBOL { Symbol.new(val.first) }
|
37
|
-
;
|
38
|
-
literal
|
39
|
-
: LITERAL { Literal.new(val.first) }
|
40
|
-
;
|
41
|
-
dot
|
42
|
-
: DOT { Dot.new(val.first) }
|
43
|
-
;
|
44
|
-
|
45
|
-
end
|
46
|
-
|
47
|
-
---- header
|
48
|
-
# :stopdoc:
|
49
|
-
|
50
|
-
require "action_dispatch/journey/parser_extras"
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# :markup: markdown
|
4
|
-
|
5
|
-
require "action_dispatch/journey/scanner"
|
6
|
-
require "action_dispatch/journey/nodes/node"
|
7
|
-
|
8
|
-
module ActionDispatch
|
9
|
-
# :stopdoc:
|
10
|
-
module Journey
|
11
|
-
class Parser < Racc::Parser
|
12
|
-
include Journey::Nodes
|
13
|
-
|
14
|
-
def self.parse(string)
|
15
|
-
new.parse string
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize
|
19
|
-
@scanner = Scanner.new
|
20
|
-
end
|
21
|
-
|
22
|
-
def parse(string)
|
23
|
-
@scanner.scan_setup(string)
|
24
|
-
do_parse
|
25
|
-
end
|
26
|
-
|
27
|
-
def next_token
|
28
|
-
@scanner.next_token
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
# :startdoc:
|
33
|
-
end
|