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_vendor
にRails::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_many
をhash_many
にタイポしていたのを修正しています。
Remove unused code from encryption tests
activerecord/test/cases/encryption/encryption_schemes_test.rb
、
activerecord/test/cases/encryption/scheme_test.rb
の修正です。
使用していないrequire及びメソッドを削除しています。
Fix test flakiness introduced in #4f365720d1b87b7a8fe7d8d77c157b63d853e334
activerecord/test/cases/encryption/encryption_schemes_test.rb
、
activerecord/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::Cache
の7.1
formatの圧縮処理で、bare stringを正しく処理出来てなかったのを修正しています。
Fix parallel testing (issue #48547)
Active Recordの修正です。
Rails 7.1でparallel test用のconnectionの設定処理が正しく行われず、parallel test実行時にエラーになってしまうバグがあったのを修正しています。