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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d31660141b70bcd7bb7b0cfc5509b010e26f315746ac56393ed2efa2cf98f010
4
- data.tar.gz: 26ac4dc632509e7adc781b2934377e7688179b26f1f9ee03b0bc5c9e673ebee4
3
+ metadata.gz: d44df405c2e632ae4646871b8f5e08787c81a7348a8ade4b438cc2eef09fa827
4
+ data.tar.gz: 7f8ffc32efec243949b412fa7c15ef14eb672318ff14a00bc1a34044b6ac0f9d
5
5
  SHA512:
6
- metadata.gz: 7a4ca7d05d7d16497b149ff4b24832c275ee35f6cd22c7a7498042c38cdce12db7922fc74f999851e40befe56fd5083474ea2046a3f789fb88295eaa339746d4
7
- data.tar.gz: 8387a06f3516dbab37c2782a18351993626aa7b12ac021d0a837f37096a905911baaeb5b627679d50a1603c65ff43c2db670968c3826df052b14d87e5ae76588
6
+ metadata.gz: e30fa22231fd2de1bd198139ce016ecc35470fd46225d2c732a0a25a2ea624c1468197be68626775f710f5f8fa36396414965dd31e8da3c58c7cf2de3bd57fab
7
+ data.tar.gz: bd75118e12a3879f17cb4d4b0f35443ebbc2c4db77bd82f972807c061f513db95dc46a69de9015ba51693ddc3607d7dbec95e3224af316b66413b51543fc05b0
@@ -1,4 +1,4 @@
1
- ## Rails 6.0.2.rc1 (November 27, 2019) ##
1
+ ## Rails 6.0.2.rc2 (December 09, 2019) ##
2
2
 
3
3
  * Allow using mountable engine route helpers in System Tests.
4
4
 
@@ -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
- media_type && %r(\A(?:text|application)/javascript).match?(media_type) && !request.xhr?
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
- if string.nil? || ! MIME_REGEXP.match?(string)
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
- header = get_header("HTTP_X_REQUESTED_WITH")
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
 
@@ -152,7 +152,7 @@ module ActionDispatch
152
152
  missing_keys << key
153
153
  end
154
154
  else
155
- if parts[key].nil? || !/\A#{tests[key]}\Z/.match?(parts[key])
155
+ unless /\A#{tests[key]}\Z/ === parts[key]
156
156
  missing_keys ||= []
157
157
  missing_keys << key
158
158
  end
@@ -341,7 +341,7 @@ module ActionDispatch
341
341
  end
342
342
 
343
343
  def split_to(to)
344
- if to && /#/.match?(to)
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 controller && controller.start_with?("/")
353
+ if %r{\A/}.match?(controller)
354
354
  controller[1..-1]
355
355
  else
356
356
  [modyoule, controller].compact.join("/")
@@ -10,7 +10,7 @@ module ActionPack
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
12
  TINY = 2
13
- PRE = "rc1"
13
+ PRE = "rc2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
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.rc1
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-27 00:00:00.000000000 Z
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.rc1
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.rc1
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.rc1
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.rc1
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.rc1
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.rc1
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.rc1/actionpack/CHANGELOG.md
308
- documentation_uri: https://api.rubyonrails.org/v6.0.2.rc1/
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.rc1/actionpack
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: