なるようになるブログ

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

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

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

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

activesupport/CHANGELOG.md

activesupport/CHANGELOG.md


Add initial value support to MemCacheStore #increment and #decrement

Active Supportの修正です。

cache storeの#increment#decrementメソッドにkeyが未設定、または、expireしている場合に使用するデフォルト値を指定出来るよう修正しています。


Fix incorrect line number if a helper_method errors

actionpack/lib/abstract_controller/helpers.rbの修正です。

helper_methodで定義したメソッド内でエラーが発生した場合に、バックトレースの行が正しく表示されないバグがあったのを修正しています。


Deprecate :pool_size and :pool_timeout options for configuring connection pooling in cache stores

activesupport/lib/active_support/cache.rbactivesupport/test/cache/behaviors/connection_pool_behavior.rbの修正です。

cache storeのpool_sizepool_timeoutオプションがdeprecatedになりました。connection poolingを有効化したい場合、今後はpoolオプションを使用する必要があります。

# connection poolingを有効化したい場合
config.cache_store = :redis_cache_store, pool: true

# connection poolingの値を設定したい場合
config.cache_store = :redis_cache_store, pool: { size: 10, timeout: 2 }

Use queue_classic 4.0.0

Gemfileの修正です。

queue_classic gemのバージョンを4.0.0に更新しています。