なるようになるブログ

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

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

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

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

railties/CHANGELOG.md

actionview/CHANGELOG.md

activesupport/CHANGELOG.md


Return back maximum allowed PostgreSQL table name to 63 characters

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

PostgreSQLでテーブル名が63文字以上の長い値を使用している、かつ、それが7.1より前の古いmigrationファイルで作成されていた場合に、そのmigirationファイルで作成されたschemaをloadするとエラーになってしまうバグがあったのを修正しています。


Use Thor's enum for class_options

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

rails newのオプションに指定できる値に、不正な値が指定された場合はエラーになるよう修正しています。


Merge pull request #48767 from c960657/mailer-preview-wrap

railties/lib/rails/templates/rails/mailers/email.html.erbの修正です。

email previewでheaderの値をwrapするよう修正しています。


Just clarifies a little the bun installation process and gives people instructions what to do if it did not install.

rails guideのWorking with JavaScript in Railsの修正です。

Installing Bunセクションの言い回しを修正しています。


Support handling Enumerator for non-buffered responses

actionpack/lib/action_dispatch/http/response.rbの修正です。

response_bodyEnumeratorを指定した場合にエラーになってしまうバグがあったのを修正しています。


Use correct tense of cast for guides

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

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


Fix capture view helper for HAML and Slim

actionview/lib/action_view/helpers/capture_helper.rbの修正です。

HAML、Slim等のtemplate enginesを使用している場合に、capture view helperでcaptureした結果が空文字だった場合に、値が正しく返されないバグがあったのを修正しています。


ActiveSupport::LogSubscriber restore compatibility with SemanticLogger

activesupport/lib/active_support/log_subscriber.rbの修正です。

loggerのlevelメソッドの戻り値がInteger以外の場合にもログ出力処理が正しく動作するよう修正しています。標準ライブラリだとlevelメソッドの戻り値はIntegerなのですが、semantic_logger gemだとlevelの戻り値がSymbolになっている為。


Mark NullSchemaMigration as :nodoc:

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

内部用のクラスであるActiveRecord::SchemaMigration::NullSchemaMigrationAPI docに表示されないよう修正しています。


Make NullInternalMetadata private

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

内部用のクラスであるActiveRecord::InternalMetadata::NullInternalMetadataAPI docに表示されないよう修正しています。