なるようになるブログ

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

rails commit log流し読み(2016/07/07)

2016/07/07分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


[ci skip] Correct defaults in documentation for ActionDispatch::SSL

actionpack/lib/action_dispatch/middleware/ssl.rbのdocの修正です。

HSTSをsubdomainに適応するかどうかの設定のデフォルト値が誤っていたのを修正しています。


update doc for prefer require_relative over require + File.expand_path [ci skip]

rails guideのThe Rails Initialization ProcessRails on Rackの修正です。

各ファイルで、ファイルの読み込み処理にrequire + File.expand_pathではなくrequire_relativeを使用するようprefer require_relative over require + File.expand_pathで変更されたのですが、docが古いままになっていたので、最新の内容に合わせて修正しています。


Merge pull request #25707 from matthewd/double-reap

Active Recordの修正です。

同じコネクションが他のスレッドで使われている場合に、コネクションのexpireを出来ないようチェック処理を追加していまs.


Merge pull request #25691 from y-yagi/test_with_latest_rescue

GemfileGemfile.lockの修正です。

Active Jobのintegrationテストで使用するresqueのバージョンを1.26未満を使用するよう固定していたのを、githubのmasterを使用するよう修正しています。

resque 1.26でActive Jobのintegrationテストが動作しない問題(resqueがworkerの初期化後にloggerを変更してしまい、Active Jobが必要としているloggerが使用されず、ログ出力処理でエラーになってしまう)があったのですが、resqueのmasterブランチでは対応済みの為、masterを使用するよう修正しています。


Fix typo: caches_pages to caches_page.

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

caches_pagecaches_pagesにタイポしていたのを修正しています。


Pathname might not be always initialized.

activesupport/test/caching_test.rbの修正です。

不足していたpathnameのrequireを追加しています。