なるようになるブログ

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

rails commit log流し読み(2024/01/13)

2024/01/13分のコミットです。

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


Upgrade minitest from 5.20.0 to 5.21.1 to fix mutex_m deprecation

Gemfile.lockの修正です。

minitestのバージョンを5.21.1に更新しています。Ruby 3.3で使用した場合にmutex_mに関するwarningが出力されないようにする為。


Fix failing test due to the relative path output of minitest

railties/test/generators/plugin_test_runner_test.rbrailties/test/generators/test_runner_in_engine_test.rbの修正です。

minitestのバージョンを更新したことによりfailしてしまったテストがあったのを修正しています。minitest 5.21.0からテスト失敗時にrelative pathを出力するようになった影響。

参考: https://github.com/minitest/minitest/blob/master/History.rdoc#label-5.21.0+-2F+2024-01-11


Add test for after_routes_loaded

railties/test/application/loading_test.rbの修正です

after_routes_loaded hookに関するテストを追加しています。


Improve after_enqueue example

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

after_enqueueメソッドのdoc内のexampleコードが、enqueueが成功した場合のみ実行されるように思われるコードになっていたのを、enqueueが失敗した場合も実行される事がわかるよう修正しています。


Remove unnecessary #to_s call

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

Rails.autoloaders.main.dirsを設定する際の処理から不要なpathに対する#to_sメソッドの呼び出しを削除しています。