なるようになるブログ

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

rails commit log流し読み(2015/06/06)

2015/06/06分のコミットです。

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


Add the bug report templates to the Travis CI build

Travisの設定を変更し、バグ報告用テンプレートファイルをTravis CI buildで実行するよう対応しています。 バグ報告用テンプレートファイルは、元々、それ単体で動作するような書き方になていたので、単純にrubyコマンドでファイルを実行する形で対応しています。


Merge pull request #20442 from arunagw/aa-remove-warning-eager-load

railties/test/application/multiple_applications_test.rbの修正です。

initializersが実行される事を確認するテストで、AppTemplate::Application.newメソッドconfigの設定処理行っていたのですが、現在、AppTemplate::Application.newメソッドはhooksのロード処理が実行されないので、代わりにAppTemplate::Application.createメソッドを使用するよう修正しています。


Merge pull request #20444 from y-yagi/can_use_path_helper_method_in_console

railties/lib/rails/console/app.rbの修正です。

rails consoleappインスタンスがpath helperメソッドを呼び出せるよう、ActionDispatch::Integration::Sessionクラスのインスタンス作成後、インスタンスapp.routes.url_helpersapp.routes.mounted_helpersをextendしています。

Skip url_helpers instead of caching, speed up integration tests · rails/rails@0acd4a5 の対応でActionDispatch::Integration::Sessionクラスからroutesの情報が削除されてしまい、app.root_pathの用な形でhelperメソッドが呼び出せなくなっていたのですが、ちょっと不便だったので、呼び出せるよう対応しています。


Merge pull request #20423 from Erol/remove-assets-version-documentation

rails guideのConfiguring Rails Applicationsの修正です。

既に存在していないconfig.assets.versionについての説明を削除しています。


Output an error message and raise an error if bundler 1.10.x is not installed when reporting bugs

バグ報告用テンプレートファイルの修正です。

バグ報告用テンプレートファイルではinline Gemfileを使用するようになった為、使用するにはBundler 1.10以上が必要になっています。ただ、その点についてどこにも説明がされてなかったので、bundler/inlinerequireに失敗した場合、Bundler 1.10 以上が必要な旨適切なエラーメッセージを表示するよう対応しています。