actionpack 6.0.2.rc1 → 6.0.2.rc2
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 +1 -1
- data/lib/action_controller/metal/request_forgery_protection.rb +1 -1
- data/lib/action_dispatch/http/mime_type.rb +1 -1
- data/lib/action_dispatch/http/request.rb +1 -2
- data/lib/action_dispatch/journey/formatter.rb +1 -1
- data/lib/action_dispatch/routing/mapper.rb +2 -2
- data/lib/action_pack/gem_version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d44df405c2e632ae4646871b8f5e08787c81a7348a8ade4b438cc2eef09fa827
|
4
|
+
data.tar.gz: 7f8ffc32efec243949b412fa7c15ef14eb672318ff14a00bc1a34044b6ac0f9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e30fa22231fd2de1bd198139ce016ecc35470fd46225d2c732a0a25a2ea624c1468197be68626775f710f5f8fa36396414965dd31e8da3c58c7cf2de3bd57fab
|
7
|
+
data.tar.gz: bd75118e12a3879f17cb4d4b0f35443ebbc2c4db77bd82f972807c061f513db95dc46a69de9015ba51693ddc3607d7dbec95e3224af316b66413b51543fc05b0
|
data/CHANGELOG.md
CHANGED
@@ -282,7 +282,7 @@ module ActionController #:nodoc:
|
|
282
282
|
|
283
283
|
# Check for cross-origin JavaScript responses.
|
284
284
|
def non_xhr_javascript_response? # :doc:
|
285
|
-
|
285
|
+
%r(\A(?:text|application)/javascript).match?(media_type) && !request.xhr?
|
286
286
|
end
|
287
287
|
|
288
288
|
AUTHENTICITY_TOKEN_LENGTH = 32
|
@@ -231,7 +231,7 @@ module Mime
|
|
231
231
|
class InvalidMimeType < StandardError; end
|
232
232
|
|
233
233
|
def initialize(string, symbol = nil, synonyms = [])
|
234
|
-
|
234
|
+
unless MIME_REGEXP.match?(string)
|
235
235
|
raise InvalidMimeType, "#{string.inspect} is not a valid MIME type"
|
236
236
|
end
|
237
237
|
@symbol, @synonyms = symbol, synonyms
|
@@ -264,8 +264,7 @@ module ActionDispatch
|
|
264
264
|
# (case-insensitive), which may need to be manually added depending on the
|
265
265
|
# choice of JavaScript libraries and frameworks.
|
266
266
|
def xml_http_request?
|
267
|
-
|
268
|
-
header && /XMLHttpRequest/i.match?(header)
|
267
|
+
get_header("HTTP_X_REQUESTED_WITH") =~ /XMLHttpRequest/i
|
269
268
|
end
|
270
269
|
alias :xhr? :xml_http_request?
|
271
270
|
|
@@ -341,7 +341,7 @@ module ActionDispatch
|
|
341
341
|
end
|
342
342
|
|
343
343
|
def split_to(to)
|
344
|
-
if
|
344
|
+
if /#/.match?(to)
|
345
345
|
to.split("#")
|
346
346
|
else
|
347
347
|
[]
|
@@ -350,7 +350,7 @@ module ActionDispatch
|
|
350
350
|
|
351
351
|
def add_controller_module(controller, modyoule)
|
352
352
|
if modyoule && !controller.is_a?(Regexp)
|
353
|
-
if
|
353
|
+
if %r{\A/}.match?(controller)
|
354
354
|
controller[1..-1]
|
355
355
|
else
|
356
356
|
[modyoule, controller].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: 6.0.2.
|
4
|
+
version: 6.0.2.rc2
|
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: 2019-
|
11
|
+
date: 2019-12-09 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.0.2.
|
19
|
+
version: 6.0.2.rc2
|
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.0.2.
|
26
|
+
version: 6.0.2.rc2
|
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: 6.0.2.
|
95
|
+
version: 6.0.2.rc2
|
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: 6.0.2.
|
102
|
+
version: 6.0.2.rc2
|
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: 6.0.2.
|
109
|
+
version: 6.0.2.rc2
|
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: 6.0.2.
|
116
|
+
version: 6.0.2.rc2
|
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
|
@@ -304,10 +304,10 @@ licenses:
|
|
304
304
|
- MIT
|
305
305
|
metadata:
|
306
306
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
307
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.2.
|
308
|
-
documentation_uri: https://api.rubyonrails.org/v6.0.2.
|
307
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc2/actionpack/CHANGELOG.md
|
308
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.2.rc2/
|
309
309
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
|
310
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.0.2.
|
310
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc2/actionpack
|
311
311
|
post_install_message:
|
312
312
|
rdoc_options: []
|
313
313
|
require_paths:
|