2021/09/20分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
railties/test/generators/api_app_generator_test.rb
、
railties/test/generators/shared_generator_tests.rb
の修正です。
kredis
gemをデフォルトのGemfileに追加したSuggest Kredis + bcrypt as long as we're not minimalの影響でテストがコケてしまっていたのを修正しています。
Suggest a CSP that's compatible with Turbo + import map (#43227)
railties/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt
の修正です。
rails new
で生成されるCSPの設定で、content_security_policy_nonce_generator
の設定をランダムな値からセッションIDを使用するよう修正しています。ランダムな値だとデフォルトのetagが毎回変わってしまい(etagはレスポンスのHTMLに依存しており、nonceの値はHTMLに含まれる為)、これだとTurboの利点が減ってしまう(Turboはetagを元にページのキャッシュを行っている)為。
Only call wrap_parameters
if it's defined (#43259)
actionpack/lib/action_controller/railtie.rb
の修正です。
parameter wrapperのコードを移動した、Move the parameter wrapper code to the ActionController::Railtie classの影響でテストがコケてしまっていたのを修正しています。
Don't overwrite default opts in rich_text_area_tag (#43156)
actiontext/app/helpers/action_text/tag_helper.rb
の修正です。
rich_text_area_tag
メソッドで使用するdirect_upload_url
、blob_url_template
を引数で指定出来るよう修正しています。
Add Server Timing middleware (#36289)
Action Pack、railtiesの修正です。
Server-Timingヘッダーを返す為のミドルウェアを追加しています。 デフォルトではdevelopment envでのみヘッダーを返すようになっています。ミドルウェアの有効 / 無効はconfig.server_timing
で出来るようになっています。
Add CHANGELOG entry for ServerTiming middleware [ci skip]
actionpack/CHANGELOG.md
の修正です。
先のServer-Timingミドルウェアの対応について、CHANGELOGにエントリーを追加しています。
Add ActionDispatch::ServerTiming to the list of middlewares in test
railties/test/application/middleware_test.rb
の修正です。
デフォルトでロードされるmiddlewareの一覧にActionDispatch::ServerTiming
を追加しています。
Add missing configuration to middleware test
railties/test/application/middleware_test.rb
の修正です。
テストでconfig.server_timing = true
の指定が不足していたのを修正しています。
[ci skip] Add Bootstrap and Bulma to the CSS processors' list (#43254)
railties/lib/rails/generators/rails/app/app_generator.rb
の修正です。
CSS processorがサポートしているオプションのリストにBootstrap、Bulmaを追加しています。
Use debug 1.1+ for the debugger + log quieting
Gemfile
の修正です。。
debug
gemのバージョンを1.1.0に更新しています。