actionpack 5.2.3.rc1 → 6.0.0.beta1

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.

Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +124 -337
  3. data/MIT-LICENSE +1 -1
  4. data/README.rdoc +1 -1
  5. data/lib/abstract_controller/base.rb +4 -2
  6. data/lib/abstract_controller/caching/fragments.rb +6 -21
  7. data/lib/abstract_controller/callbacks.rb +12 -0
  8. data/lib/abstract_controller/collector.rb +1 -1
  9. data/lib/abstract_controller/helpers.rb +2 -2
  10. data/lib/abstract_controller/railties/routes_helpers.rb +1 -1
  11. data/lib/action_controller.rb +1 -0
  12. data/lib/action_controller/api.rb +2 -1
  13. data/lib/action_controller/base.rb +2 -7
  14. data/lib/action_controller/caching.rb +1 -1
  15. data/lib/action_controller/log_subscriber.rb +8 -5
  16. data/lib/action_controller/metal/conditional_get.rb +9 -3
  17. data/lib/action_controller/metal/data_streaming.rb +5 -6
  18. data/lib/action_controller/metal/default_headers.rb +17 -0
  19. data/lib/action_controller/metal/exceptions.rb +22 -1
  20. data/lib/action_controller/metal/flash.rb +5 -5
  21. data/lib/action_controller/metal/force_ssl.rb +17 -57
  22. data/lib/action_controller/metal/head.rb +1 -1
  23. data/lib/action_controller/metal/helpers.rb +1 -2
  24. data/lib/action_controller/metal/http_authentication.rb +20 -21
  25. data/lib/action_controller/metal/implicit_render.rb +2 -12
  26. data/lib/action_controller/metal/instrumentation.rb +3 -5
  27. data/lib/action_controller/metal/live.rb +28 -26
  28. data/lib/action_controller/metal/mime_responds.rb +13 -2
  29. data/lib/action_controller/metal/params_wrapper.rb +16 -12
  30. data/lib/action_controller/metal/redirecting.rb +32 -11
  31. data/lib/action_controller/metal/rendering.rb +1 -1
  32. data/lib/action_controller/metal/request_forgery_protection.rb +22 -11
  33. data/lib/action_controller/metal/strong_parameters.rb +57 -32
  34. data/lib/action_controller/metal/url_for.rb +1 -1
  35. data/lib/action_controller/railties/helpers.rb +1 -1
  36. data/lib/action_controller/renderer.rb +15 -2
  37. data/lib/action_controller/test_case.rb +1 -4
  38. data/lib/action_dispatch.rb +3 -1
  39. data/lib/action_dispatch/http/cache.rb +14 -10
  40. data/lib/action_dispatch/http/content_disposition.rb +45 -0
  41. data/lib/action_dispatch/http/content_security_policy.rb +9 -8
  42. data/lib/action_dispatch/http/filter_parameters.rb +8 -6
  43. data/lib/action_dispatch/http/filter_redirect.rb +1 -1
  44. data/lib/action_dispatch/http/headers.rb +1 -1
  45. data/lib/action_dispatch/http/mime_negotiation.rb +7 -10
  46. data/lib/action_dispatch/http/mime_type.rb +1 -5
  47. data/lib/action_dispatch/http/parameter_filter.rb +5 -79
  48. data/lib/action_dispatch/http/parameters.rb +13 -3
  49. data/lib/action_dispatch/http/request.rb +10 -13
  50. data/lib/action_dispatch/http/response.rb +18 -17
  51. data/lib/action_dispatch/http/upload.rb +5 -0
  52. data/lib/action_dispatch/http/url.rb +81 -81
  53. data/lib/action_dispatch/journey/formatter.rb +1 -1
  54. data/lib/action_dispatch/journey/nfa/simulator.rb +0 -2
  55. data/lib/action_dispatch/journey/nodes/node.rb +9 -8
  56. data/lib/action_dispatch/journey/path/pattern.rb +3 -3
  57. data/lib/action_dispatch/journey/router.rb +0 -3
  58. data/lib/action_dispatch/journey/router/utils.rb +10 -10
  59. data/lib/action_dispatch/journey/scanner.rb +11 -4
  60. data/lib/action_dispatch/journey/visitors.rb +1 -1
  61. data/lib/action_dispatch/middleware/callbacks.rb +2 -4
  62. data/lib/action_dispatch/middleware/cookies.rb +49 -70
  63. data/lib/action_dispatch/middleware/debug_exceptions.rb +32 -58
  64. data/lib/action_dispatch/middleware/debug_locks.rb +5 -5
  65. data/lib/action_dispatch/middleware/debug_view.rb +50 -0
  66. data/lib/action_dispatch/middleware/exception_wrapper.rb +36 -7
  67. data/lib/action_dispatch/middleware/flash.rb +1 -1
  68. data/lib/action_dispatch/middleware/host_authorization.rb +103 -0
  69. data/lib/action_dispatch/middleware/remote_ip.rb +6 -8
  70. data/lib/action_dispatch/middleware/request_id.rb +2 -2
  71. data/lib/action_dispatch/middleware/session/cookie_store.rb +4 -10
  72. data/lib/action_dispatch/middleware/ssl.rb +8 -8
  73. data/lib/action_dispatch/middleware/static.rb +5 -6
  74. data/lib/action_dispatch/middleware/templates/rescues/_source.html.erb +4 -2
  75. data/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb +45 -35
  76. data/lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb +7 -0
  77. data/lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb +5 -0
  78. data/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb +20 -2
  79. data/lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb +4 -4
  80. data/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb +2 -2
  81. data/lib/action_dispatch/middleware/templates/rescues/missing_exact_template.html.erb +19 -0
  82. data/lib/action_dispatch/middleware/templates/rescues/missing_exact_template.text.erb +3 -0
  83. data/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb +2 -2
  84. data/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb +1 -1
  85. data/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb +2 -2
  86. data/lib/action_dispatch/middleware/templates/routes/_table.html.erb +3 -0
  87. data/lib/action_dispatch/railtie.rb +1 -0
  88. data/lib/action_dispatch/request/session.rb +8 -0
  89. data/lib/action_dispatch/routing.rb +3 -2
  90. data/lib/action_dispatch/routing/inspector.rb +99 -50
  91. data/lib/action_dispatch/routing/mapper.rb +36 -29
  92. data/lib/action_dispatch/routing/polymorphic_routes.rb +3 -4
  93. data/lib/action_dispatch/routing/route_set.rb +11 -12
  94. data/lib/action_dispatch/routing/url_for.rb +1 -0
  95. data/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb +3 -3
  96. data/lib/action_dispatch/testing/assertions/response.rb +2 -3
  97. data/lib/action_dispatch/testing/assertions/routing.rb +7 -2
  98. data/lib/action_dispatch/testing/integration.rb +11 -4
  99. data/lib/action_dispatch/testing/test_process.rb +2 -2
  100. data/lib/action_dispatch/testing/test_response.rb +4 -32
  101. data/lib/action_pack.rb +1 -1
  102. data/lib/action_pack/gem_version.rb +4 -4
  103. metadata +19 -11
@@ -7,10 +7,10 @@ module ActionPack
7
7
  end
8
8
 
9
9
  module VERSION
10
- MAJOR = 5
11
- MINOR = 2
12
- TINY = 3
13
- PRE = "rc1"
10
+ MAJOR = 6
11
+ MINOR = 0
12
+ TINY = 0
13
+ PRE = "beta1"
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: 5.2.3.rc1
4
+ version: 6.0.0.beta1
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-03-22 00:00:00.000000000 Z
11
+ date: 2019-01-18 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.3.rc1
19
+ version: 6.0.0.beta1
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.3.rc1
26
+ version: 6.0.0.beta1
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.3.rc1
95
+ version: 6.0.0.beta1
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.3.rc1
102
+ version: 6.0.0.beta1
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.3.rc1
109
+ version: 6.0.0.beta1
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.3.rc1
116
+ version: 6.0.0.beta1
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
@@ -151,6 +151,7 @@ files:
151
151
  - lib/action_controller/metal/content_security_policy.rb
152
152
  - lib/action_controller/metal/cookies.rb
153
153
  - lib/action_controller/metal/data_streaming.rb
154
+ - lib/action_controller/metal/default_headers.rb
154
155
  - lib/action_controller/metal/etag_with_flash.rb
155
156
  - lib/action_controller/metal/etag_with_template_digest.rb
156
157
  - lib/action_controller/metal/exceptions.rb
@@ -181,6 +182,7 @@ files:
181
182
  - lib/action_controller/test_case.rb
182
183
  - lib/action_dispatch.rb
183
184
  - lib/action_dispatch/http/cache.rb
185
+ - lib/action_dispatch/http/content_disposition.rb
184
186
  - lib/action_dispatch/http/content_security_policy.rb
185
187
  - lib/action_dispatch/http/filter_parameters.rb
186
188
  - lib/action_dispatch/http/filter_redirect.rb
@@ -222,9 +224,11 @@ files:
222
224
  - lib/action_dispatch/middleware/cookies.rb
223
225
  - lib/action_dispatch/middleware/debug_exceptions.rb
224
226
  - lib/action_dispatch/middleware/debug_locks.rb
227
+ - lib/action_dispatch/middleware/debug_view.rb
225
228
  - lib/action_dispatch/middleware/exception_wrapper.rb
226
229
  - lib/action_dispatch/middleware/executor.rb
227
230
  - lib/action_dispatch/middleware/flash.rb
231
+ - lib/action_dispatch/middleware/host_authorization.rb
228
232
  - lib/action_dispatch/middleware/public_exceptions.rb
229
233
  - lib/action_dispatch/middleware/reloader.rb
230
234
  - lib/action_dispatch/middleware/remote_ip.rb
@@ -243,11 +247,15 @@ files:
243
247
  - lib/action_dispatch/middleware/templates/rescues/_source.text.erb
244
248
  - lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
245
249
  - lib/action_dispatch/middleware/templates/rescues/_trace.text.erb
250
+ - lib/action_dispatch/middleware/templates/rescues/blocked_host.html.erb
251
+ - lib/action_dispatch/middleware/templates/rescues/blocked_host.text.erb
246
252
  - lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb
247
253
  - lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb
248
254
  - lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb
249
255
  - lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb
250
256
  - lib/action_dispatch/middleware/templates/rescues/layout.erb
257
+ - lib/action_dispatch/middleware/templates/rescues/missing_exact_template.html.erb
258
+ - lib/action_dispatch/middleware/templates/rescues/missing_exact_template.text.erb
251
259
  - lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb
252
260
  - lib/action_dispatch/middleware/templates/rescues/missing_template.text.erb
253
261
  - lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb
@@ -293,8 +301,8 @@ homepage: http://rubyonrails.org
293
301
  licenses:
294
302
  - MIT
295
303
  metadata:
296
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3.rc1/actionpack
297
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3.rc1/actionpack/CHANGELOG.md
304
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.0.beta1/actionpack
305
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.0.beta1/actionpack/CHANGELOG.md
298
306
  post_install_message:
299
307
  rdoc_options: []
300
308
  require_paths:
@@ -303,7 +311,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
303
311
  requirements:
304
312
  - - ">="
305
313
  - !ruby/object:Gem::Version
306
- version: 2.2.2
314
+ version: 2.5.0
307
315
  required_rubygems_version: !ruby/object:Gem::Requirement
308
316
  requirements:
309
317
  - - ">"