なるようになるブログ

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

rails commit log流し読み(2023/02/03)

2023/02/03分のコミットです。

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


Merge pull request #47220 from rafaelfranca/rm-connection-to-tag-logs

Active Recordの修正です。

query transformersにconnectionを渡すよう修正しています。これにより、timeoutなどのconnectionのsettingによりqueryのtransformが出来るようになっています。


Add missing languages to code blocks in guides [ci-skip]

rails guideの修正です。

languageの指定がないcode blockにlanguageの指定を行うよう修正しています。


Fix typo

activerecord/CHANGELOG.mdの修正です。

nownoにタイポしていたのを修正しています。


Add missing language to markdown code blocks in guides [ci-skip]

rails guideの修正です。

languageの指定がないcode blockにlanguageの指定を行うよう修正しています。


Support composite foreign key association assignments

Active Recordの修正です。

Support composite foreign keys in associationsの続きとして、composite foreign keyを使用しているassociationのassignを行えるよう修正しています。


Merge pull request #47210 from jonathanhefner/test_command-always-be-prepared

railtitesの修正です。

bin/rails testに任意のファイル名やテスト名を指定して実行する場合以外は、テスト実行前にtest:prepareによるセットアップ処理が行われるよう修正しています。


Integrate Thor help features

railties/lib/rails/command/base.rbrailties/lib/rails/commands/runner/runner_command.rbの修正です。

commandのhelpを表示するのに独自の処理を行っていたのを、Thorのhelp出力用の機能を使用するよう修正しています。


Rely on Thor for credentials command help

railties/lib/rails/commands/credentials/credentials_command.rbの修正です。

credentials commandでhelpを表示するのにThorの機能を使用するよう修正しています。


Rely on Thor for encrypted command help

railties/lib/rails/commands/encrypted/encrypted_command.rbの修正です。

encrypted commandでhelpを表示するのにThorの機能を使用するよう修正しています。


Rely on Thor for secrets command help

railties/lib/rails/commands/secrets/secrets_command.rbの修正です。

secrets commandでhelpを表示するのにThorの機能を使用するよう修正しています。


Set test reporter default executable to bin/rails

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

test reporterのdefaultのexcutableとしてrailsが指定されていたのを、bin/railsを指定するよう修正しています。ヘルプ等コマンド名が表示される際に、bin/railsが表示されるようにする為。


Avoid assuming that save is instant

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

データの保存処理に数ミリ秒掛った場合にエラーになってしまうテストがあったのを修正しています。


Fix double blank lines in generated production.rb

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

rails newで生成されるconfig/environments/production.rbから不要な空行を削除しています。