なるようになるブログ

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

rails commit log流し読み(2020/09/24)

2020/09/24分のコミットです。

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

railties/CHANGELOG.md

activesupport/CHANGELOG.md


Add an ActiveSupport option to allow setting a digest class

Active Support、railtiesの修正です。

config.active_support.use_sha1_digestsをdeprecateにしています。代わりに、hash digestに使用するclassを指定出来るconfig.active_support.hash_digest_classconfigを追加しています。デフォルトはDigest::SHA1になっています。


Remove unused require

activestorage/app/models/active_storage/variant.rbの修正です。

使用していないrequireを削除しています。


Move require active_support/core_ext/string/filters to

activejob/lib/active_job/log_subscriber.rbactivejob/lib/active_job/logging.rbの修正です。

requireを実際にその機能を使用しているファイルで行うよう修正しています。


Merge pull request #40240 from adrianna-chang-shopify/subscriber-attach-to-with-inherit-option

activesupport/lib/active_support/log_subscriber.rbactivesupport/lib/active_support/subscriber.rbの修正です。

ActiveSupport::Subscriber#attach_toメソッドに、親クラス(subscriber)で指定したreceive eventsを引き継ぐかどうかを指定する為のinherit_all引数を追加しています。


Merge pull request #39320 from trevorrjohn/i18n_key

activemodel/lib/active_model/naming.rbの修正です。

i18n関係のattribute(singulari18n_key等)がreaderメソッドだけ定義されていたのを、writerメソッドも定義するよう修正しています。

STIを使っている場合に、それらの値をoverrideしたい事がある為、との事です。


Fix typo s/inherit_from/inherit_all/ [ci skip]

activesupport/CHANGELOG.mdの修正です。

inherit_allinherit_fromにタイポしていたのを修正しています。


Use master branch for listen and redis-namespace

Gemfileの修正です。

listenredis-namespace gemについて、GitHubのmasterブランチのコードを使用するよう修正しています。Ruby 3.0でCIが実行されるようにする為。


rexml is no longer default gem in Ruby 3.0

Gemfileactivesupport/activesupport.gemspecの修正です。

rexmlをActive Supportのdependencyに追加しています。Ruby 3.0ではrexmlはdefault gemでは無くなってしまったので、dependencyに追加しないとrexmlに依存しているXmlMiniが動作しなくなってしまう為。