なるようになるブログ

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

rails commit log流し読み(2021/06/08)

2021/06/08分のコミットです。

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

activesupport/CHANGELOG.md


Merge pull request #42348 from HParker/duration-to-ISO8601-avoid-scientific-notation

activesupport/lib/active_support/duration/iso8601_serializer.rbの修正です。

ISO8601用のformatterで%gを使用しないよう修正しています。指数表現にならないようにする為(%gは指数が-4より小さいか精度以上の場合に指数表現になる)。


Merge pull request #42370 from sunny/better-error-message-when-encrypted-file-key-is-blank

activesupport/lib/active_support/encrypted_file.rbの修正です。

RAILS_MASTER_KEY envが空の場合、encrypted file read時にActiveSupport::EncryptedFile::MissingKeyErrorをraiseするよう修正しています。


Return "test" as the controller_name in ActionView tests

Action Pack、Action Viewの修正です。

ActionView::TestCasecontroller_namenilになってしまうバグがあったのを修正しています。


Improve AS::TimeWithZone error message on NoMethodError

activesupport/lib/active_support/time_with_zone.rbの修正です。

ActiveSupport::TimeWithZoneNoMethodErrorが発生した場合のエラーメッセージ内のTimeActiveSupport::TimeWithZoneに置換するよう修正しています。Timeインスタンスを使用している場合にも発生する可能性がある処理の為。


Fix documentation

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

disable_joinsに関する説明が他のオプションの説明内に混ざってしまっていたのを修正しています。