なるようになるブログ

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

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

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

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


Merge pull request #38662 from olivierlacan/doc/update-windows-setup

rails guideのGetting Started with Railsの修正です。

Windows向けのRuby環境構築方法の紹介で、Rails Installerを説明していたのをやめて、Ruby Installerについて説明するよう修正しています。Rails Installerはもうメンテされていない為。


Clarify index_by and index_with docs [ci skip]

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

index_byindex_withのdocに、keyと値がどのように扱われるかの説明を追加、及び、index_withにデフォルト値を指定した場合のexampleを追加しています。


Always respond to set_server_option since mysql2 0.5.0

activerecord/lib/active_record/connection_adapters/mysql/database_statements.rbactiverecord/test/cases/fixtures_test.rbの修正です。

set_server_optionが使えるかどうかのチェック処理を削除しています。mysql2 0.5.0以降、set_server_optionは必ず使用出来る為。


Avoid extra string allocation in the methods generated by eval

evalでメソッドを生成する際にfrozen_string_literalを指定するよう対応、及び、Symbolを使える箇所ではSymbolを使用して、Stringオブジェクト生成数を減らすようにしています。


[skip ci] How to run Action View and Action Pack unit test in serial

rails guideのContributing to Ruby on Railsの修正です。

Action ViewとAction Packのユニットテストで、パラレルテストを無効化する方法についての説明を記載したRunning Tests in Serialセクションを追加しています。