なるようになるブログ

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

rails commit log流し読み(2022/02/11)

2022/02/11分のコミットです。

CHANGELOGへの追加はありませんでした。


Insert space before opening parenthesis [ci-skip]

rails guideのAction Controller OverviewSecuring Rails Applicationsの修正です。

フォーマットの修正を行っています。


Add module/class nesting consistency on newly generated application:

railties/lib/rails/generators/rails/app/templates/test/channels/application_cable/connection_test.rb.ttrailties/lib/rails/generators/rails/app/templates/test/test_helper.rb.ttの修正です。

generatorが生成するファイルで、module/classのnestingのスタイルにcompact styleを使っているファイルがあったのを、nested styleを使用するよう修正しています。他のファイルと挙動を合わせる為。


Update ActiveModel::Attributes examples in docs

Active Modelのdocの修正です。

ActiveModel::Attributesのdocにあるexampleが実際には動作しないコードになっていたのを修正しています。


Merge pull request #44386 from ghousemohamed/patch-3

activesupport/test/cache/behaviors/cache_store_behavior.rbの修正です。

cacheのkeyがcase sentiveである事を確認するテストでSecureRandom.alphanumericを使用していたのを、固定の値(case_sensitive_key)を使用するよう修正しています。SecureRandom.alphanumericで全て大文字の値が生成された場合に、テストがfailしてしまう為。


Merge pull request #44390 from p8/actionpack/silence-uninitialized-ivar-warning

actionpack/test/controller/test_case_test.rbの修正です。

テスト実行時にRubyのwarningが出ていたのを対応しています。