なるようになるブログ

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

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

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

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

activerecord/CHANGELOG.md


Move require_dependencies suite to the one for dependencies

Active Supportの修正です。

Deletes the classic implementation of require_dependencyの対応で不要になった処理の削除、及び、require_dependencyのテストがrailtiesにあったのをActive Supportに移動しています。require_dependencyの挙動がapplicationの設定に依存しなくなった為。


Merge pull request #42987 from entretechno/simplify-pluck-value-first-to-pick-value

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

pluck + firstしていた箇所を、pickを使用するよう修正しています。


Fix rubocop offences

activesupport/test/dependencies_test.rbの修正です。

rubocopの設定に違反している箇所があったのを修正しています。


Set record_timestamps = true in AR::InternalMetadata

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

ActiveRecord::InternalMetadataconfig.active_record.record_timestampsの設定にかからわず必ずtimestampの設定を行うよう修正しています。timestampの設定をしないとエラーになる(ar_internal_metadataとtimestamp系のカラムがnot-nullになっている)為。


Merge pull request #42988 from abhaynikam/fix-active-storage-test-warnings

Active Storageのテストの修正です。

テスト実行時にdeprecate warningsが出力されていたのを出力されないよう修正しています。


Stop trying to configure listen by default on compatible platforms (#42985)

railtiesの修正です。

listen gemに関する各オプション、設定を削除しています。現在のスペックのPCでは、evented file update watcherを使うメリットはそんなにない(pollingでそれなりに速度がでる)だろう、という主張により対応が行われています。


Legacy option from the days of Bundler opposition (#42996)

railtiesの修正です。

rails newからskip_gemfileオプションを削除しています。現在の開発において、このオプションを使う(Gemfile無しにする)事は無いだろう、との理由です。


Puma is the only option used for the web server (#42998)

railtiesの修正です。

rails newからskip_pumaオプションを削除しています。Railsとしては、web serverの選択肢としてはPumaのみを提供している為、スキップする為の機能は不要だろう、という理由です。


Remove test and docs of now gone --skip-puma

rails guideのThe Rails Command Lineの修正です。

--skip-pumaオプションに関する説明が残っていたのを削除しています。