なるようになるブログ

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

rails commit log流し読み(2018/05/03)

2018/05/03分のコミットです。

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


Stream blobs from disk

activestorage/app/controllers/active_storage/disk_controller.rbの修正です。

ActiveStorage::DiskControllerでdisk serviceからファイルをダウンロードする際に、イベントストリームを使用してchunk単位でダウンロード出来るよう修正しています。イベントストリームの実装はActionController::Liveを使用しています。


Add support for prefetch-src directive

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

prefetch-src directiveのサポートを追加しています。


Partly revert "Use https with weblog URI" [ci skip]

rails guideのRails Routing from the Outside Inの修正です。

weblog.rubyonrails.orgへのリンクをhttpsに修正した、Use https with weblog URIの対応で関係無いサイトへのリンクもhttpsに変更してしまっていたのを戻しています。


Use usual method definition instead of extracting args from array

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

Digestor#find_templateメソッドで引数をArrayとして受け取った後で引数を変数に代入していたのを、普通にメソッドの引数をArrayではなく個別の変数に変更しています。


Assert correct response body

activestorage/test/controllers/disk_controller_test.rbの修正です。

ActiveStorage::DiskControllerのテストで@response変数を直接参照していたのを、responseメソッド経由でアクセスするよう修正しています。そちらの方が推奨されている為、のはず。