2021/04/22分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Ensure Rails.application.config_for
always cast hashes to ActiveSupport::OrderedOptions
.
空のenvironmentが指定されていた場合、Rails.application.config_for
がHash
を返しまっていたのを、必ずActiveSupport::OrderedOptions
を返すよう修正しています。
Remove unused constant FileSystemResolver::EXTENSIONS
actionview/lib/action_view/template/resolver.rb
の修正です。
使用していない定数を削除しています。
activerecord/lib/active_record/connection_adapters.rb
、
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
の修正です。
SchemaCache
をautoloadの対象に追加しています。
元々はconnection adapterでloadするようになっていたのですが、Push schema cache loading into schema cache classでconnection adapterがロードされるより前(applicationの初期化処理)でSchemaCache
が使用されるようになった為。
Stop internationalizing Duration#inspect
activesupport/lib/active_support/core_ext/array/conversions.rb
、
activesupport/lib/active_support/duration.rb
の修正です。
Duration#inspect
でi18nの初期化処理が実行されないよう(不要な場合)修正しています。i18nのバックエンドでDuration#inspect
を使用している場合に、循環参照になってしまうのを避ける為。:
Merge pull request #40384 from eugeneius/teardown_shared_connection_pool
activerecord/lib/active_record/test_fixtures.rb
の修正です。
transactional testsの後で元のconnection poolに戻すよう修正しています。
Allow loading nested locales in engines
railties/lib/rails/engine/configuration.rb
の修正です。
engineでlocaleファイルをロードする際に、ネストしたパスを指定出来るよう修正しています。
Merge pull request #42044 from basecamp/fix-are-multiple-schemes
Active Recordの修正です。
support_unencrypted_data
にtrueが指定されている場合に、元のencryption schemeが使用されないバグがあったのを修正しています。
Don't remove pool managers for test classes
activerecord/test/cases/helper.rb
の修正です。
テストで独自のコネクションを保持するクラスについては、pool managersを削除しないよう修正しています。
Refactor Cache::Entry compression handling
Active Supportの修正です。
Cache::Entry
でのcache valueのcompressing処理について、constructorで行っていたのを、実際にserialize処理が必要になるまで遅らせるよう修正しています。実際の処理をcoder
に移譲出来るようにする為。:
Rename previous_types_including_clean_text => previous_types
Active Recordの修正です。
previous_types_including_clean_text
をprevious_types
にリネームしています。
We want to check previous_types ignoring clean text type here
activerecord/lib/active_record/encryption/encrypted_attribute_type.rb
の修正です。
try_to_deserialize_with_previous_encrypted_types
メソッドでエラーの際にprevious_types_without_clean_text
を使用してindexのチェックを行っていたのを、previous_types
を使用するよう修正しています。挙動としては変わらないのですが、可読性の為との事です。
Add missing text for encryption exception raising
activerecord/test/cases/encryption/encryption_schemes_test.rb
の修正です。
previous schemesを使用してdecryptを行って、エラーになった場合のテストを追加しています。
Extract helper method for common logic across tests
activerecord/test/cases/encryption/encryption_schemes_test.rb
の修正です。
複数テストで使用していた、encrypts
を使用したmodelの定義処理をメソッドに切り出しています。
Add test to validate that ciphertext is returned when all previous schemes fail
activerecord/test/cases/encryption/encryption_schemes_test.rb
の修正です。
previous schemesによる処理が失敗した場合のciphertextの戻り値に関するテストを追加しています。
Get rid of another SecureRandom.hex in MemCachedStoreTest
activesupport/test/cache/stores/mem_cache_store_test.rb
の修正です。
SecureRandom.hex
を使用していた箇所を、Random.rand
を使用するよう修正しています。/dev/urandom
を使用しすぎてエントロピープールが枯渇するのを避ける為。
Eagerly close Dalli connections in MemCachedStoreTest
activesupport/test/cache/stores/mem_cache_store_test.rb
の修正です。
MemCachedStoreTestのテストで、テストの後処理でDalliのconnectionをcloseするよう修正しています。