2019/08/07分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activestorage/CHANGELOG.md
actionmailbox/CHANGELOG.md
Fix thread safety of prevent_writes
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
の修正です。
prevent_writes
がスレッドアンセーフな変数になっていた(複数スレッドで読み込み / 書き込みを行った際に書き込み処理が正しく行えないケースがあった)のを、スレッド毎に変数を保持するようにしてスレッドセーフになるよう修正しています。
Gemfile.lock
の修正です。
Update rails-html-sanitizer to 1.1.0 in actionview.gemspecでrails-html-sanitizer
のバージョンを更新した際にGemfile.lock
の更新が漏れていたのを対応しています。
Update azure-storage gem to latest version
Active Storageの修正です。
Azure serviceへのファイルアップロード処理に使用していたgemをazure-storage
からazure-storage-blob
に変更、及び、それに合わせて各処理を修正しています。
azure-storage
gemはpreview版という位置づけ、かつ、現在はメンテされておらず、今はazure-storage-blob
を使用するが推奨されている為。
Merge pull request #36870 from jhawthorn/schema_sha
activerecord/lib/active_record/migration.rb
、
activerecord/lib/active_record/tasks/database_tasks.rb
の修正です。
test databaseでschemaのreloadが必要かどうかチェックするのにmigration statusを使用していたのを、schema.rb
のsha1の値でチェックするよう修正しています。
migration statusだとmigrationのrollbackを実行した際などに自動での対応が出来ず手動でコマンドを実行する必要があったのですが、schema.rb
のsha1だとrollback時もschema.rb
のsha1も変わる為、自動で対応が行えるようになっています。なお、sha1の値はDB(internal metadata table)に保存されるようになっています。
Fix GROUP BY aggregation alias to not duplicate "_" chars
activerecord/lib/active_record/relation/calculations.rb
の修正です。
GROUP BY + count + countで生成さされたaliasでorderを行った際にエラーになってしまうバグがあったのを修正しています。
Fix typo in autoloading_and_reloading_constants
rails guideのAutoloading and Reloading Constants (Zeitwerk Mode)
の修正です。
available
をavailabe
にタイポしていたのを修正しています。
Allow testing multipart emails in Action Mailbox
actionmailbox/lib/action_mailbox/test_helper.rb
の修正です。
create_inbound_email_from_mail
、receive_inbound_email_from_mail
メソッドの引数にblockを指定した場合に、そのblockをそのままMail.new
の引数に渡すよう修正しています。multipart emailの作成を簡単に出来るようにする為。
create_inbound_email_from_mail do to "David Heinemeier Hansson <david@example.com>" from "Bilbo Baggins <bilbo@example.com>" subject "Come down to the Shire!" text_part do body "Please join us for a party at Bag End" end html_part do body "<h1>Please join us for a party at Bag End</h1>" end end
Correct assertion argument order
actionmailbox/test/unit/test_helper_test.rb
の修正です。
assert_equal
メソッドの引数が逆(actual、expectedの順になっていた)になっていたのを修正しています。