2021/02/05分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Rails 7 requires Ruby 2.7 and prefer Ruby 3+
次のRailsのバージョンは7.0に変更になり、かつ、7.0がサポートするバージョンはRuby 2.7以上となった為、required_ruby_version
を>= 2.7.0
に修正、及び各doc内のサポートしているRubyのバージョンを修正しています。
Fix Rails version typo in upgrading guide [ci skip]
rails guideのUpgrading Ruby on Rails
の修正です。
Railsのバージョンをタイポしている箇所があったのを修正しています。
次のRailsのバージョンは6.2ではなく7.0になる事になった為、各gemのバージョンや、deprecationメッセージ内のRailsのバージョン等を7.0に修正しています。
activerecord/test/cases/relation/merging_test.rb
の修正です。
Railsのバージョンの変更によりコケてしまうテストがあったのを修正しています。
Ensure migration version is 7.0
activerecord/lib/active_record/migration/compatibility.rb
の修正です。
現在のmigration versionをV7_0
に更新しています。
railtiesのテストの修正です。 Railsのバージョンの変更によりコケてしまうテストがあったのを修正しています。
Merge pull request #41335 from MatheusRich/small-performance-improvements
actionpack/lib/action_dispatch/journey/router/utils.rb
の修正です。
UriEncoder
の定義時にオブジェクトの生成を減らすよリファクタリングしています。
Refactor preventing writes and write query check
Active Recordの修正です。
adapter毎に行っていたpreventing writeのチェックを、AbstractAdapter
で行うよう修正しています。
Strip whitespace in disallow_raw_sql!
activerecord/lib/active_record/sanitization.rb
の修正です。
ActiveRecord::Sanitization.disallow_raw_sql!
でcolumのマッチ処理を行う際に、空白を削除してからマッチ処理を行うよすう修正しています。
Fix typo in deprecation warning
actionpack/lib/action_dispatch/http/response.rb
の修正です。
deprecated
をdreprecated
にタイポしていたのを修正しています。
Fix deprecation message s/Rails 7.0 will return/Rails 7.1 will return/
actionpack/lib/action_dispatch/http/mime_negotiation.rb
の修正です。
content_type
メソッドで出力するdeprecationメッセージ内のRailsのバージョンが過っていたのを修正しています。
Remove Lint/ShadowingOuterLocalVariable
cop
.rubocop.yml
の修正です。
Lint/ShadowingOuterLocalVariable
copを削除しています。"shadowing outer local variable"のwarningはRuby 2.6で削除された為。
Update TargetRubyVersion
to 2.7 in .rubocop.yml
.rubocop.yml
のTargetRubyVersion
を2.7に更新、及び、Ruby 2.6以下向けのコードを削除しています。
Fix a rubocop offence for Lint/ErbNewArguments
tasks/release.rb
の修正です。
Ruby 2.6以下向けのコードを削除しています。
Remove all version checking for older Rubies in tests
各テストコードから、Ruby 2.6以下向けのコードを削除しています。
Fix build
multiple records on association relation to not lose scope values
activerecord/lib/active_record/association_relation.rb
の修正です。
association relationのbuild
で複数レコードの生成をする際に、scope valuesが反映されないバグがあったのを修正しています。