From e50b0e3ab325edeae52ce5effea8350bc9e90acd Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 21 Jul 2021 10:08:08 +0900 Subject: [PATCH] Fixup CHANGELOGs [ci skip] --- actioncable/CHANGELOG.md | 1 + actionmailbox/CHANGELOG.md | 1 + actionpack/CHANGELOG.md | 16 ++++++------- actionview/CHANGELOG.md | 2 ++ activejob/CHANGELOG.md | 6 ++--- activemodel/CHANGELOG.md | 6 ++--- activerecord/CHANGELOG.md | 47 +++++++++++++++++++------------------- activestorage/CHANGELOG.md | 23 +++++++++++-------- activesupport/CHANGELOG.md | 19 +++++++-------- railties/CHANGELOG.md | 6 ++--- 10 files changed, 68 insertions(+), 59 deletions(-) diff --git a/actioncable/CHANGELOG.md b/actioncable/CHANGELOG.md index e72e18c665..d2582883aa 100644 --- a/actioncable/CHANGELOG.md +++ b/actioncable/CHANGELOG.md @@ -19,4 +19,5 @@ *Jonathan Hefner* + Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actioncable/CHANGELOG.md) for previous changes. diff --git a/actionmailbox/CHANGELOG.md b/actionmailbox/CHANGELOG.md index c361c740cd..77e6d1dc7b 100644 --- a/actionmailbox/CHANGELOG.md +++ b/actionmailbox/CHANGELOG.md @@ -22,4 +22,5 @@ *Dirkjan Bussink* + Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/actionmailbox/CHANGELOG.md) for previous changes. diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index be38297390..a49a6f6be5 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -22,7 +22,7 @@ *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. @@ -38,7 +38,7 @@ *Alexander Azarov*, *Mike Dalessio* -* Ignore file fixtures on `db:fixtures:load` +* Ignore file fixtures on `db:fixtures:load`. *Kevin Sjöberg* @@ -50,9 +50,9 @@ *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* @@ -60,7 +60,7 @@ *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. @@ -74,7 +74,7 @@ * Add support for 'require-trusted-types-for' and 'trusted-types' headers. - Fixes #42034 + Fixes #42034. *lfalcao* @@ -143,7 +143,7 @@ *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* @@ -155,7 +155,7 @@ as `RemoteIp` middleware behaves inconsistently depending on whether this is configured with a single value or an enumerable. - Fixes #40772 + Fixes #40772. *Christian Sutter* diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index c74aca0e67..72c95b5613 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -19,12 +19,14 @@ `.css` extension appended to the stylesheet path. Before: + ```ruby stylesheet_link_tag "style.less" # ``` After: + ```ruby stylesheet_link_tag "style.less", extname: false, skip_pipeline: true, rel: "stylesheet/less" # diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md index 74fb073c78..f3cae74672 100644 --- a/activejob/CHANGELOG.md +++ b/activejob/CHANGELOG.md @@ -1,5 +1,5 @@ * 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* @@ -7,9 +7,9 @@ *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`. diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index 620f91ff4f..0659793575 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,16 +1,16 @@ * 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* -* Add `ActiveModel::AttributeSet#values_for_database` +* Add `ActiveModel::AttributeSet#values_for_database`. Returns attributes with values for assignment to the database. *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. diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 75bdf1f557..f95598b55d 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -9,7 +9,7 @@ *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 specific database use the `schema_dump` option: @@ -23,14 +23,14 @@ *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 on an outer table. ```ruby Post.includes(:comments).order({ "comments.label": :ASC }).eager_loading? - => true + # => true ``` *Jacopo Beschi* @@ -109,7 +109,7 @@ *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 environment variables which persisted beyond the command being run, and may @@ -119,13 +119,13 @@ *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. *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* @@ -187,19 +187,19 @@ *Dorian Marié* -* Add `ActiveRecord::Base#attributes_for_database` +* Add `ActiveRecord::Base#attributes_for_database`. Returns attributes with values for assignment to the database. *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`. *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. @@ -245,7 +245,7 @@ *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 in a new Rails application. @@ -393,7 +393,7 @@ ```ruby Article.insert_all( - [ + [ { title: "Article 1", slug: "article-1", published: false }, { title: "Article 2", slug: "article-2", published: false } ], @@ -433,7 +433,7 @@ *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 to specify that we only want to raise on n plus one queries. @@ -452,7 +452,7 @@ *Dinah Shi* -* Fix Float::INFINITY assignment to datetime column with postgresql adapter +* Fix Float::INFINITY assignment to datetime column with postgresql adapter. Before: @@ -504,7 +504,7 @@ *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: @@ -525,7 +525,7 @@ *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 a single global thread pool for all queries. By default, Rails will set `async_query_executor` @@ -618,7 +618,7 @@ *Glen Crawford* * 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 references an aliased select value would generate an error when @@ -644,13 +644,13 @@ simplified #exists? query, which simply checks for the presence of a having clause. - Fixes #41417 + Fixes #41417. *Michael Smart* * 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 - up in perpetual crash state for being inconsistent with Postgres. + up in perpetual crash state for being inconsistent with PostgreSQL. *wbharding*, *Martin Tepper* @@ -698,7 +698,7 @@ *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 a migration or schema. It takes a symbol which must correspond to one of the configured @@ -722,7 +722,7 @@ *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 named `ApplicationRecord` can now set a specific class to be the `primary_abstract_class`. @@ -749,7 +749,7 @@ ```ruby 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' ``` @@ -880,15 +880,16 @@ * Allow adding nonnamed expression indexes to be revertible. - Fixes #40732. - 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 automatically. + ```ruby add_index(:items, "to_tsvector('english', description)") ``` + Fixes #40732. + *fatkodima* * Only warn about negative enums if a positive form that would cause conflicts exists. diff --git a/activestorage/CHANGELOG.md b/activestorage/CHANGELOG.md index f5d6c754cb..7adda04b20 100644 --- a/activestorage/CHANGELOG.md +++ b/activestorage/CHANGELOG.md @@ -11,6 +11,7 @@ ... iam: true ``` + *RRethy* * OpenSSL constants are now used for Digest computations. @@ -27,19 +28,19 @@ *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* -* Allow to detach an attachment when record is not persisted +* Allow to detach an attachment when record is not persisted. *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* -* 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 `true` if the file has an video channel and `false` if it doesn't. @@ -50,7 +51,7 @@ *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 the S3 Presigner, enabling, amongst other options, custom S3 domain URL @@ -73,6 +74,7 @@ ... cache_control: "public, max-age=3600" ``` + *maleblond* * The parameters sent to `ffmpeg` for generating a video preview image are now @@ -98,7 +100,7 @@ *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* @@ -107,7 +109,7 @@ *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 `true` if the file has an audio channel and `false` if it doesn't. @@ -118,7 +120,7 @@ *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* @@ -126,7 +128,7 @@ *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* @@ -186,8 +188,9 @@ *Ali Ismayilov* * Declare `ActiveStorage::FixtureSet` and `ActiveStorage::FixtureSet.blob` to - improve fixture integration + improve fixture integration. *Sean Doyle* + Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activestorage/CHANGELOG.md) for previous changes. diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 8c3693c2f2..117f4c6daa 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -16,7 +16,7 @@ ```ruby class ActiveSupport::TestCase - parallelize threshold: 100 + parallelize threshold: 100 end ``` @@ -45,7 +45,7 @@ *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* @@ -76,7 +76,7 @@ *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. @@ -84,11 +84,12 @@ ```yml aws: - access_key_id: 123 - secret_access_key: 345 + access_key_id: 123 + 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* @@ -145,7 +146,7 @@ # instead of %w[foo bar].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* @@ -213,11 +214,11 @@ *Nathaniel Woodthorpe* -* consume dalli’s `cache_nils` configuration as `ActiveSupport::Cache`'s `skip_nil` when using `MemCacheStore`. +* Consume dalli’s `cache_nils` configuration as `ActiveSupport::Cache`'s `skip_nil` when using `MemCacheStore`. *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* diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 8f86a0f5ca..be70821627 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -12,7 +12,7 @@ * Modified scaffold generator template so that running `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. @@ -42,11 +42,11 @@ *Jean Boussier* * 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* -* 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*