なるようになるブログ

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

rails commit log流し読み(2020/04/09)

2020/04/09分のコミットです。

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

activejob/CHANGELOG.md

actionpack/CHANGELOG.md


Update tzinfo to avoid taint warnings

Gemfile.lockの修正です。

tzinfoのバージョンを2.0.2に更新しています。taintに関するwarningが表示されるのを避ける為。


Build Journey::Path::Pattern ast in a single loop

actionpack/lib/action_dispatch/journey/path/pattern.rbの修正です。

Jou::Path::Pattern#astメソッドでast生成のループ処理を減らすようリファクタリングしています。


Merge pull request #38082 from p8/guides/actioncable-clarify-stream-for

rails guideのAction Cable Overviewの修正です。

Streamsの項にあるexampleコードについて説明している箇所に、stream名についての説明を追加しています。


Merge pull request #38605 from dmitry/issue-38584

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

assert_enqueued_withperform_enqueued_jobsを合わせて使用、かつ、それぞれでjobのfilterをしている場合に、enqueueされたjobが正しく実行されないバグがあったのを修正しています。


ActionView::Base.annotate_template_file_names only annotates HTML output.

actionview/lib/action_view/template/handlers/erb.rbactionview/lib/action_view/template/handlers/erb/erubi.rbの修正です。

Merge pull request #38848 from joelhawksley/template-annotationsで追加された、テンプレート名のコメントへの出力処理を、formatがHTMLのときのみ出力するよう修正しています。


Move CHANGELOG entry to the top

activejob/CHANGELOG.mdの修正です。

Merge pull request #38605 from dmitry/issue-38584で追加されたCHANGELOGのエントリーをファイルの先頭に追加しています。


Update the Active Model deprecation warning

activemodel/lib/active_model/errors.rbの修正です。

ActiveModel::Errors#eachメソッドで出力するdeprecateメッセージで、新しいActiveModel::Errorsでエラーのattribute / messageを取得する方法についての説明を行うよう修正しています。


Add attribute_names method on errors

activemodel/lib/active_model/errors.rbの修正です。

エラーになったattribute名の一覧を取得するためのActiveModel::Errors#attribute_namesメソッドを追加しています。


Minor fix to correctly identify the entire scope of the loopback address, per RFC-3330.

actionpack/lib/action_dispatch/middleware/remote_ip.rbの修正です。

127.0.0.1だけがlocalhost IPv4のtrusted proxyとして指定されていたのを、range(127.0.0.0/8)をtrusted proxyとして使用出来るよう修正しています。