actionpack 6.1.2.1 → 6.1.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/abstract_controller/railties/routes_helpers.rb +17 -1
- data/lib/action_controller/renderer.rb +1 -1
- data/lib/action_dispatch/http/mime_type.rb +1 -1
- data/lib/action_dispatch/middleware/host_authorization.rb +2 -2
- data/lib/action_dispatch/middleware/stack.rb +1 -1
- data/lib/action_dispatch/middleware/static.rb +2 -2
- data/lib/action_dispatch/routing/redirection.rb +1 -1
- data/lib/action_dispatch/testing/integration.rb +2 -2
- data/lib/action_pack/gem_version.rb +2 -2
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ea58dade23ab9890d5e08a7a1cb0f8cf4cae0fbd41eea9fe284d3525245aeee
|
4
|
+
data.tar.gz: c84e4268d1477b99849c45bff8a08a31d3bb8d72fcc3c73c621f79a7c8bc813a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 494e49e2b62a10a42b90c0e36745d67aae27cd1988332070db69725ea0f30834f22e494a9c448dfceed91c3cc63bf6055bfc94de372efeb55a62f126835786ea
|
7
|
+
data.tar.gz: 2d1d9bd8fe5a25cdb1ffb92e5c204f91a71d68be2dfdb0e94730b7b3fd62f931facb99c93f9e1d7c8462d317b0accc640135ca232f9547760a0a525b4ed4a9e5
|
data/CHANGELOG.md
CHANGED
@@ -7,11 +7,27 @@ module AbstractController
|
|
7
7
|
Module.new do
|
8
8
|
define_method(:inherited) do |klass|
|
9
9
|
super(klass)
|
10
|
-
|
10
|
+
|
11
|
+
namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
|
12
|
+
actual_routes = namespace ? namespace.railtie_routes_url_helpers._routes : routes
|
13
|
+
|
14
|
+
if namespace
|
11
15
|
klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
|
12
16
|
else
|
13
17
|
klass.include(routes.url_helpers(include_path_helpers))
|
14
18
|
end
|
19
|
+
|
20
|
+
# In the case that we have ex.
|
21
|
+
# class A::Foo < ApplicationController
|
22
|
+
# class Bar < A::Foo
|
23
|
+
# We will need to redefine _routes because it will not be correct
|
24
|
+
# via inheritance.
|
25
|
+
unless klass._routes.equal?(actual_routes)
|
26
|
+
klass.redefine_singleton_method(:_routes) { actual_routes }
|
27
|
+
klass.include(Module.new do
|
28
|
+
define_method(:_routes) { @_routes || actual_routes }
|
29
|
+
end)
|
30
|
+
end
|
15
31
|
end
|
16
32
|
end
|
17
33
|
end
|
@@ -84,7 +84,7 @@ module ActionController
|
|
84
84
|
#
|
85
85
|
# If no <tt>options</tt> hash is passed or if <tt>:update</tt> is specified, then:
|
86
86
|
#
|
87
|
-
# If an object responding to
|
87
|
+
# If an object responding to +render_in+ is passed, +render_in+ is called on the object,
|
88
88
|
# passing in the current view context.
|
89
89
|
#
|
90
90
|
# Otherwise, a partial is rendered using the second parameter as the locals hash.
|
@@ -330,7 +330,7 @@ module Mime
|
|
330
330
|
end
|
331
331
|
|
332
332
|
# ALL isn't a real MIME type, so we don't register it for lookup with the
|
333
|
-
# other concrete types. It's a wildcard match that we use for
|
333
|
+
# other concrete types. It's a wildcard match that we use for +respond_to+
|
334
334
|
# negotiation internals.
|
335
335
|
ALL = AllType.instance
|
336
336
|
|
@@ -13,7 +13,7 @@ module ActionDispatch
|
|
13
13
|
#
|
14
14
|
# When a request comes to an unauthorized host, the +response_app+
|
15
15
|
# application will be executed and rendered. If no +response_app+ is given, a
|
16
|
-
# default one will run, which responds with
|
16
|
+
# default one will run, which responds with <tt>403 Forbidden</tt>.
|
17
17
|
class HostAuthorization
|
18
18
|
class Permissions # :nodoc:
|
19
19
|
def initialize(hosts)
|
@@ -105,7 +105,7 @@ module ActionDispatch
|
|
105
105
|
def authorized?(request)
|
106
106
|
valid_host = /
|
107
107
|
\A
|
108
|
-
(?<host>[a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9
|
108
|
+
(?<host>[a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9.:]+\])
|
109
109
|
(:\d+)?
|
110
110
|
\z
|
111
111
|
/x
|
@@ -43,7 +43,7 @@ module ActionDispatch
|
|
43
43
|
end
|
44
44
|
|
45
45
|
# This class is used to instrument the execution of a single middleware.
|
46
|
-
# It proxies the
|
46
|
+
# It proxies the +call+ method transparently and instruments the method
|
47
47
|
# call.
|
48
48
|
class InstrumentationProxy
|
49
49
|
EVENT_NAME = "process_middleware.action_dispatch"
|
@@ -32,12 +32,12 @@ module ActionDispatch
|
|
32
32
|
#
|
33
33
|
# Precompressed versions of these files are checked first. Brotli (.br)
|
34
34
|
# and gzip (.gz) files are supported. If +path+.br exists, this
|
35
|
-
# endpoint returns that file with a
|
35
|
+
# endpoint returns that file with a <tt>Content-Encoding: br</tt> header.
|
36
36
|
#
|
37
37
|
# If no matching file is found, this endpoint responds 404 Not Found.
|
38
38
|
#
|
39
39
|
# Pass the +root+ directory to search for matching files, an optional
|
40
|
-
#
|
40
|
+
# <tt>index: "index"</tt> to change the default +path+/index.html, and optional
|
41
41
|
# additional response headers.
|
42
42
|
class FileHandler
|
43
43
|
# Accept-Encoding value -> file extension
|
@@ -164,7 +164,7 @@ module ActionDispatch
|
|
164
164
|
# "http://#{request.host_with_port}/#{path}"
|
165
165
|
# }
|
166
166
|
#
|
167
|
-
# Note that the
|
167
|
+
# Note that the <tt>do end</tt> syntax for the redirect block wouldn't work, as Ruby would pass
|
168
168
|
# the block to +get+ instead of +redirect+. Use <tt>{ ... }</tt> instead.
|
169
169
|
#
|
170
170
|
# The options version of redirect allows you to supply only the parts of the URL which need
|
@@ -199,11 +199,11 @@ module ActionDispatch
|
|
199
199
|
# merged into the Rack env hash.
|
200
200
|
# - +env+: Additional env to pass, as a Hash. The headers will be
|
201
201
|
# merged into the Rack env hash.
|
202
|
-
# - +xhr+: Set to
|
202
|
+
# - +xhr+: Set to +true+ if you want to make and Ajax request.
|
203
203
|
# Adds request headers characteristic of XMLHttpRequest e.g. HTTP_X_REQUESTED_WITH.
|
204
204
|
# The headers will be merged into the Rack env hash.
|
205
205
|
# - +as+: Used for encoding the request with different content type.
|
206
|
-
# Supports
|
206
|
+
# Supports +:json+ by default and will set the appropriate request headers.
|
207
207
|
# The headers will be merged into the Rack env hash.
|
208
208
|
#
|
209
209
|
# This method is rarely used directly. Use +#get+, +#post+, or other standard
|
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: 6.1.
|
4
|
+
version: 6.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-17 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: 6.1.
|
19
|
+
version: 6.1.3
|
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: 6.1.
|
26
|
+
version: 6.1.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,28 +98,28 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - '='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 6.1.
|
101
|
+
version: 6.1.3
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - '='
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 6.1.
|
108
|
+
version: 6.1.3
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: activemodel
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - '='
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 6.1.
|
115
|
+
version: 6.1.3
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - '='
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 6.1.
|
122
|
+
version: 6.1.3
|
123
123
|
description: Web apps on Rails. Simple, battle-tested conventions for building and
|
124
124
|
testing MVC web applications. Works with any Rack-compatible server.
|
125
125
|
email: david@loudthinking.com
|
@@ -309,11 +309,11 @@ licenses:
|
|
309
309
|
- MIT
|
310
310
|
metadata:
|
311
311
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
312
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.1.
|
313
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.
|
312
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.3/actionpack/CHANGELOG.md
|
313
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.3/
|
314
314
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
315
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.
|
316
|
-
post_install_message:
|
315
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.3/actionpack
|
316
|
+
post_install_message:
|
317
317
|
rdoc_options: []
|
318
318
|
require_paths:
|
319
319
|
- lib
|
@@ -329,8 +329,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
329
|
version: '0'
|
330
330
|
requirements:
|
331
331
|
- none
|
332
|
-
rubygems_version: 3.
|
333
|
-
signing_key:
|
332
|
+
rubygems_version: 3.2.3
|
333
|
+
signing_key:
|
334
334
|
specification_version: 4
|
335
335
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|
336
336
|
test_files: []
|