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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: cc35c737d2a3d7345e91f68dfa3a52f1f087a6382887bd27978b777e564a0e2f
4
- data.tar.gz: f40dee80da4444057925b3cb78f73cfd38f3ca54ff1f1289b2fc8d5240652696
2
+ SHA1:
3
+ metadata.gz: 3f2b9bbede2083f81c567797e5f7595b26c3a641
4
+ data.tar.gz: 86ab105b9a9119a4b06fda662109fd265c22ed70
5
5
  SHA512:
6
- metadata.gz: 5cffb277d9d97f1afddc5d2c61431071f2ecedd0a9252187145028fcb893bf4fa0d3f9abca5726df1f2f069a98b2d2287f811ad43c93fc9644001ecaf6fad3bf
7
- data.tar.gz: dab970e3fa0bb0ac54a57141b122a6775760c1a088182524a7028ada2964914bef93cc9f1aeb0f4839d2470b629eb2c6d4845fcb6da2d359705849e2191936cc
6
+ metadata.gz: 480092618ef2df237225b0017e3e935388253c4789829d532a054e9ecb5de15eee97b6f06a653a0fdd593fe8e9ea569d8271126f1f44978345e15cd8c7bd9ca1
7
+ data.tar.gz: 4f0e5dbd95f861f59077d22fa8d994a8b8fc88f3398867ae1205ffc9aadb7c62568fb7c1395f80b53368d78936a42cdde3323c144f9eed6c437589ab37a1d24b
@@ -1,3 +1,10 @@
1
+ ## Rails 5.1.6 (March 29, 2018) ##
2
+
3
+ * Check exclude before flagging cookies as secure.
4
+
5
+ *Catherine Khuu*
6
+
7
+
1
8
  ## Rails 5.1.5 (February 14, 2018) ##
2
9
 
3
10
  * Fix optimized url helpers when using relative url root
@@ -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
- _routes.url_helpers.send("#{name}_path", prefix_options)
667
+ _url_helpers.send("#{name}_path", prefix_options)
667
668
  end
668
669
 
669
670
  app.routes.define_mounted_helper(name, script_namer)
@@ -7,7 +7,7 @@ module ActionPack
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 5
10
+ TINY = 6
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.5
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-02-14 00:00:00.000000000 Z
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.5
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.5
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.5
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.5
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.5
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.5
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.5/actionpack
291
- changelog_uri: https://github.com/rails/rails/blob/v5.1.5/actionpack/CHANGELOG.md
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.7.3
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).