なるようになるブログ

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

rails commit log流し読み(2024/05/31)

2024/05/31分のコミットです。

CHANGELOGへの追加はありませんでした。


Merge pull request #51939 from ElMassimo/fix-broadcast-logger-compatibility

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

ActiveSupport::BroadcastLoggerのログ出力処理の戻り値がtrueになるよう修正しています。LoggerActiveSupport::Loggerと挙動を合わせるため。


Pass the transaction to the transaction.active_record event

activerecord/lib/active_record/connection_adapters/abstract/transaction.rbactiverecord/test/cases/transaction_instrumentation_test.rbの修正です。

transaction.active_record eventのpayloadに、transaction objectを含むよう修正しています。


Update public directory during app:update command

railties/lib/rails/commands/app/update_command.rbの修正です。

app:updateコマンド実行時にpublic directoryを更新対象に含むよう修正しています。


Relax the prism test parser conditions

railties/lib/rails/test_unit/test_parser.rbの修正です。

行数を指定してテストを実行する際に、対象のnodeがtestで始まることをチェックしていたのを、チェックしないよう修正しています。minitest-spec-railを使用している場合(メソッド名がtestで始まらない場合)にも処理が動くようにするため。


Lock rails-new-docker action to Ruby 3.3.1

.github/workflows/rails-new-docker.ymlの修正です。

rails-new-docker actionで使用するRubyのバージョンを3.3.1に固定するよう修正しています。このコミットがされた時点では、Ruby 3.3.2のDocker imageが存在しなく、エラーになってしまっていたため。


Reorder items in transaction.active_record docs

rails guideのActive Support Instrumentationの修正です。

transaction.active_record eventのpayloadの値の順番を並び替えています。


Add missing $ for a bash [ci skip]

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

コマンド実行例の先頭に$を追加しています。


Merge pull request #51941 from Liamjen/allow_unscope_cte

activerecord/lib/active_record/relation/query_methods.rbの修正です。

Activ RecordのCTE Queryをunscope出来るよう修正しています。


Merge pull request #51933 from zzak/51910

actionpack/lib/action_dispatch/routing/mapper.rbの修正です。

Rails engine上に違うRails engineのroutingを指定している場合に、baseのengineのrouteがURL生成時に反映されないバグがあったのを修正しています。


Include the current transaction in sql.active_record event payloads

activerecord/lib/active_record/connection_adapters/abstract/query_cache.rbactiverecord/lib/active_record/connection_adapters/abstract_adapter.rbの修正です。

sql.active_record eventのpayloadに、transaction objectを含むよう修正しています。


Document callback deduplication with regards to ActiveRecord::Transaction

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

ActiveRecord::Transactionのdocに、callback処理はcallback毎にフィルターされる旨説明を追加しています。