なるようになるブログ

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

rails commit log流し読み(2020/10/22)

2020/10/22分のコミットです。

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

activesupport/CHANGELOG.md


fix boolean negation in documentation activerecord/lib/active_record/associations/collection_association.rbguides/source/api_documentation_guidelines.mdのdocの修正です。

CollectionAssociation#empty?メソッドのdoc内の、同等の処理について説明している箇所にタイポがあったのを修正しています。


Document Testing::SimpleStubs

activesupport/lib/active_support/testing/time_helpers.rbのdocの修正です。

ActiveSupport::Testing::SimpleStubsクラス内の各メソッドにdocを追加しています。


Instrument cache store name

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

Cacheのinstrumentのpayloadにstore nameを追加しています。


Speed up ActiveSupport::SecurityUtils.fixed_length_secure_compare

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

ActiveSupport::SecurityUtils.fixed_length_secure_compareで、OpenSSL.fixed_length_secure_compareを使用するよう修正しています。OpenSSL.fixed_length_secure_compareの方が高速(Cでの実装)な為。

OpenSSL.fixed_length_secure_compareが使用出来ない場合は、元々あったRubyの実装が使用されるようになっています。


Remove redundant begin blocks

各箇所から不要なbegin blockを削除しています。


Document for cache store name instrumentation [ci skip]

rails guideのActive Support Instrumentationの修正です。

cache関連のinstrumentのpayloadに、store nameの説明を追加しています。