なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2023/10/12)

2023/10/12分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

actionview/CHANGELOG.md


Merge pull request #49538 from akhilgkrishnan/capitalize-framework-names

docの修正です。

コンポーネント名を大文字に修正しています。


Don't include enqueuing info when job wasn't enqueued

activejob/lib/active_job/log_subscriber.rbの修正です。

jobに関するlogを出力する際に、jobがenqueueしていない場合、enqueueに関する情報は含まないよう修正しています。


Load author_addresses fixtures for ActiveRecordMessagePackTest

activerecord/test/cases/message_pack_test.rbの修正です。

使用しているのにloadしていないfixtureがあったのを修正しています。


Merge pull request #49553 from tricknotes/update-rails-ujs-build

actionview/app/assets/javascripts/rails-ujs.esm.jsactionview/app/assets/javascripts/rails-ujs.jsの修正です。

Ignore certain data-* attributes in rails-ujs when element is content…で行った、data-method、data-remote、data-disable属性を含む不正なHTMLコンテンツをクリップボードから貼り付けた場合に、XSSが出来てしまう可能性がある脆弱性の修正がRails 7.1に含まれていなかたったのを、含むよう修正しています。


Merge pull request #49535 from t27duck/check_rails_new_options

railties/lib/rails/generators/app_base.rbrailties/lib/rails/generators/rails/app/app_generator.rbの修正です。

rails new--javascript--css、及び、--asset-pipelineオプションに不正な値を指定した場合にエラーになるよう修正しています。


Merge pull request #49532 from akhilgkrishnan/base-template-for-7-2-release-note

rails guideのRuby on Rails 7.2 Release Notesの修正です。

コンポーネントの変更点を記載するためのテンプレートを追加しています。


Advise upgraders to set active_record.encryption.hash_digest_class

rails guideのUpgrading Ruby on Railsの修正です。

Upgrading from Rails 7.0 to Rails 7.1にActive Record encryptionのデフォルトalgorithmが変更になったことについて説明した、Active Record encryption algorithm changesセクションを追加しています。


guides/source/asset_pipeline.md: fix spelling

rails guideのThe Asset Pipelineの修正です。

各箇所のグラマーの修正を行っています。


Remove unnecessary monospace formatting [ci-skip]

rails guideのThe Asset Pipelineの修正です。

各箇所のフォーマットの修正を行っています。


Fix monospace formatting [ci-skip]

rails guideのUpgrading Ruby on Railsの修正です。

各箇所のフォーマットの修正を行っています。


test(ruby): fix grammar

activemodel/test/cases/errors_test.rbactiverecord/test/cases/scoping/named_scoping_test.rbの修正です。

テスト名、及び、テストのコメントのグラマーの修正を行っています。


Fix documentation for credentails server start command

railties/lib/rails/commands/credentials/USAGErailties/lib/rails/commands/secrets/USAGEの修正です。

credentials/secretsのUSAGE内のserverを起動するコマンドの例に誤りがあったのを修正しています。


Merge pull request #49598 from fatkodima/fix-identity-columns-pg-9

activerecord/lib/active_record/connection_adapters/postgresql_adapter.rbの修正です。

PostgreSQL 10未満を使用している場合、columnの情報取得時にエラーになってしまうバグがあったのを修正しています。PostgreSQL 10で追加されたattributeを参照していた為。


Add email to the list of default filter parameters

railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.ttの修正です。

config.filter_parametersのデフォルト値にemailを追加しています。Email addressも個人情報と見なされる為、デフォルトでfilterされるべきだろう、という理由です。


Fix numbered list and indentation of code blocks on upgrade guide

rails guideのUpgrading Ruby on Railsの修正です。

Active Record Encryption algorithm changesセクションのフォーマットの修正を行っています。


Update filter_parameters default in configuring guide [ci skip]

rails guideのConfiguring Rails Applicationsの修正です。

config.filter_parametersのデフォルト値に説明している箇所にemailを追加しています。


Typo: broken link

rails guideのActive Record Validationsの修正です。

ページ内リンクが正しく設定されていない箇所があったのを修正しています。


Add consistant option description for --database on rails new

railties/lib/rails/generators/app_base.rbの修正です。

rails new--databaseオプションに関する説明で、指定出来るオプションの区切り文字を/から,に変更しています。他のオプションと合わせる為。


Fix code example for create_unlogged_tables [ci skip]

activerecord/lib/active_record/connection_adapters/postgresql_adapter.rbのdocの修正です。

create_unlogged_tablesを設定するexampleコードが、実際には動作しないコードになっていたのを修正しています。