actionpack 5.1.5 → 5.1.6
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 +5 -5
- data/CHANGELOG.md +7 -0
- data/lib/action_dispatch/middleware/ssl.rb +3 -1
- data/lib/action_dispatch/routing/mapper.rb +2 -1
- data/lib/action_pack/gem_version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3f2b9bbede2083f81c567797e5f7595b26c3a641
|
4
|
+
data.tar.gz: 86ab105b9a9119a4b06fda662109fd265c22ed70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 480092618ef2df237225b0017e3e935388253c4789829d532a054e9ecb5de15eee97b6f06a653a0fdd593fe8e9ea569d8271126f1f44978345e15cd8c7bd9ca1
|
7
|
+
data.tar.gz: 4f0e5dbd95f861f59077d22fa8d994a8b8fc88f3398867ae1205ffc9aadb7c62568fb7c1395f80b53368d78936a42cdde3323c144f9eed6c437589ab37a1d24b
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,8 @@ module ActionDispatch
|
|
9
9
|
# (e.g. `redirect: { host: "secure.widgets.com", port: 8080 }`), or set
|
10
10
|
# `redirect: false` to disable this feature.
|
11
11
|
#
|
12
|
+
# Cookies will not be flagged as secure for excluded requests.
|
13
|
+
#
|
12
14
|
# 2. Secure cookies: Sets the `secure` flag on cookies to tell browsers they
|
13
15
|
# mustn't be sent along with http:// requests. Enabled by default. Set
|
14
16
|
# `config.ssl_options` with `secure_cookies: false` to disable this feature.
|
@@ -65,7 +67,7 @@ module ActionDispatch
|
|
65
67
|
if request.ssl?
|
66
68
|
@app.call(env).tap do |status, headers, body|
|
67
69
|
set_hsts_header! headers
|
68
|
-
flag_cookies_as_secure! headers if @secure_cookies
|
70
|
+
flag_cookies_as_secure! headers if @secure_cookies && !@exclude.call(request)
|
69
71
|
end
|
70
72
|
else
|
71
73
|
return redirect_to_https request unless @exclude.call(request)
|
@@ -652,6 +652,7 @@ module ActionDispatch
|
|
652
652
|
def define_generate_prefix(app, name)
|
653
653
|
_route = @set.named_routes.get name
|
654
654
|
_routes = @set
|
655
|
+
_url_helpers = @set.url_helpers
|
655
656
|
|
656
657
|
script_namer = ->(options) do
|
657
658
|
prefix_options = options.slice(*_route.segment_keys)
|
@@ -663,7 +664,7 @@ module ActionDispatch
|
|
663
664
|
|
664
665
|
# We must actually delete prefix segment keys to avoid passing them to next url_for.
|
665
666
|
_route.segment_keys.each { |k| options.delete(k) }
|
666
|
-
|
667
|
+
_url_helpers.send("#{name}_path", prefix_options)
|
667
668
|
end
|
668
669
|
|
669
670
|
app.routes.define_mounted_helper(name, script_namer)
|
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.1.
|
4
|
+
version: 5.1.6
|
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: 2018-
|
11
|
+
date: 2018-03-29 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.1.
|
19
|
+
version: 5.1.6
|
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.1.
|
26
|
+
version: 5.1.6
|
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.1.
|
95
|
+
version: 5.1.6
|
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.1.
|
102
|
+
version: 5.1.6
|
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.1.
|
109
|
+
version: 5.1.6
|
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.1.
|
116
|
+
version: 5.1.6
|
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
|
@@ -287,8 +287,8 @@ homepage: http://rubyonrails.org
|
|
287
287
|
licenses:
|
288
288
|
- MIT
|
289
289
|
metadata:
|
290
|
-
source_code_uri: https://github.com/rails/rails/tree/v5.1.
|
291
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.1.
|
290
|
+
source_code_uri: https://github.com/rails/rails/tree/v5.1.6/actionpack
|
291
|
+
changelog_uri: https://github.com/rails/rails/blob/v5.1.6/actionpack/CHANGELOG.md
|
292
292
|
post_install_message:
|
293
293
|
rdoc_options: []
|
294
294
|
require_paths:
|
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
306
|
requirements:
|
307
307
|
- none
|
308
308
|
rubyforge_project:
|
309
|
-
rubygems_version: 2.
|
309
|
+
rubygems_version: 2.6.14
|
310
310
|
signing_key:
|
311
311
|
specification_version: 4
|
312
312
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|