2018/06/29分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actionmailer/CHANGELOG.md
activejob/CHANGELOG.md
Tweak Previewer::PopplerPDFPreviewer#pdftoppm_exists?
activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb
の修正です。
Previewer::PopplerPDFPreviewer#pdftoppm_exists?
メソッドで@pdftoppm_exists
が定義されているかをチェックするのに、nil?
メソッドを使用していたのを、defined?
を使用するよ修正しています。
@pdftoppm_exists
は初期化がされていない為、nil?
でチェックするとRubyのwarning(instance variable @pdftoppm_exists not initialized
)が表示されてしまう為。
Add :expires_in option support for RedisCacheStore increment/decrement method.
activesupport/lib/active_support/cache/redis_cache_store.rb
の修正です。
RedisCacheStore
のincrement
/ decrement
メソッドにexpires_in
オプションを指定出来るよう修正しています。
指定されたcounterが存在しない時(新規に作成したcounterの場合)のみ、expires_in
オプションに指定された値がRedis EXPIREとして指定されるようになっています。
Incompatibility of Direct Uploads & Mirror Service
rails guideのActive Storage Overview
の修正です。
Mirror Service
の項に、Mirror Serviceを指定している場合Direct Uploadsは使えない旨注記を追加しています。
Merge pull request #33238 from dikond/explicit_action_mailer_deliver_later_queue_name
rails guideのAction Mailer Basics
の修正です。
Calling the Mailer
の項に、Action Mailerがデフォルトで使用するqueueについての説明、及び、そのqueueを変更する方法についての説明を追加しています。
Allow call assert_enqueued_with
and assert_enqueued_email_with
with no block
activejob/lib/active_job/test_helper.rb
の修正です。
assert_enqueued_email_with
、assert_enqueued_with
メソッドが、blockを指定しないでも正しく動作するよう修正しています。
Fix ActionMailer assert_enqueued_email_withの対応と異なり、blockの指定が無い場合はenqueueされているjobを即座に取得するようにし、assertionが通るように対応しています。
Fix docs of assert_no_emails
[ci skip]
actionmailer/lib/action_mailer/test_helper.rb
のdocの修正です。
assert_no_emails
のdoc内、assert_no_emails
がショートカットとなるメソッドについて説明している箇所で、引数の指定が不足していたのを修正しています。