2022/09/15分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Remove redundant ELSE
branch from the ActiveRecord::Base.in_order_of
SQL query
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
ActiveRecord::Base.in_order_of
が生成するSQLから不要なELSE
branchを削除しています。
Fix flaky PostgreSQL enum migration reversibility test
activerecord/test/cases/adapters/postgresql/invertible_migration_test.rb
の修正です。
テストで生成したenumの削除処理が行われていなかったのを修正しています。
Merge pull request #46026 from jonathanhefner/deprecation-non-global-disallowed_warnings
activesupport/lib/active_support/deprecation/disallowed.rb
の修正です。
ActiveSupport::Deprecation#disallowed_warnings
で設定した内容が、全てのActiveSupport::Deprecation
のインスタンスに影響が出るようになっていたのを、設定したインスタンスでのみ影響を受けるよう修正しています。合わせて、globalのActiveSupport::Deprecation.disallowed_warnings
で設定した内容は、globalのActiveSupport::Deprecation.warn
にのみ影響が出るようにし、個別のインスタンスの設定には影響が出ないよう修正しています。
Test more AS::Deprecation behavior callbacks
activesupport/test/deprecation_test.rb
の修正です。
ActiveSupport::Deprecation
のbehavior
にcallbackを指定した場合のテストを追加しています。
Derive arity of AS::Deprecation behavior callbacks
activesupport/lib/active_support/deprecation/behaviors.rb
の修正です。
ActiveSupport::Deprecation
のcallbackにarity
が定義されていないobject(e.g. callable object)も指定出来るよう修正しています。
Prefer capture_io in AS::Deprecation tests
activesupport/test/deprecation_test.rb
の修正です。
stderrをcaptureするのにRails独自のhelperメソッドを使用していたのを、minitestが提供しているメソッド(capture_io
)を使用するよう修正しています。
が、他の処理と処理は合わせた方が可読性が良いだろう、という事で後ほどRails独自のhelperメソッドを使うよう戻しています。
Merge pull request #45877 from neilvilela/nc-composed-of-hash
activerecord/lib/active_record/aggregations.rb
のdoc、及び、activerecord/test/cases/aggregations_test.rb
の修正です。
`composed_of
のmapping
を指定した場合のテスト、及び、docにexampleを追加しています。
Switch back to capture in AS::Deprecation tests
activesupport/test/deprecation_test.rb
の修正です。
Prefer capture_io in AS::Deprecation testsで行った変更を元に戻しています。
Merge pull request #45546 from skipkayhil/decaffeinate-ujs
Action Viewの修正です。
rails-ujsのコードをCoffeeScriptから素のJS(ES2015 module)に変更しています。
Merge pull request #46009 from johnnyshields/bundler-use-windows-platform
railtiesの修正です。
GemfileでplatoformにWindowsを指定するのに、:mswin, :mswin64, :mingw, :x64_mingw
を使用していたのを、そのaliasである:windows
を使用するよう修正しています。
Add link to 7.0 release notes in upgrade guide
rails guideのUpgrading Ruby on Rails
の修正です。
Upgrading from Rails 6.1 to Rails 7.0
セクションに、Rails 7.0のリリースノートへのリンクを追加しています。
Add link to 7.1 release notes in upgrade guide
rails guideのUpgrading Ruby on Rails
の修正です。
Upgrading from Rails 7.0 to Rails 7.1
セクションに、Rails 7.1のリリースノートへのリンクを追加しています。
Fix Active Record :db_runtime metric
Active Recordの修正です。
:db_runtime
metricの為の値の保持をActiveRecord::LogSubscriber
で行っていたのを、ActiveRecord::RuntimeRegistry
で行うよう修正しています。