なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2022/01/07)

2022/01/07分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activejob/CHANGELOG.md

activerecord/CHANGELOG.md


Document what the new default_headers will be [ci skip]

rails guideのConfiguring Rails Applicationsの修正です。

load_defaults 7.1を指定した場合の挙動について説明している箇所に、Remove X-Download-Options default headerで変更になったconfig.action_dispatch.default_headersについての説明を追加しています。


document usage of :enable_starttls

docの修正です。

ActionMailersmtp optionsについて説明している箇所に、:enable_starttlsオプションについての説明を追加しています。


Merge PR #43066

activejob/lib/active_job/test_helper.rbの修正です。

Active Jobで、discard_on/retry_onにActiveJob::DeserializationErrorを指定した場合のテストがActive Jobのテスト用helperメソッドを使用して出来なかった(perform_nowを呼び出す前にActiveJob::DeserializationErrorが発生するようになっていて、discard_on/retry_onまで処理がいかなかった)のを、処理順を調整し、テストが行えるよう修正しています。


QueryMethods#in_order_of drop records not listed

activerecord/lib/active_record/relation/query_methods.rbの修正です。

QueryMethods#in_order_ofメソッドの結果を、引数に指定したlistにない値は含まないよう修正しています。Enumerable#in_order_ofと挙動を合わせる為。


Reuse view_context_class when possible

actionview/lib/action_view/rendering.rbの修正です。

Rendering内で保持しているview context classesを複数処理で使いまわすよう修正しています。


No need to check for Ruby version on the bug reports template anymore

guides/bug_report_templates/action_mailbox_gem.rbguides/bug_report_templates/action_mailbox_main.rbの修正です。

Ruby 3.1以上の場合にnet-smtpを追加するようにした処理を削除しています。Temporarily add net-gems as dependencies of frameworks that use mailでgem自体の依存に追加した為。


Run the gem template guides for 3.1 now that 7.0.1 is out

guides/Rakefileの修正です。

bug report templateのテストをRuby 3.1でも実行するよう修正しています。Ruby 7.0.1がリリースされ、現在はテストが通るようになっている為。


Merge pull request #44089 from fnando/activestorage-expose-other-modules

activestorage/app/javascript/activestorage/index.jsの修正です。

direct upload用のcontroller(DirectUploadControllerDirectUploadsController)もentry pointでexportするよう修正しています。


Fix typo in autoloading docs

rails guideのAutoloading and Reloading Constantsの修正です。

Autoloading when the application bootsの項のタイポを修正しています。


Ensure codeblocks are rendered as such for (min|max)imum

activesupport/lib/active_support/core_ext/enumerable.rbのdocの修正です。

minimummaximumメソッドのdoc内のexampleコードのcodeblockが正しく表示されるよう修正、及び、各メソッドのdocのインデントを統一するよう修正しています。