2023/01/14分のコミットです。
CHANGELOGへの追加はありませんでした。
Refactor schema dumping helper for tests
activerecord/test/support/schema_dumping_helper.rb
の修正です。
dump_table_schema
メソッドから、指定されていなかったconnection
引数を削除しています。
Improve error message for missing listen gem
activesupport/lib/active_support/evented_file_update_checker.rb
の修正です。
EventedFileUpdateChecker
を使用しようとしているがlisten
gemがインストールされていない場合のエラーメッセージを、よりエラーの内容がわかりやすくなるよう修正しています。
Merge pull request #46989 from lsylvester/avoid-raising-errors-on-unmigrated-signed-cookies
actionpack/lib/action_dispatch/middleware/cookies.rb
の修正です。
encrypted cookieのparse処理でJSON::ParserError
をrescueするよう修正した、ActionDispatch::Cookies json deserializer discards marshal dumpsと同じ対応をsigned cookieのparse処理でも行うよう修正しています。
Implement spot and don't use keep_script_lines
in Ruby 3.2
Ruby 3.2以上の場合、エラーが発生した行を取得するのにRuby 3.2で追加されたRubyVM::AbstractSyntaxTree.node_id_for_backtrace_location
を使用するよう修正しています。error_highlight
gemがevalしたコードでも動作するようにする為。また、この対応により不要になったRubyVM.keep_script_lines
の指定を削除しています。
Add warning for missing translate_location
actionview/lib/action_view/template.rb
の修正です。
template engineでtranslate_location
メソッドが定義されていない場合に、deprecateメッセージを表示するよう修正しています。error highlightingの為に実装されいる事が期待されており、それがtemplate engine側に伝わるようにする為。
Merge pull request #46928 from hahmed/fix-action-text-tests
Action Textのテストの修正です。
Action Textのテストで使用しているdummy applicationがwebpackerを使用していたのを、importmap-railsを使用するよう修正しています。
Merge pull request #47004 from p8/guides/activestorage-s3-cache-control
rails guideのActive Storage Overview
の修正です。
Amazon S3の設定を行う方法について説明している箇所に、Cache-Control headerを指定した場合のexampleを追加しています。
Stop doc on ruby_version_check.rb
railties/lib/rails/ruby_version_check.rb
の修正です。
ruby_version_check.rb
でdocの生成をしないよう修正しています。何故かruby_version_check.rb
をパースしようとするとRDocがクラッシュしてしまう事がある、そもそもruby_version_check.rb
にはdocは不要な為。