actionpack 5.2.2 → 5.2.3
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 +22 -0
- data/lib/action_controller/test_case.rb +2 -2
- data/lib/action_dispatch/http/cache.rb +6 -4
- data/lib/action_dispatch/http/mime_negotiation.rb +5 -0
- data/lib/action_dispatch/http/response.rb +3 -4
- data/lib/action_dispatch/journey/path/pattern.rb +1 -1
- data/lib/action_dispatch/middleware/session/cookie_store.rb +4 -3
- data/lib/action_pack/gem_version.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fdbc11b76565d6d325a51b67c7a598b0a70c33e3e26c849dc57733e3fa7c0833
|
|
4
|
+
data.tar.gz: 3afcd1526eb36e16fd199bb242fb232ddc3c01125e0d1306c94d31b315e93039
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3122260924160e941c750fba0e3a671b2b2f40723c9c6766fae0f3987ac9521332d3a4128959fa61b993d72bd0539b7925ebb785b50d9b9811514897a2d5bf9e
|
|
7
|
+
data.tar.gz: 4be02fcd7f87d2b725ba823274bc2c40eb367a2a26d7b1b53da8e4df699eae389fec796ff5164c7cb721426fa6cdf8f8b5ae5b6d74a712e5631e5e1ded283717
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## Rails 5.2.3 (March 27, 2019) ##
|
|
2
|
+
|
|
3
|
+
* Allow using combine the Cache Control `public` and `no-cache` headers.
|
|
4
|
+
|
|
5
|
+
Before this change, even if `public` was specified for Cache Control header,
|
|
6
|
+
it was excluded when `no-cache` was included. This fixed to keep `public`
|
|
7
|
+
header as is.
|
|
8
|
+
|
|
9
|
+
Fixes #34780.
|
|
10
|
+
|
|
11
|
+
*Yuji Yaginuma*
|
|
12
|
+
|
|
13
|
+
* Allow `nil` params for `ActionController::TestCase`.
|
|
14
|
+
|
|
15
|
+
*Ryo Nakamura*
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Rails 5.2.2.1 (March 11, 2019) ##
|
|
19
|
+
|
|
20
|
+
* No changes.
|
|
21
|
+
|
|
22
|
+
|
|
1
23
|
## Rails 5.2.2 (December 04, 2018) ##
|
|
2
24
|
|
|
3
25
|
* Reset Capybara sessions if failed system test screenshot raising an exception.
|
|
@@ -457,7 +457,7 @@ module ActionController
|
|
|
457
457
|
# respectively which will make tests more expressive.
|
|
458
458
|
#
|
|
459
459
|
# Note that the request method is not verified.
|
|
460
|
-
def process(action, method: "GET", params:
|
|
460
|
+
def process(action, method: "GET", params: nil, session: nil, body: nil, flash: {}, format: nil, xhr: false, as: nil)
|
|
461
461
|
check_required_ivars
|
|
462
462
|
|
|
463
463
|
http_method = method.to_s.upcase
|
|
@@ -485,7 +485,7 @@ module ActionController
|
|
|
485
485
|
format ||= as
|
|
486
486
|
end
|
|
487
487
|
|
|
488
|
-
parameters = params.symbolize_keys
|
|
488
|
+
parameters = (params || {}).symbolize_keys
|
|
489
489
|
|
|
490
490
|
if format
|
|
491
491
|
parameters[:format] = format
|
|
@@ -197,10 +197,12 @@ module ActionDispatch
|
|
|
197
197
|
if control.empty?
|
|
198
198
|
# Let middleware handle default behavior
|
|
199
199
|
elsif control[:no_cache]
|
|
200
|
-
|
|
201
|
-
if control[:
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
options = []
|
|
201
|
+
options << PUBLIC if control[:public]
|
|
202
|
+
options << NO_CACHE
|
|
203
|
+
options.concat(control[:extras]) if control[:extras]
|
|
204
|
+
|
|
205
|
+
self._cache_control = options.join(", ")
|
|
204
206
|
else
|
|
205
207
|
extras = control[:extras]
|
|
206
208
|
max_age = control[:max_age]
|
|
@@ -82,6 +82,7 @@ module ActionDispatch # :nodoc:
|
|
|
82
82
|
SET_COOKIE = "Set-Cookie".freeze
|
|
83
83
|
LOCATION = "Location".freeze
|
|
84
84
|
NO_CONTENT_CODES = [100, 101, 102, 204, 205, 304]
|
|
85
|
+
CONTENT_TYPE_PARSER = /\A(?<type>[^;\s]+)?(?:.*;\s*charset=(?<quote>"?)(?<charset>[^;\s]+)\k<quote>)?/ # :nodoc:
|
|
85
86
|
|
|
86
87
|
cattr_accessor :default_charset, default: "utf-8"
|
|
87
88
|
cattr_accessor :default_headers
|
|
@@ -409,10 +410,8 @@ module ActionDispatch # :nodoc:
|
|
|
409
410
|
NullContentTypeHeader = ContentTypeHeader.new nil, nil
|
|
410
411
|
|
|
411
412
|
def parse_content_type(content_type)
|
|
412
|
-
if content_type
|
|
413
|
-
type, charset
|
|
414
|
-
type = nil if type && type.empty?
|
|
415
|
-
ContentTypeHeader.new(type, charset)
|
|
413
|
+
if content_type && match = CONTENT_TYPE_PARSER.match(content_type)
|
|
414
|
+
ContentTypeHeader.new(match[:type], match[:charset])
|
|
416
415
|
else
|
|
417
416
|
NullContentTypeHeader
|
|
418
417
|
end
|
|
@@ -29,9 +29,10 @@ module ActionDispatch
|
|
|
29
29
|
#
|
|
30
30
|
# Rails.application.config.session_store :cookie_store, key: '_your_app_session'
|
|
31
31
|
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
# encrypted in the
|
|
32
|
+
# In the development and test environments your application's secret key base is
|
|
33
|
+
# generated by Rails and stored in a temporary file in <tt>tmp/development_secret.txt</tt>.
|
|
34
|
+
# In all other environments, it is stored encrypted in the
|
|
35
|
+
# <tt>config/credentials.yml.enc</tt> file.
|
|
35
36
|
#
|
|
36
37
|
# If your application was not updated to Rails 5.2 defaults, the secret_key_base
|
|
37
38
|
# will be found in the old <tt>config/secrets.yml</tt> file.
|
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: 5.2.
|
|
4
|
+
version: 5.2.3
|
|
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:
|
|
11
|
+
date: 2019-03-28 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: 5.2.
|
|
19
|
+
version: 5.2.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: 5.2.
|
|
26
|
+
version: 5.2.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rack
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,28 +92,28 @@ dependencies:
|
|
|
92
92
|
requirements:
|
|
93
93
|
- - '='
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: 5.2.
|
|
95
|
+
version: 5.2.3
|
|
96
96
|
type: :runtime
|
|
97
97
|
prerelease: false
|
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - '='
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: 5.2.
|
|
102
|
+
version: 5.2.3
|
|
103
103
|
- !ruby/object:Gem::Dependency
|
|
104
104
|
name: activemodel
|
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - '='
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: 5.2.
|
|
109
|
+
version: 5.2.3
|
|
110
110
|
type: :development
|
|
111
111
|
prerelease: false
|
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - '='
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: 5.2.
|
|
116
|
+
version: 5.2.3
|
|
117
117
|
description: Web apps on Rails. Simple, battle-tested conventions for building and
|
|
118
118
|
testing MVC web applications. Works with any Rack-compatible server.
|
|
119
119
|
email: david@loudthinking.com
|
|
@@ -293,8 +293,8 @@ homepage: http://rubyonrails.org
|
|
|
293
293
|
licenses:
|
|
294
294
|
- MIT
|
|
295
295
|
metadata:
|
|
296
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.2.
|
|
297
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.2.
|
|
296
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.2.3/actionpack
|
|
297
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.2.3/actionpack/CHANGELOG.md
|
|
298
298
|
post_install_message:
|
|
299
299
|
rdoc_options: []
|
|
300
300
|
require_paths:
|
|
@@ -311,8 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
311
311
|
version: '0'
|
|
312
312
|
requirements:
|
|
313
313
|
- none
|
|
314
|
-
|
|
315
|
-
rubygems_version: 2.7.6
|
|
314
|
+
rubygems_version: 3.0.1
|
|
316
315
|
signing_key:
|
|
317
316
|
specification_version: 4
|
|
318
317
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|