actionpack 7.2.0.beta2 → 7.2.0.beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

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: fba22bfa740eaf52af14cc4f253b413c214c7d0361fd2b62360e4fcb4cf0b9c9
4
- data.tar.gz: 8759e30d54569185f3b6d6a02fec6cc9edb4d1147c3ce623a67f8909f4b6fbc7
3
+ metadata.gz: 98a4b9d6813e02c8fe74d979e5d89df4f43937fb5adc1e0e3d54032a76c9622e
4
+ data.tar.gz: 42e794d146c9b6e5ff04667d70b19f29013d1585501c0faa7e095ec4af102a99
5
5
  SHA512:
6
- metadata.gz: 3cc6ac8ca0074fb51eeb0af110f0c10bbf41fa5c5f1c843bf22e49fcc93b54e19d4f29a10a3f5d9984b1e3aba8fbacc87f0cddfaab1fc7ab201d6aaab94cfd50
7
- data.tar.gz: 5f1438d0e91c7571bd661d4c9fad2bf112f6808efda565694cafdb045cca1ce2e75cc1a671796f310cb1abdac804bc189d7eb096aced1a89731ae2dc7c686b87
6
+ metadata.gz: 3dfa63137add19360a6ab64b832f2237b15c3d1581a3d45433578e4a273d4b0ef9bc4189e4d8d1bf0da5780b40ee2be89458e3f05187141943dc7b4b10e2a440
7
+ data.tar.gz: 8b8a0b1a731adaa8c8a805f7f693532aa1f2b85502d8eb9ce619a394ab67194b5d32bbbca90fc91505211f4a0a013014407463d4244fccc214001300bc6c13db
data/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
+ ## Rails 7.2.0.beta3 (July 11, 2024) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 7.2.0.beta2 (June 04, 2024) ##
2
7
 
3
8
  * Include the HTTP Permissions-Policy on non-HTML Content-Types
4
9
  [CVE-2024-28103]
5
10
 
11
+ *Aaron Patterson*, *Zack Deveau*
12
+
6
13
 
7
14
  ## Rails 7.2.0.beta1 (May 29, 2024) ##
8
15
 
@@ -231,7 +231,6 @@ module ActionController
231
231
  AbstractController::Rendering,
232
232
  AbstractController::Translation,
233
233
  AbstractController::AssetPaths,
234
-
235
234
  Helpers,
236
235
  UrlFor,
237
236
  Redirecting,
@@ -261,26 +260,58 @@ module ActionController
261
260
  HttpAuthentication::Token::ControllerMethods,
262
261
  DefaultHeaders,
263
262
  Logging,
264
-
265
- # Before callbacks should also be executed as early as possible, so also include
266
- # them at the bottom.
267
263
  AbstractController::Callbacks,
268
-
269
- # Append rescue at the bottom to wrap as much as possible.
270
264
  Rescue,
271
-
272
- # Add instrumentations hooks at the bottom, to ensure they instrument all the
273
- # methods properly.
274
265
  Instrumentation,
275
-
276
- # Params wrapper should come before instrumentation so they are properly showed
277
- # in logs
278
266
  ParamsWrapper
279
267
  ]
280
268
 
281
- MODULES.each do |mod|
282
- include mod
283
- end
269
+ # Note: Documenting these severely degrates the performance of rdoc
270
+ # :stopdoc:
271
+ include AbstractController::Rendering
272
+ include AbstractController::Translation
273
+ include AbstractController::AssetPaths
274
+ include Helpers
275
+ include UrlFor
276
+ include Redirecting
277
+ include ActionView::Layouts
278
+ include Rendering
279
+ include Renderers::All
280
+ include ConditionalGet
281
+ include EtagWithTemplateDigest
282
+ include EtagWithFlash
283
+ include Caching
284
+ include MimeResponds
285
+ include ImplicitRender
286
+ include StrongParameters
287
+ include ParameterEncoding
288
+ include Cookies
289
+ include Flash
290
+ include FormBuilder
291
+ include RequestForgeryProtection
292
+ include ContentSecurityPolicy
293
+ include PermissionsPolicy
294
+ include RateLimiting
295
+ include AllowBrowser
296
+ include Streaming
297
+ include DataStreaming
298
+ include HttpAuthentication::Basic::ControllerMethods
299
+ include HttpAuthentication::Digest::ControllerMethods
300
+ include HttpAuthentication::Token::ControllerMethods
301
+ include DefaultHeaders
302
+ include Logging
303
+ # Before callbacks should also be executed as early as possible, so also include
304
+ # them at the bottom.
305
+ include AbstractController::Callbacks
306
+ # Append rescue at the bottom to wrap as much as possible.
307
+ include Rescue
308
+ # Add instrumentations hooks at the bottom, to ensure they instrument all the
309
+ # methods properly.
310
+ include Instrumentation
311
+ # Params wrapper should come before instrumentation so they are properly showed
312
+ # in logs
313
+ include ParamsWrapper
314
+ # :startdoc:
284
315
  setup_renderer!
285
316
 
286
317
  # Define some internal variables that should not be propagated to the view.
@@ -81,14 +81,14 @@ module ActionController
81
81
  #
82
82
  # get 'hello', to: HelloController.action(:index)
83
83
  #
84
- # The `action` method returns a valid Rack application for the Rails router to
84
+ # The ::action method returns a valid Rack application for the Rails router to
85
85
  # dispatch to.
86
86
  #
87
87
  # ## Rendering Helpers
88
88
  #
89
- # `ActionController::Metal` by default provides no utilities for rendering
90
- # views, partials, or other responses aside from explicitly calling of
91
- # `response_body=`, `content_type=`, and `status=`. To add the render helpers
89
+ # By default, `ActionController::Metal` provides no utilities for rendering
90
+ # views, partials, or other responses aside from some low-level setters such
91
+ # as #response_body=, #content_type=, and #status=. To add the render helpers
92
92
  # you're used to having in a normal controller, you can do the following:
93
93
  #
94
94
  # class HelloController < ActionController::Metal
@@ -179,8 +179,33 @@ module ActionController
179
179
  # Delegates to ActionDispatch::Response#headers.
180
180
  delegate :headers, to: "@_response"
181
181
 
182
- delegate :status=, :location=, :content_type=,
183
- :status, :location, :content_type, :media_type, to: "@_response"
182
+ ##
183
+ # Delegates to ActionDispatch::Response#status=
184
+ delegate :status=, to: "@_response"
185
+
186
+ ##
187
+ # Delegates to ActionDispatch::Response#location=
188
+ delegate :location=, to: "@_response"
189
+
190
+ ##
191
+ # Delegates to ActionDispatch::Response#content_type=
192
+ delegate :content_type=, to: "@_response"
193
+
194
+ ##
195
+ # Delegates to ActionDispatch::Response#status
196
+ delegate :status, to: "@_response"
197
+
198
+ ##
199
+ # Delegates to ActionDispatch::Response#location
200
+ delegate :location, to: "@_response"
201
+
202
+ ##
203
+ # Delegates to ActionDispatch::Response#content_type
204
+ delegate :content_type, to: "@_response"
205
+
206
+ ##
207
+ # Delegates to ActionDispatch::Response#media_type
208
+ delegate :media_type, to: "@_response"
184
209
 
185
210
  def initialize
186
211
  @_request = nil
@@ -201,7 +226,7 @@ module ActionController
201
226
 
202
227
  alias :response_code :status # :nodoc:
203
228
 
204
- # Basic url_for that can be overridden for more robust functionality.
229
+ # Basic `url_for` that can be overridden for more robust functionality.
205
230
  def url_for(string)
206
231
  string
207
232
  end
@@ -231,6 +231,18 @@ module ActionDispatch # :nodoc:
231
231
  def committed?; synchronize { @committed }; end
232
232
  def sent?; synchronize { @sent }; end
233
233
 
234
+ ##
235
+ # :method: location
236
+ #
237
+ # Location of the response.
238
+
239
+ ##
240
+ # :method: location=
241
+ #
242
+ # :call-seq: location=(location)
243
+ #
244
+ # Sets the location of the response
245
+
234
246
  # Sets the HTTP status code.
235
247
  def status=(status)
236
248
  @status = Rack::Utils.status_code(status)
@@ -241,7 +253,7 @@ module ActionDispatch # :nodoc:
241
253
  #
242
254
  # response.content_type = "text/plain"
243
255
  #
244
- # If a character set has been defined for this response (see charset=) then the
256
+ # If a character set has been defined for this response (see #charset=) then the
245
257
  # character set information will also be included in the content type
246
258
  # information.
247
259
  def content_type=(content_type)
@@ -12,7 +12,7 @@ module ActionPack
12
12
  MAJOR = 7
13
13
  MINOR = 2
14
14
  TINY = 0
15
- PRE = "beta2"
15
+ PRE = "beta3"
16
16
 
17
17
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
18
18
  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: 7.2.0.beta2
4
+ version: 7.2.0.beta3
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: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-07-11 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: 7.2.0.beta2
19
+ version: 7.2.0.beta3
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: 7.2.0.beta2
26
+ version: 7.2.0.beta3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 7.2.0.beta2
145
+ version: 7.2.0.beta3
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 7.2.0.beta2
152
+ version: 7.2.0.beta3
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: activemodel
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 7.2.0.beta2
159
+ version: 7.2.0.beta3
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 7.2.0.beta2
166
+ version: 7.2.0.beta3
167
167
  description: Web apps on Rails. Simple, battle-tested conventions for building and
168
168
  testing MVC web applications. Works with any Rack-compatible server.
169
169
  email: david@loudthinking.com
@@ -363,10 +363,10 @@ licenses:
363
363
  - MIT
364
364
  metadata:
365
365
  bug_tracker_uri: https://github.com/rails/rails/issues
366
- changelog_uri: https://github.com/rails/rails/blob/v7.2.0.beta2/actionpack/CHANGELOG.md
367
- documentation_uri: https://api.rubyonrails.org/v7.2.0.beta2/
366
+ changelog_uri: https://github.com/rails/rails/blob/v7.2.0.beta3/actionpack/CHANGELOG.md
367
+ documentation_uri: https://api.rubyonrails.org/v7.2.0.beta3/
368
368
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
369
- source_code_uri: https://github.com/rails/rails/tree/v7.2.0.beta2/actionpack
369
+ source_code_uri: https://github.com/rails/rails/tree/v7.2.0.beta3/actionpack
370
370
  rubygems_mfa_required: 'true'
371
371
  post_install_message:
372
372
  rdoc_options: []
@@ -379,12 +379,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
379
379
  version: 3.1.0
380
380
  required_rubygems_version: !ruby/object:Gem::Requirement
381
381
  requirements:
382
- - - ">"
382
+ - - ">="
383
383
  - !ruby/object:Gem::Version
384
- version: 1.3.1
384
+ version: '0'
385
385
  requirements:
386
386
  - none
387
- rubygems_version: 3.3.27
387
+ rubygems_version: 3.5.11
388
388
  signing_key:
389
389
  specification_version: 4
390
390
  summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).