なるようになるブログ

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

rails commit log流し読み(2022/05/21)

2022/05/21分のコミットです。

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

activemodel/CHANGELOG.md


Don't call controller's headers method internally

actionpack/lib/action_controller/metal/rendering.rbの修正です。

headersを書き換えるのにselfを使用していたのを使用しないよう修正しています。controllerにheadersメソッドが定義されている場合に、controllerの方のメソッドが呼ばれてしまうのを避ける為。


Support infinite ranges for LengthValidators :in/:within options

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

LengthValidatorのinwithオプションにinfinite rangesを指定できるよう修正しています。


add header for devcontainers, this serves two purposes: [ci-skip] (#45129)

rails guideのContributing to Ruby on Railsの修正です。

devcontainersについて説明している箇所にヘッダーを追加しています。


Adds Deferrable Foreign Keys section to Active Record and PostgreSQL guide (#43812)

rails guideのActive Record and PostgreSQLの修正です。

foreign Keysをdeferrableする方法について説明したDeferrable Foreign Keysセクションを追加しています。


add section for host header attack prevention in rails security guide (#43330)

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

DNS rebinding及びhost header攻撃について説明したDNS rebinding and Host header attacksセクションを追加しています。


Add header fixes[ci skip]

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

DNS Rebinding and Host Header Attacksセクションのヘッダー名を修正しています。


Add examples of empty passwords for authenticate by

activerecord/lib/active_record/secure_password.rbのdocの修正です。

authenticate_byメソッドのdocにpasswordを空にする場合のexampleを追加しています。


Merge pull request #45120 from p8/guides/expand-security-headers-guide

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

デフォルトのヘッダーについてそれぞれ個別に説明を行うよう修正、各箇所のグラマーの修正、等を行っています。


Merge pull request #45104 from dorianmariefr/add-alias-for-method-method-for-debugging

actionpack/lib/action_dispatch/http/request.rbの修正です。

ActionDispatch::Request#methodに引数が指定されていた場合、Object#methoddelegateするよう修正しています。method(:POST).source_location等のmethodを使用したデバッグが出来るようにする為。