なるようになるブログ

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

rails commit log流し読み(2022/06/23)

2022/06/23分のコミットです。

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


Tweak MessageVerifier :urlsafe option doc [ci-skip]

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

ActiveSupport::MessageVerifierのdoc内の:urlsafeオプションについての説明について、フォーマット、グラマーの修正等を行っています。


Merge pull request #45424 from shouichi/remove-padding-from-urlsafe-message-verifier

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

ActiveSupport::MessageVerifierでurlsafeな値を生成する際に、urlunsafeな=が含まれてしまう事があったのを修正しています。


Use in_memory_db? test helper

activerecord/test/cases/migration/foreign_key_test.rbactiverecord/test/cases/schema_dumper_test.rbの修正です。

in-memory DBかどうかをチェックするのに、ヘルパーメソッドを使用するよう修正しています。


Fix wrong sample code about allow_deprecated_singular_associations_name [skip ci]

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

config.active_record.allow_deprecated_singular_associations_nameの項にあるexampleコードが、allow_deprecated_singular_associations_nameの値に影響の無いexampleになっていたのを修正しています。


Fix CollectionProxy#load_async

activerecord/lib/active_record/associations/collection_proxy.rbactiverecord/lib/active_record/connection_adapters/sqlite3_adapter.rbの修正です。

associationsに対するload_asyncが正しく動作していなかったのを修正しています。


Bump ruby version for Rubocop

.github/workflows/rubocop.ymlの修正です。

Rubocopを実行するRubyのバージョンをRubyの最新バージョンに更新しています。


Fix tests for minitest 5.16

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

minitest 5.16がMock#expectでキーワード引数を受け取るようになったのに合わせて、assert_called_withでキーワード引数を扱えるよう修正、及び、各テストのassert_called_withの呼び出し処理キーワード引数を使用するよう修正しています。


Pass deseriallized defaults when copying tables in sqlite3

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

sqlite3のtable copy処理で、defaultの指定が正しく引き継がれないバグがあったのを修正しています。