2018/03/14分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actionmailer/CHANGELOG.md
Merge pull request #32222 from bogdanvlviv/update-ruby_on_rails_5_2_release_notes
rails guideのRuby on Rails 5.2 Release Notesの修正です。
Major Featuresの各項目に詳細な説明を追加、及び、各コンポーネントの項に変更内容を記載しています。
Merge pull request #32153 from bogdanvlviv/rails-routes-32130
actionpack/lib/action_dispatch/routing.rb、
actionpack/lib/action_dispatch/routing/inspector.rbの修正です。
rails routesにgrepオプションを指定、かつ、routesが見つからなかった場合のエラーメッセージがNo routes were found for this controller.になっていたのを、No routes were found for this grep pattern.に修正しています。
Merge pull request #32231 from gmcgibbon/perform_email_jobs_in_assert_emails
actionmailer/lib/action_mailer/test_helper.rbの修正です。
assert_emailsメソッド内でenqueueされたmail jobを実行するようにしています。
元々は呼び出す側でperform_enqueud_jobsメソッドを実行しないとenqueueされたメールについてはassert_emailsで確認出来なかったのですが、この対応によりそれが不要になります。
# before assert_emails(1) do perform_enqueud_jobs(only: ActionMailer::DeliveryJob) do SomeMailer.send_mail.deliver_later end end # after assert_emails(1) { SomeMailer.send_mail.deliver_later }
Remove changelog header for unreleased version
各CHANGELOGからまだリリースされていないバージョンのヘッダー(Rails 6.0.0.alpha (Unreleased))を削除しています。
Extract details to methods to clarify command.
railties/lib/rails/commands/routes/routes_command.rbの修正です。
inspector及びformatterの取得処理をメソッドに切り出しています。
Rely on Rails::Command's help output.
actionpack/lib/action_dispatch/routing/inspector.rb、
railties/lib/rails/commands/routes/routes_command.rbの修正です。
rails routesのhelpを表示するのに独自にメソッドを定義していたのを、thorが提供しているhelp表示の為の仕組みを使用するよう修正しています。
actionpack/test/dispatch/routing/inspector_test.rbの修正です。
先のhelp表示対応の影響でテストが壊れてしまっていたのを修正しています。
合わせて、テスト内でしかhelperメソッドの可視性をprivateに変更、メソッドの引数をキーワード引数に変更等を行っています。
Remove entry that was backported to Rails 5.1.3. [ci skip]
rails guideのRuby on Rails 5.2 Release Notesの修正です。
railtiesの項から5.1系にバックポート済みのエントリーを削除しています。
Pass the skip_pipeline option in image_submit_tag
actionview/lib/action_view/helpers/form_tag_helper.rbの修正です。
image_submit_tagメソッドにskip_pipelineオプションを指定しても無視されてしまうバグがあったのを修正しています。
Update "Upgrading from Rails 5.1 to Rails 5.2" [ci skip]
rails guideのUpgrading Ruby on Rails、及び、Configuring Rails Applicationsの修正です。
Upgrading from Rails 5.1 to Rails 5.2の項に、expiry及びencrypted cookieで、有効期限がcookieの値に埋め込まれた対応についての説明を追加しています。