なるようになるブログ

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

rails commit log流し読み(2023/07/05)

2023/07/05分のコミットです。

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

actiontext/CHANGELOG.md


Merge pull request #48644 from flavorjones/flavorjones-default-config-for-action-text-sanitizer

Acion Text、railtiesの修正です。

rails-html-sanitizer 1.6.0で追加されたHTML5の標準に準拠したsanitizerをAction Textで使用出来るよう修正しています。デフォルトは古いsanitizer(Rails::HTML4::Sanitizer)を使用するようになっており、config.action_text.sanitizer_vendorRails::HTML::Sanitizer.best_supported_vendorを指定した場合、かつ、使用出来る場合は新しく追加されたsanitizer(Rails::HTML5::Sanitizer)が使用されるようになっています。


Fix a bug that prevented #pretty_print from displaying records unsaved in collection association.

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

DBに保存していないcollection associationが#pretty_printで表示されないバグがあったのを修正しています。


Fix typo in activerecord tests (hash_many -> has_many)

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

テスト名でhas_manyhash_manyにタイポしていたのを修正しています。


Remove unused code from encryption tests

activerecord/test/cases/encryption/encryption_schemes_test.rbactiverecord/test/cases/encryption/scheme_test.rbの修正です。

使用していないrequire及びメソッドを削除しています。


Fix test flakiness introduced in #4f365720d1b87b7a8fe7d8d77c157b63d853e334

activerecord/test/cases/encryption/encryption_schemes_test.rbactiverecord/test/cases/encryption/helper.rbの修正です。

テスト実行前に全てのencrypted attribute typesをロードするよう修正しています。テスト実行中にロードされると、その変更が他のテストに影響を及ぼす可能性がある為。


Merge pull request #48645 from Shopify/action-view-bare-cache-fragments

actionview/lib/action_view/renderer/partial_renderer/collection_caching.rbの修正です。

Action Viewのcollection cachingで、bare stringとして保存されているはずのfragmentが何故かActionView::OutputBufferインスタンスとして保存されてしまう事があるバグがあったのを修正しています。


Fix AS::Cache 7.1 format to properly compress bare strings

ActionView::OutputBufferの修正です。

ActiveSupport::Cache7.1 formatの圧縮処理で、bare stringを正しく処理出来てなかったのを修正しています。


Fix parallel testing (issue #48547)

Active Recordの修正です。

Rails 7.1でparallel test用のconnectionの設定処理が正しく行われず、parallel test実行時にエラーになってしまうバグがあったのを修正しています。