なるようになるブログ

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

rails commit log流し読み(2022/08/01)

2022/08/01分のコミットです。

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


TaggedLogging preserves formatter methods

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

TaggedLoggingでformatter classが保持しているメソッドを使用出来るよう修正しています。


Merge pull request #45708 from jonathanhefner/encrypted-config-tmp-path-with-spaces

railtiesの修正です。

encrypted commadでfile pathにスペースを含むpathを指定出来るよう修正しています。


Merge pull request #45664 from sambostock/teach-active-job-to-set-configs-on-itself

activejob/lib/active_job/railtie.rbrailties/lib/rails/application/configuration.rbの修正です。

railtiesのconfigで指定したActive Job用のconfigがActive Job側で正しく設定されていない事があったのを修正しています。


RedisCacheStore: remove unused mget_capable? flag

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

使用していないmget_capable? flagを削除しています。


RedisCacheStore: avoid monkey patching redis

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

yield selfを返すだけのwithメソッドを独自に定義していたのを、Ruby本体のthenメソッドを使用するよう修正しています。


RedisCacheStore: get rid of the Redis::Distributed check

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

Redis::Distributedのチェック処理を削除しています。代わりに、pipeliningをサポートしているかどうかを実際のコマンド実行時に行うよう修正しています。


Refactor ExtendedDeterministicQueries to not mutate the arguments

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

ExtendedDeterministicQueriesでの処理で、引数自体を変更していたのを、引数自体の値は変更しないようリファクタリングしています。


Optimize increment and decrement for RedisCacheStore

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

RedisCacheStoreincrement/decrement処理で、Redisのリクエスト回数を減らすようリファクタリングしています。