なるようになるブログ

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

rails commit log流し読み(2019/12/13)

2019/12/13分のコミットです。

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


Merge pull request #37847 from pwim/action-mailbox-mail-ext-tests

actionmailbox/test/unit/mail_ext/addresses_test.rbの修正です。

Action Mailboxで拡張しているMailクラスについてのテストを追加しています。


Clarify documentation by removing charged words

rails guideの修正です。

各ガイドの説明から、'just'、'simply'、'easy'を使用していた言い回しを削除しています。実際にそこに説明されている内容が簡単に出来なかった場合に、イライラさせてしまう可能性がある為、との事です。


Merge pull request #37073 from woahdae/fix-hierarchical-route-options

actionpack/lib/action_dispatch/routing/mapper.rbの修正です。

routeにoptional scopeのみを複数指定(e.g. (:a)(:b))、かつ、optionが一部だけ指定された場合に、不正なパスが生成されてしまうバグがあったのを修正しています。


Merge pull request #37075 from woahdae/fix-multiple-choice-route-options

actionpack/lib/action_dispatch/routing/mapper.rbの修正です。

routeにoptional scope + pathを指定(e.g. (:a)(foo/:b))、かつ、pathが指定されたscope optionだけが指定された場合に、不正なパスが生成されてしまうバグがあったのを修正しています。


Reorder active support instrumentation guide (#37639)

rails guideのActive Support Instrumentationの修正です。

(一番重要なだと思われる)Subscribing to an eventがページ上部に来るように構成を変更しています。


Merge pull request #37928 from CGA1123/fix-race-in-action-view

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

ActionView::LookupContext::DetailsKey.view_context_classメソッド内のview_context_classの取得処理がスレッドセーフになるよう修正しています。


Strip default_ prefix from retry_jitter config to match conventions

Merge pull request #37923 from cpruitt/add-config-for-activejob-retry-jitterで追加されたdefault_retry_jitterretry_jitterにリネームにしています。


Set default directly with default:

activejob/lib/active_job/exceptions.rbの修正です。

retry_jitterのデフォルト値の指定をclass_attributedefaultオプションで指定するよう修正しています。


Fix deprecation being thrown at boot time:

Active Jobの修正です。

callback chainがhaltした場合にafter_enqueue / after_perform callbackを実行しないよう修正した、Don't run AJ after_enqueue / after_perform when chain is halted:の対応で、job classがActiveJob::Base classを継承したタイミングでdeprecateメッセージを出力するようになっていたのを、実際にjobがabortするよになるタイミングでdeprecateメッセージを出力するよう修正しています。


Generate 45% faster query methods

activerecord/lib/active_record/relation/query_methods.rbの修正です。

query methodsでdefault値をメソッド定義時に保持するよにうにして、メソッド実行時にDEFAULT_VALUESへアクセスしないよう修正しています。処理高速化の為。


Workaroud to address apt-get update at GitHub Actions

.github/workflows/rubocop.ymlの修正です。

GitHub Actionsでapt-getする前に特定のパッケージ用のsource listを削除しています。それらのsouce listからのデータ取得に失敗する為。

なお、この記事記載時点ではGitHub側で問題修正済みとの事です。

参考: https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/m-p/41199#M4529.NET Core Linux Feeds -- Now available


Fixes typo in autoloading_and_reloading_constants guide [ci skip]

rails guideのAutoloading and Reloading Constants (Zeitwerk Mode)の修正です。

app配下のディレクトリ名をタイポしている箇所があったのを修正しています。