なるようになるブログ

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

rails commit log流し読み(2017/07/21)

2017/07/21分のコミットです。

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


Merge pull request #29851 from printercu/patch-1

railties/lib/rails/tasks/yarn.rakeの修正です。

yarn:yarn:install task実行時に--productionオプションを指定するよう修正しています。dev dependenciesを無視する為。


Remove log directory in test postprocessing

actionview/Rakefileの修正です。

rail-ujsのテストの後処理で、logディレクトリを削除するのに、FileUtils.rm_fを使用していたのを、FileUtils.rm_rfを使用するよう修正しています。


Updates Rails upgrade guide for 4.2 to 5.0 regarding the removal of ActionView::Helpers::RecordTagHelper

rails guideのA Guide for Upgrading Ruby on Railsの修正です。

ActionView::Helpers::RecordTagHelper moved to external gem (record_tag_helper)"の項を追加し、content_tag_fordiv_forメソッドが外部gem(record_tag_helper)になった事についての説明を追加しています。


Suppress documentation for content_tag_for and div_for since they were removed already

actionview/lib/action_view/helpers/record_tag_helper.rbのdocの修正です。

div_forcontent_tag_forメソッドに:nodoc:を指定して、API docに表示されないよう修正しています。外部gemに切り出されている為。


Fix false positive test related to wrong app root path.

railties/test/secrets_test.rbの修正です。

Rails.application.config.read_encrypted_secretsfalseを指定した場合にsecretesのparse処理が行われない事を確認するテストが正しく動作しないなかったのを修正しています。

Rails.application.config.rootの指定に誤りがあり、read_encrypted_secretsの値にかかわらずsecretesのparse処理が行われない状態になってしまっていた為、Rails.application.config.rootに正しいpathを指定するようにしています。