2021/06/10分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activestorage/CHANGELOG.md
Use the current Rails->npm_version for package.json
railtiesの修正です。
rails newした際のpackage.json内のRails関連のnpm(@rails/ujsや@rails/activestorageなど)がRailsのバージョンと完全に一致するようバージョンの指定を行うよう修正しています。
[ci skip] clarify rails 6 for AS :attachment
rails guideのActive Storage Overviewの修正です。
generatorのattachment、attachments fieldはRails 6.0以上でないと使えない旨説明を追加しています。
Fix invalid statement template compile error
actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erbの修正です。
エラー用のtemplate fileでendの指定が不足してる箇所があったのを修正しています。
Merge pull request #42392 from FestaLab/activestorage/video-analyzer
activestorage/lib/active_storage/analyzer/video_analyzer.rbの修正です。
video blobのmetadataに、audio channelが存在するかどうかを判別する為のaudio keyを追加しています。audio channelが存在する場合、trueが設定されるようになっています。
Merge pull request #42423 from dorianmarie/Model.update!
activerecord/lib/active_record/persistence.rbの修正です。
ActiveRecord::Base.update!メソッドを追加しています。ActiveRecord::Base.updateのエラー時にexceptionをraiseする版。
Fix method name in update! error message [ci skip]
activerecord/lib/active_record/persistence.rbの修正です。
Model.update!メソッドで出力するエラーメッセージ内のメソッド名がupdateになっていたのをupdate!に修正しています。
Fix the Active Record test suite following fcc83e47384b69
activerecord/test/cases/persistence_test.rbの修正です。
先のupdate!のエラーメッセージの修正で、テストがコケてしまっていたのを修正しています。
activerecord/CHANGELOG.mdの修正です。
ActiveRecord::Base.update!を追加した対応について、CHANGELOGにエントリーを追加しています。
Expand on AR::Base for method definition from #42423 [ci skip]
activerecord/CHANGELOG.mdの修正です。
ActiveRecord::Base.update!を追加した対応エントリーのメソッドにクラス名を追加しています。
Correct changelog for #42423 to be class method instead of instance
activerecord/CHANGELOG.mdの修正です。
ActiveRecord::Base.update!を追加した対応エントリーのメソッドの説明がインスタンスメソッドになっていたのをクラスメソッドに修正しています。
Add example for update_all vs. update
rails guideのActive Record Basicsの修正です。
Updateの項にActiveRecord::Base.updateメソッドについての説明を追加しています。
Merge pull request #42443 from daven97/daven97update_active_record_relation_wording
activerecord/lib/active_record/relation.rbのdocの修正です。
find_or_create_byメソッドのdocの言い回しを修正しています。
Make legacy_connection_handling a module instance variable
Active Recordの修正です。
元々class variableだったlegacy_connection_handlingをmodule instance variableに変更しています。ancestor chainが長くなるようなクラスの場合、class variableだとパフォーマンス的に良くない為。
参考: Feature #17763: Implement cache for cvars - Ruby master - Ruby Issue Tracking System
Add x86_64-darwin-20 platform to the Gemfile
Gemfile.lockの修正です。GemfileのPLATFORMSにx86_64-darwin-20を追加しています。