なるようになるブログ

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

rails commit log流し読み(2019/11/14)

2019/11/14分のコミットです。

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


Relocate require in AS::Deprecation

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

不足していたconcurrent/atomic/thread_local_varのrequireを追加しています。


Remove redundant env.delete in scrub_env!

actionpack/lib/action_controller/test_case.rbの修正です。

scrub_env!メソッドで重複して行われていたenvのdelete処理を削除しています。


Address all possible Performance/StartWith / Performance/EndWith violations

rubocop-performance gemのバージョンを1.5.1に更新しています。

rubocop-performance gem 1.5.1でRegexp#match?Regexp#=~Performance/StartWithPerformance/EndWith copのチェック対象になった為、それらの使用している箇所をstart_with?end_with?メソッドを使用するよう修正しています。


Fix undefined method `start_with?' for :to_json

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

先程のstart_with? / end_with?メソッドの修正の影響で、レシーバーがSymbolの処理がエラーになるようになってしまったので、to_sでStringに変換してからチェックを行うよう修正しています。


Fix ActiveStorage::Blob#service method redefined warning

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

ActiveStorage::Blob#serviceの再定義のwarningが出ていたのを対応しています。


Remove Resolver autoload

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

Remove ConnectionAdapters::Resolver in favor of DatabaseConfigurationsで削除したResolverクラスのautoload処理が残っていたのを削除しています。


Remove unused require

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

使用していないactive_support/core_ext/array/extractのrequireを削除しています。


Merge pull request #37683 from soartec-lab/add_token_authentication_to_guide

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

HTTP Authenticationsについて説明している箇所に、HTTP token authenticationについて説明したToken Authenticationセクションを追加しています。