なるようになるブログ

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

rails commit log流し読み(2019/08/19)

2019/08/19分のコミットです。

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


Reduce String allocations while handling HTTP headers

actionpack/lib/action_dispatch/http/headers.rbの修正です。

Headers#env_nametr -> tr!+ -> prependに修正しオブジェクトの生成を減らすようにしています。


Reduce object allocations in TaggedLogging

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

TaggedLogging#push_tagsflatten -> flatten!reject -> reject!に修正しオブジェクトの生成を減らすようにしています。


No need to dup options hash where it's not modified

actionpack/lib/abstract_controller/translation.rbの修正です。

Translation#translateで不要な場合は引数のoptionsdupを行わないよう修正しています。


Reduce Array allocations while finding templates

actionview/lib/action_view/template/resolver.rbの修正です。

OptimizedFileSystemResolver#build_regexuniq -> uniq!map -> map!に修正しオブジェクトの生成を減らすようにしています。


:action is just a string

actionview/lib/action_view/template/resolver.rbの修正です。

PathResolver#build_queryで不要なRegexpのオブジェクトの生成を行わないよう修正しています。


Stop reopening ClassMethods and merge definitions

actionview/lib/action_view/view_paths.rbの修正です。

同じmodule内で複数module ClassMethodsを使用していたのを、一箇所にまとめるよう修正しています。


Merge pull request #36966 from utilum/update_puma

Gemfile.lockの出力です。

puma gemを最新のバージョンに更新しています。


Merge pull request #36969 from AhmedKamal20/patch-1

guides/source/_welcome.html.erbの修正です。

http://guides.rubyonrails.org/ のTOPに表示されるRailsのバージョンを6.0に修正しています。


Merge pull request #36967 from ohbarye/refactor_max_age_seconds

activestorage/test/dummy/config/environments/development.rbactivestorage/test/dummy/config/environments/test.rbの修正です。

Cache Controlを指定する処理から不要なsecondsメソッドの呼び出しを削除しています。


Fix minor typo in rails/engine docs [ci skip]

railties/lib/rails/engine.rbのdocの修正です。

Rails::Engine classのdoc内のグラマーの修正を行っています。