2019/12/10分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activejob/CHANGELOG.md
- Fix enqueuing and performing incorrect logging message.
- Don't run
after_enqueueandafter_performcallbacks if the callback chain is halted.
- A database URL can now contain a querystring value that contains an equal sign. This is needed to support passing PostgresSQL
options. - Retain explicit selections on the base model after applying
includesandjoins.
actionpack/lib/action_dispatch/routing/mapper.rbの修正です。
rubocopの設定に違反している箇所があったのを修正しています
Fix ActiveJob logging when callback chain is halted:
activejob/lib/active_job/instrumentation.rb、
activejob/lib/active_job/log_subscriber.rbの修正です。
jobのenqueue / performに失敗した場合(callbackでabortした等)もそれらが成功した旨ログが出力されていたのを、失敗した場合は失敗した旨ログを出力する("Failed enqueuing..." / "Error performing...")よう修正しています。
Add myself of codeowner of the rubocop config
.github/CODEOWNERSの修正です.
rubocop.ymlのownerとしてrafaelfrancaを追加しています。
Don't run AJ after_enqueue / after_perform when chain is halted:
activejob/lib/active_job/callbacks.rbの修正です。
callback chainがhaltした場合、after_enqueue / after_perform callbackを実行しないよう修正しています。
非互換になってしまう為、デフォルトでは6.0までと同じ挙動になっています。新しい挙動を有効化したい場合、config.active_job.skip_after_callbacks_if_terminatedにtrueを指定する必要があります。
Merge pull request #37798 from Edouard-chin/ec-sqlite3-connection-transaction
activerecord/lib/active_record/connection_adapters/sqlite3/database_statements.rb、
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rbの修正です。
SQLiteで分離レベルがREAD UNCOMMITTEDなtranactionを行えるよう修正しています。
**
Database URL supports query value with equal sign
activerecord/lib/active_record/database_configurations/connection_url_resolver.rbの修正です。
Database URLのquery valueに=を含められるよう修正しています。これにより、postgresql://localhost/railsdevapp_development?options=-cmysetting.debug=onのような指定が出来るようになっています。
Merge pull request #35210 from pjrebsch/fix-joins-include-select
activerecord/lib/active_record/associations/join_dependency.rbの修正です。
selectで指定した値が、includes + joinsした後にattributesに追加されない、というバグがあったのを修正しています。
Fix input value not properly applied:
actionview/lib/action_view/helpers/tag_helper.rbの修正です。
Add support for conditional values to TagBuilderの対応により、tagのinput valueにArrayを指定した場合にそれが正しく指定されないバグがあったのを修正しています。
actionpack/lib/action_controller/metal/conditional_get.rbのdocの修正です。
etagメソッドのdoc内のexampleコードでオプションの指定が不足していたのを修正しています。
Merge pull request #37919 from joelhawksley/controller-render-in
actionview/lib/action_view/renderer/renderer.rb、
actionview/lib/action_view/rendering.rbの修正です。
Introduce support for ActionView::Componentでviewのrenderに対応したのと同様に、controllerのrenderでobjectを渡せるよう修正しています。
Merge pull request #37918 from joelhawksley/class_names_helper
actionview/lib/action_view/helpers/tag_helper.rbの修正です。
tagのclass nameを指定するためのclass_names helperを追加しています。
<div class="<%= item.for_sale? ? 'active' : '' %>">
元々上記のように指定していたのを、
<div class="<%= class_names(active: item.for_sale?) %>">
class_namesメソッドを使用すると上記のように指定出来るようになっています。