なるようになるブログ

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

rails commit log流し読み(2021/02/08)

2021/02/08分のコミットです。

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


Remove checks for Module#method_defined? arity

activerecord/lib/active_record/autosave_association.rbactivesupport/lib/active_support/callbacks.rbの修正です。

Ruby 2.6以下向けのコードを削除しています。


Removes Symbol#start_with? and Symbol#end_with? since they are defined in Ruby 2.7

activesupport/lib/active_support/core_ext/symbol/starts_ends_with.rbの修正です。

不要になったSymbol#start_with?、及び、Symbol#end_with?を削除しています。


Merge pull request #41357 from andrehjr/dedup-redundant-frozen-check

activesupport/lib/active_support/core_ext/object/deep_dup.rbの修正です。

freeze済みのHashのkeyに対してfrozenチェックを行っていたのを削除しています。


Use native Range#cover? which accepts Range arguments since Ruby 2.6

activesupport/lib/active_support/core_ext/range/compare_range.rbの修正です。

Ruby 2.7以上のみをサポートする事で不要になったRange#cover?用のモンキーパッチを削除しています。


Merge pull request #40995 from garrettdimon/patch-1

rails guideのAction Text Overviewの修正です。

Installationの項に、primary keyにUUIDを使用している場合の設定方法についての説明を追加しています。


Remove check for UnboundMethod#method_defined? bind_call

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

Ruby 2.7以上のみをサポートする事で不要になったbind_callが定義されているかどうかのチェック処理を削除しています。


Use bind_call(obj, ...) instead of bind(obj).call(...)

Performance/BindCall copを追加、及び、各ファイルにcopを適応しています。