なるようになるブログ

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

rails commit log流し読み(2020/01/18)

2020/01/18分のコミットです。

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

activerecord/CHANGELOG.md

actioncable/CHANGELOG.md


Reduce FILENAME_MAX_SIZE to accomodate large PIDs

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

cache storeのファイル名の最大値を228から226に修正しています。

元々PIDが最大5桁(65535)である事を想定した数字になっていたのですが、今のLinuxだとPIDが最大7桁(4194304)になる為、その分数字を調整しています。


Deprecate and replace #default_hash and #[]

activerecord/lib/active_record/database_configurations.rbactiverecord/lib/active_record/railties/databases.rakeの修正です。

database configurationsのdefault_hash[]メソッドがdeprecateになりました。今後はconfigs_forメソッドを使う必要があります。


Introduce ActionCable::Channel#stop_stream_from/for to unsubscribe specific streams (#37171)

actioncable/lib/action_cable/channel/streams.rbの修正です。

特定のstreamをunsubscribeするためのActionCable::Channel#stop_stream_from及び#stop_stream_forメソッドを追加しています。

stop_stream_fromはstreamingを、stop_stream_forはmodelを指定するようになっています。