2018/08/19分のコミットです。
CHANGELOGへの追加はありませんでした。
Enable multiple submit buttons for Active Storage forms
activestorage/app/assets/javascripts/activestorage.js
、
activestorage/app/javascript/activestorage/ujs.js
の修正です。
Active StorageのJSが、formに複数のボタンがあるケースを考慮してなかった(clickされたbuttonではなく、findして最初に見つかったbuttonに対して処理を行っていた)のを修正しています。
Enable Style/ParenthesesAroundCondition cop
.rubocop.yml
にStyle/ParenthesesAroundCondition
copを追加、及び、各ファイルにそれらのcopを適応しています。
Ensure foreign_keys
assertions after alter table
activerecord/test/cases/migration/foreign_key_test.rb
の修正です。
test_change_column_of_parent_table
でalter tableする前にforeign keysを取得していたのを、alter tableした後に取得するよう修正しています。alter tableでforeign keysの情報がロストしてしまった際に、検知出来るようにする為。
Address intermittent CI failure due to non-determined sort order
activerecord/test/cases/serialized_attribute_test.rb
の修正です。
test_values_cast_from_nil_are_persisted_as_nil
でassertionで値を比較する際に、値をidでsortするよう修正しています。
sortを指定していと結果が不定になり、seedによってはテストが失敗してしまう為。
activestorage/test/jobs/purge_job_test.rb
の修正です。
ActiveStorage::PurgeJob
にattach済みのblobを指定した際に、エラーにならない事を確認するテストを削除しています。
今は、ActiveStorage::PurgeJob
ではなくActiveStorage::Blob#purge
で無視する用の処理が入っている、かつ、ActiveStorage::Blob
のテストで同じテストがある為。
Retry ActiveStorage::AnalyzeJobs on download integrity check failures
activestorage/app/jobs/active_storage/analyze_job.rb
の修正です。
ActiveStorage::AnalyzeJob
で、ActiveStorage::IntegrityError
エラーが発生した際にretryするよう修正しています。
Update google-cloud-storage
gem version [ci skip]
rails guideのActive Storage Overview
の修正です。
Google Cloud Storage Service
の項に記載されているgoogle-cloud-storage
gemのバージョンを1.8以上から1.11以上に修正しています。
1.11以上じゃないとstreaming downloadsが動作しない為。
Merge pull request #33653 from LemonAndroid/patch-1
rails gudieのActive Record Query Interface
の修正です。
Scopes
の項にあるscope
とclass methodの違いについて説明している箇所に、scope
は常にActiveRecord::Relation
を返す旨説明を追加、及び、exampleコードを追加しています。
Fix syntax error in the doc [ci skip]
rails gudieのActive Record Query Interface
の修正です。
先のscope
とclass methodの違いについての説明の修正で追加されたexampleコードに、シンタックスエラーになるコードがあったのを修正しています。