Fixup CHANGELOGs [ci skip]

This commit is contained in:
Ryuta Kamizono 2021-07-21 10:08:08 +09:00
parent 8dc4e2316c
commit e50b0e3ab3
10 changed files with 68 additions and 59 deletions

View File

@ -19,4 +19,5 @@
*Jonathan Hefner* *Jonathan Hefner*
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actioncable/CHANGELOG.md) for previous changes. Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actioncable/CHANGELOG.md) for previous changes.

View File

@ -22,4 +22,5 @@
*Dirkjan Bussink* *Dirkjan Bussink*
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionmailbox/CHANGELOG.md) for previous changes. Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionmailbox/CHANGELOG.md) for previous changes.

View File

@ -22,7 +22,7 @@
*Dirkjan Bussink* *Dirkjan Bussink*
* Remove IE6-7-8 file download related hack/fix from ActionController::DataStreaming module * Remove IE6-7-8 file download related hack/fix from ActionController::DataStreaming module.
Due to the age of those versions of IE this fix is no longer relevant, more importantly it creates an edge-case for unexpected Cache-Control headers. Due to the age of those versions of IE this fix is no longer relevant, more importantly it creates an edge-case for unexpected Cache-Control headers.
@ -38,7 +38,7 @@
*Alexander Azarov*, *Mike Dalessio* *Alexander Azarov*, *Mike Dalessio*
* Ignore file fixtures on `db:fixtures:load` * Ignore file fixtures on `db:fixtures:load`.
*Kevin Sjöberg* *Kevin Sjöberg*
@ -50,9 +50,9 @@
*Tadas Sasnauskas* *Tadas Sasnauskas*
* Drop support for the `SERVER_ADDR` header * Drop support for the `SERVER_ADDR` header.
Following up https://github.com/rack/rack/pull/1573 and https://github.com/rails/rails/pull/42349 Following up https://github.com/rack/rack/pull/1573 and https://github.com/rails/rails/pull/42349.
*Ricardo Díaz* *Ricardo Díaz*
@ -60,7 +60,7 @@
*Gannon McGibbon* *Gannon McGibbon*
* Add `cache_control: {}` option to `fresh_when` and `stale?` * Add `cache_control: {}` option to `fresh_when` and `stale?`.
Works as a shortcut to set `response.cache_control` with the above methods. Works as a shortcut to set `response.cache_control` with the above methods.
@ -74,7 +74,7 @@
* Add support for 'require-trusted-types-for' and 'trusted-types' headers. * Add support for 'require-trusted-types-for' and 'trusted-types' headers.
Fixes #42034 Fixes #42034.
*lfalcao* *lfalcao*
@ -143,7 +143,7 @@
*Janko Marohnić* *Janko Marohnić*
* Allow anything with `#to_str` (like `Addressable::URI`) as a `redirect_to` location * Allow anything with `#to_str` (like `Addressable::URI`) as a `redirect_to` location.
*ojab* *ojab*
@ -155,7 +155,7 @@
as `RemoteIp` middleware behaves inconsistently depending on whether this is configured as `RemoteIp` middleware behaves inconsistently depending on whether this is configured
with a single value or an enumerable. with a single value or an enumerable.
Fixes #40772 Fixes #40772.
*Christian Sutter* *Christian Sutter*

View File

@ -19,12 +19,14 @@
`.css` extension appended to the stylesheet path. `.css` extension appended to the stylesheet path.
Before: Before:
```ruby ```ruby
stylesheet_link_tag "style.less" stylesheet_link_tag "style.less"
# <link href="/stylesheets/style.less.scss" rel="stylesheet"> # <link href="/stylesheets/style.less.scss" rel="stylesheet">
``` ```
After: After:
```ruby ```ruby
stylesheet_link_tag "style.less", extname: false, skip_pipeline: true, rel: "stylesheet/less" stylesheet_link_tag "style.less", extname: false, skip_pipeline: true, rel: "stylesheet/less"
# <link href="/stylesheets/style.less" rel="stylesheet/less"> # <link href="/stylesheets/style.less" rel="stylesheet/less">

View File

@ -1,5 +1,5 @@
* Added possibility to check on `:priority` in test helper methods * Added possibility to check on `:priority` in test helper methods
`assert_enqueued_with` and `assert_performed_with` `assert_enqueued_with` and `assert_performed_with`.
*Wojciech Wnętrzak* *Wojciech Wnętrzak*
@ -7,9 +7,9 @@
*Dirkjan Bussink* *Dirkjan Bussink*
* Add a Serializer for the Range class * Add a Serializer for the Range class.
This should allow things like `MyJob.perform_later(range: 1..100)` This should allow things like `MyJob.perform_later(range: 1..100)`.
* Communicate enqueue failures to callers of `perform_later`. * Communicate enqueue failures to callers of `perform_later`.

View File

@ -1,16 +1,16 @@
* Fix `to_json` for `ActiveModel::Dirty` object. * Fix `to_json` for `ActiveModel::Dirty` object.
Exclude +mutations_from_database+ attribute from json as it lead to recursion. Exclude `mutations_from_database` attribute from json as it lead to recursion.
*Anil Maurya* *Anil Maurya*
* Add `ActiveModel::AttributeSet#values_for_database` * Add `ActiveModel::AttributeSet#values_for_database`.
Returns attributes with values for assignment to the database. Returns attributes with values for assignment to the database.
*Chris Salzberg* *Chris Salzberg*
* Fix delegation in ActiveModel::Type::Registry#lookup and ActiveModel::Type.lookup * Fix delegation in ActiveModel::Type::Registry#lookup and ActiveModel::Type.lookup.
Passing a last positional argument `{}` would be incorrectly considered as keyword argument. Passing a last positional argument `{}` would be incorrectly considered as keyword argument.

View File

@ -9,7 +9,7 @@
*George Claghorn* *George Claghorn*
* Add option to disable schema dump per-database * Add option to disable schema dump per-database.
Dumping the schema is on by default for all databases in an application. To turn it off for a Dumping the schema is on by default for all databases in an application. To turn it off for a
specific database use the `schema_dump` option: specific database use the `schema_dump` option:
@ -23,14 +23,14 @@
*Luis Vasconcellos*, *Eileen M. Uchitelle* *Luis Vasconcellos*, *Eileen M. Uchitelle*
* Fix `eager_loading?` when ordering with `Hash` syntax * Fix `eager_loading?` when ordering with `Hash` syntax.
`eager_loading?` is triggered correctly when using `order` with hash syntax `eager_loading?` is triggered correctly when using `order` with hash syntax
on an outer table. on an outer table.
```ruby ```ruby
Post.includes(:comments).order({ "comments.label": :ASC }).eager_loading? Post.includes(:comments).order({ "comments.label": :ASC }).eager_loading?
=> true # => true
``` ```
*Jacopo Beschi* *Jacopo Beschi*
@ -109,7 +109,7 @@
*Roberto Miranda* *Roberto Miranda*
* Prevent polluting ENV during postgresql structure dump/load * Prevent polluting ENV during postgresql structure dump/load.
Some configuration parameters were provided to pg_dump / psql via Some configuration parameters were provided to pg_dump / psql via
environment variables which persisted beyond the command being run, and may environment variables which persisted beyond the command being run, and may
@ -119,13 +119,13 @@
*Samuel Cochran* *Samuel Cochran*
* Set precision 6 by default for `datetime` columns * Set precision 6 by default for `datetime` columns.
By default, datetime columns will have microseconds precision instead of seconds precision. By default, datetime columns will have microseconds precision instead of seconds precision.
*Roberto Miranda* *Roberto Miranda*
* Allow preloading of associations with instance dependent scopes * Allow preloading of associations with instance dependent scopes.
*John Hawthorn*, *John Crepezzi*, *Adam Hess*, *Eileen M. Uchitelle*, *Dinah Shi* *John Hawthorn*, *John Crepezzi*, *Adam Hess*, *Eileen M. Uchitelle*, *Dinah Shi*
@ -187,19 +187,19 @@
*Dorian Marié* *Dorian Marié*
* Add `ActiveRecord::Base#attributes_for_database` * Add `ActiveRecord::Base#attributes_for_database`.
Returns attributes with values for assignment to the database. Returns attributes with values for assignment to the database.
*Chris Salzberg* *Chris Salzberg*
* Use an empty query to check if the PostgreSQL connection is still active * Use an empty query to check if the PostgreSQL connection is still active.
An empty query is faster than `SELECT 1`. An empty query is faster than `SELECT 1`.
*Heinrich Lee Yu* *Heinrich Lee Yu*
* Add `ActiveRecord::Base#previously_persisted?` * Add `ActiveRecord::Base#previously_persisted?`.
Returns `true` if the object has been previously persisted but now it has been deleted. Returns `true` if the object has been previously persisted but now it has been deleted.
@ -245,7 +245,7 @@
*Eileen M. Uchitelle* *Eileen M. Uchitelle*
* Log a warning message when running SQLite in production * Log a warning message when running SQLite in production.
Using SQLite in production ENV is generally discouraged. SQLite is also the default adapter Using SQLite in production ENV is generally discouraged. SQLite is also the default adapter
in a new Rails application. in a new Rails application.
@ -433,7 +433,7 @@
*Bradley Priest* *Bradley Priest*
* Add mode argument to record level `strict_loading!` * Add mode argument to record level `strict_loading!`.
This argument can be used when enabling strict loading for a single record This argument can be used when enabling strict loading for a single record
to specify that we only want to raise on n plus one queries. to specify that we only want to raise on n plus one queries.
@ -452,7 +452,7 @@
*Dinah Shi* *Dinah Shi*
* Fix Float::INFINITY assignment to datetime column with postgresql adapter * Fix Float::INFINITY assignment to datetime column with postgresql adapter.
Before: Before:
@ -504,7 +504,7 @@
*Ryuta Kamizono* *Ryuta Kamizono*
* Fixtures for `has_many :through` associations now load timestamps on join tables * Fixtures for `has_many :through` associations now load timestamps on join tables.
Given this fixture: Given this fixture:
@ -525,7 +525,7 @@
*Alex Ghiculescu* *Alex Ghiculescu*
* Allow applications to configure the thread pool for async queries * Allow applications to configure the thread pool for async queries.
Some applications may want one thread pool per database whereas others want to use Some applications may want one thread pool per database whereas others want to use
a single global thread pool for all queries. By default, Rails will set `async_query_executor` a single global thread pool for all queries. By default, Rails will set `async_query_executor`
@ -618,7 +618,7 @@
*Glen Crawford* *Glen Crawford*
* Skip optimised #exist? query when #include? is called on a relation * Skip optimised #exist? query when #include? is called on a relation
with a having clause with a having clause.
Relations that have aliased select values AND a having clause that Relations that have aliased select values AND a having clause that
references an aliased select value would generate an error when references an aliased select value would generate an error when
@ -644,13 +644,13 @@
simplified #exists? query, which simply checks for the presence of simplified #exists? query, which simply checks for the presence of
a having clause. a having clause.
Fixes #41417 Fixes #41417.
*Michael Smart* *Michael Smart*
* Increment postgres prepared statement counter before making a prepared statement, so if the statement is aborted * Increment postgres prepared statement counter before making a prepared statement, so if the statement is aborted
without Rails knowledge (e.g., if app gets killed during long-running query or due to Rack::Timeout), app won't end without Rails knowledge (e.g., if app gets killed during long-running query or due to Rack::Timeout), app won't end
up in perpetual crash state for being inconsistent with Postgres. up in perpetual crash state for being inconsistent with PostgreSQL.
*wbharding*, *Martin Tepper* *wbharding*, *Martin Tepper*
@ -698,7 +698,7 @@
*Josua Schmid* *Josua Schmid*
* PostgreSQL: introduce `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.datetime_type` * PostgreSQL: introduce `ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.datetime_type`.
This setting controls what native type Active Record should use when you call `datetime` in This setting controls what native type Active Record should use when you call `datetime` in
a migration or schema. It takes a symbol which must correspond to one of the configured a migration or schema. It takes a symbol which must correspond to one of the configured
@ -722,7 +722,7 @@
*Gannon McGibbon*, *Adrian Hirt* *Gannon McGibbon*, *Adrian Hirt*
* Expose a way for applications to set a `primary_abstract_class` * Expose a way for applications to set a `primary_abstract_class`.
Multiple database applications that use a primary abstract class that is not Multiple database applications that use a primary abstract class that is not
named `ApplicationRecord` can now set a specific class to be the `primary_abstract_class`. named `ApplicationRecord` can now set a specific class to be the `primary_abstract_class`.
@ -749,7 +749,7 @@
```ruby ```ruby
ActiveRecord::Tasks::DatabaseTasks.structure_dump_flags = ['--no-defaults', '--skip-add-drop-table'] ActiveRecord::Tasks::DatabaseTasks.structure_dump_flags = ['--no-defaults', '--skip-add-drop-table']
#or # or
ActiveRecord::Tasks::DatabaseTasks.structure_dump_flags = '--no-defaults --skip-add-drop-table' ActiveRecord::Tasks::DatabaseTasks.structure_dump_flags = '--no-defaults --skip-add-drop-table'
``` ```
@ -880,15 +880,16 @@
* Allow adding nonnamed expression indexes to be revertible. * Allow adding nonnamed expression indexes to be revertible.
Fixes #40732.
Previously, the following code would raise an error, when executed while rolling back, Previously, the following code would raise an error, when executed while rolling back,
and the index name should be specified explicitly. Now, the index name is inferred and the index name should be specified explicitly. Now, the index name is inferred
automatically. automatically.
```ruby ```ruby
add_index(:items, "to_tsvector('english', description)") add_index(:items, "to_tsvector('english', description)")
``` ```
Fixes #40732.
*fatkodima* *fatkodima*
* Only warn about negative enums if a positive form that would cause conflicts exists. * Only warn about negative enums if a positive form that would cause conflicts exists.

View File

@ -11,6 +11,7 @@
... ...
iam: true iam: true
``` ```
*RRethy* *RRethy*
* OpenSSL constants are now used for Digest computations. * OpenSSL constants are now used for Digest computations.
@ -27,19 +28,19 @@
*Santiago Bartesaghi* *Santiago Bartesaghi*
* Add support of `strict_loading_by_default` to `ActiveStorage::Representations` controllers * Add support of `strict_loading_by_default` to `ActiveStorage::Representations` controllers.
*Anton Topchii*, *Andrew White* *Anton Topchii*, *Andrew White*
* Allow to detach an attachment when record is not persisted * Allow to detach an attachment when record is not persisted.
*Jacopo Beschi* *Jacopo Beschi*
* Use libvips instead of ImageMagick to analyze images when `active_storage.variant_processor = vips` * Use libvips instead of ImageMagick to analyze images when `active_storage.variant_processor = vips`.
*Breno Gazzola* *Breno Gazzola*
* Add metadata value for presence of video channel in video blobs * Add metadata value for presence of video channel in video blobs.
The `metadata` attribute of video blobs has a new boolean key named `video` that is set to The `metadata` attribute of video blobs has a new boolean key named `video` that is set to
`true` if the file has an video channel and `false` if it doesn't. `true` if the file has an video channel and `false` if it doesn't.
@ -50,7 +51,7 @@
*Jacopo Beschi* *Jacopo Beschi*
* Passing extra parameters in `ActiveStorage::Blob#url` to S3 Client * Passing extra parameters in `ActiveStorage::Blob#url` to S3 Client.
This allows calls of `ActiveStorage::Blob#url` to have more interaction with This allows calls of `ActiveStorage::Blob#url` to have more interaction with
the S3 Presigner, enabling, amongst other options, custom S3 domain URL the S3 Presigner, enabling, amongst other options, custom S3 domain URL
@ -73,6 +74,7 @@
... ...
cache_control: "public, max-age=3600" cache_control: "public, max-age=3600"
``` ```
*maleblond* *maleblond*
* The parameters sent to `ffmpeg` for generating a video preview image are now * The parameters sent to `ffmpeg` for generating a video preview image are now
@ -98,7 +100,7 @@
*aki77* *aki77*
* Allow to purge an attachment when record is not persisted for `has_many_attached` * Allow to purge an attachment when record is not persisted for `has_many_attached`.
*Jacopo Beschi* *Jacopo Beschi*
@ -107,7 +109,7 @@
*Alex Ghiculescu* *Alex Ghiculescu*
* Add metadata value for presence of audio channel in video blobs * Add metadata value for presence of audio channel in video blobs.
The `metadata` attribute of video blobs has a new boolean key named `audio` that is set to The `metadata` attribute of video blobs has a new boolean key named `audio` that is set to
`true` if the file has an audio channel and `false` if it doesn't. `true` if the file has an audio channel and `false` if it doesn't.
@ -118,7 +120,7 @@
*Breno Gazzola* *Breno Gazzola*
* Respect Active Record's primary_key_type in Active Storage migrations * Respect Active Record's primary_key_type in Active Storage migrations.
*fatkodima* *fatkodima*
@ -126,7 +128,7 @@
*aki77* *aki77*
* Allow to purge an attachment when record is not persisted for `has_one_attached` * Allow to purge an attachment when record is not persisted for `has_one_attached`.
*Jacopo Beschi* *Jacopo Beschi*
@ -186,8 +188,9 @@
*Ali Ismayilov* *Ali Ismayilov*
* Declare `ActiveStorage::FixtureSet` and `ActiveStorage::FixtureSet.blob` to * Declare `ActiveStorage::FixtureSet` and `ActiveStorage::FixtureSet.blob` to
improve fixture integration improve fixture integration.
*Sean Doyle* *Sean Doyle*
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activestorage/CHANGELOG.md) for previous changes. Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activestorage/CHANGELOG.md) for previous changes.

View File

@ -45,7 +45,7 @@
*Alex Ghiculescu* *Alex Ghiculescu*
* Allow serializing any module or class to JSON by name * Allow serializing any module or class to JSON by name.
*Tyler Rick*, *Zachary Scott* *Tyler Rick*, *Zachary Scott*
@ -76,7 +76,7 @@
*Jean Boussier* *Jean Boussier*
* Allow nested access to keys on `Rails.application.credentials` * Allow nested access to keys on `Rails.application.credentials`.
Previously only top level keys in `credentials.yml.enc` could be accessed with method calls. Now any key can. Previously only top level keys in `credentials.yml.enc` could be accessed with method calls. Now any key can.
@ -88,7 +88,8 @@
secret_access_key: 345 secret_access_key: 345
``` ```
`Rails.application.credentials.aws.access_key_id` will now return the same thing as `Rails.application.credentials.aws[:access_key_id]` `Rails.application.credentials.aws.access_key_id` will now return the same thing as
`Rails.application.credentials.aws[:access_key_id]`.
*Alex Ghiculescu* *Alex Ghiculescu*
@ -145,7 +146,7 @@
# instead of %w[foo bar].sum # instead of %w[foo bar].sum
[[1, 2], [3, 4, 5]].sum([]) [[1, 2], [3, 4, 5]].sum([])
#instead of [[1, 2], [3, 4, 5]].sum # instead of [[1, 2], [3, 4, 5]].sum
``` ```
*Alberto Mota* *Alberto Mota*
@ -213,11 +214,11 @@
*Nathaniel Woodthorpe* *Nathaniel Woodthorpe*
* consume dallis `cache_nils` configuration as `ActiveSupport::Cache`'s `skip_nil` when using `MemCacheStore`. * Consume dallis `cache_nils` configuration as `ActiveSupport::Cache`'s `skip_nil` when using `MemCacheStore`.
*Ritikesh G* *Ritikesh G*
* add `RedisCacheStore#stats` method similar to `MemCacheStore#stats`. Calls `redis#info` internally. * Add `RedisCacheStore#stats` method similar to `MemCacheStore#stats`. Calls `redis#info` internally.
*Ritikesh G* *Ritikesh G*

View File

@ -12,7 +12,7 @@
* Modified scaffold generator template so that running * Modified scaffold generator template so that running
`rails g scaffold Author` no longer generates tests called "creating `rails g scaffold Author` no longer generates tests called "creating
a Author", "updating a Author", and "destroying a Author" a Author", "updating a Author", and "destroying a Author".
Fixes #40744. Fixes #40744.
@ -42,11 +42,11 @@
*Jean Boussier* *Jean Boussier*
* Remove Rack::Runtime from the default middleware stack and deprecate * Remove Rack::Runtime from the default middleware stack and deprecate
referencing it in middleware operations without adding it back referencing it in middleware operations without adding it back.
*Hartley McGuire* *Hartley McGuire*
* Allow adding additional authorized hosts in development via `ENV['RAILS_DEVELOPMENT_HOSTS']` * Allow adding additional authorized hosts in development via `ENV['RAILS_DEVELOPMENT_HOSTS']`.
*Josh Abernathy*, *Debbie Milburn* *Josh Abernathy*, *Debbie Milburn*