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の値に埋め込まれた対応についての説明を追加しています。