2019-02-25 17:45:04 -05:00
|
|
|
## Rails 6.0.0.beta2 (February 25, 2019) ##
|
|
|
|
|
|
|
|
* No changes.
|
|
|
|
|
|
|
|
|
2019-01-18 15:42:12 -05:00
|
|
|
## Rails 6.0.0.beta1 (January 18, 2019) ##
|
|
|
|
|
2018-12-27 21:15:10 -05:00
|
|
|
* Deprecate `ActionMailer::Base.receive` in favor of [Action Mailbox](https://github.com/rails/rails/tree/master/actionmailbox).
|
|
|
|
|
|
|
|
*George Claghorn*
|
|
|
|
|
2018-11-30 17:33:35 -05:00
|
|
|
* Add `MailDeliveryJob` for delivering both regular and parameterized mail. Deprecate using `DeliveryJob` and `Parameterized::DeliveryJob`.
|
2018-11-01 16:32:01 -04:00
|
|
|
|
|
|
|
*Gannon McGibbon*
|
|
|
|
|
2018-11-21 17:10:18 -05:00
|
|
|
* Fix ActionMailer assertions not working when a Mail defines
|
|
|
|
a custom delivery job class
|
|
|
|
|
|
|
|
*Edouard Chin*
|
|
|
|
|
2015-12-08 06:28:00 -05:00
|
|
|
* Mails with multipart `format` blocks with implicit render now also check for
|
|
|
|
a template name in options hash instead of only using the action name.
|
|
|
|
|
|
|
|
*Marcus Ilgner*
|
|
|
|
|
2018-09-13 09:58:56 -04:00
|
|
|
* `ActionDispatch::IntegrationTest` includes `ActionMailer::TestHelper` module by default.
|
|
|
|
|
|
|
|
*Ricardo Díaz*
|
|
|
|
|
2018-09-09 07:16:20 -04:00
|
|
|
* Add `perform_deliveries` to a payload of `deliver.action_mailer` notification.
|
|
|
|
|
|
|
|
*Yoshiyuki Kinjo*
|
|
|
|
|
|
|
|
* Change delivery logging message when `perform_deliveries` is false.
|
2018-09-08 04:14:12 -04:00
|
|
|
|
|
|
|
*Yoshiyuki Kinjo*
|
|
|
|
|
Allow call `assert_enqueued_with` and `assert_enqueued_email_with` with no block
Example of `assert_enqueued_with` with no block
```ruby
def test_assert_enqueued_with
MyJob.perform_later(1,2,3)
assert_enqueued_with(job: MyJob, args: [1,2,3], queue: 'low')
MyJob.set(wait_until: Date.tomorrow.noon).perform_later
assert_enqueued_with(job: MyJob, at: Date.tomorrow.noon)
end
```
Example of `assert_enqueued_email_with` with no block:
```ruby
def test_email
ContactMailer.welcome.deliver_later
assert_enqueued_email_with ContactMailer, :welcome
end
def test_email_with_arguments
ContactMailer.welcome("Hello", "Goodbye").deliver_later
assert_enqueued_email_with ContactMailer, :welcome, args: ["Hello", "Goodbye"]
end
```
Related to #33243
2018-06-29 08:17:26 -04:00
|
|
|
* Allow call `assert_enqueued_email_with` with no block.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
```
|
|
|
|
def test_email
|
|
|
|
ContactMailer.welcome.deliver_later
|
|
|
|
assert_enqueued_email_with ContactMailer, :welcome
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_email_with_arguments
|
|
|
|
ContactMailer.welcome("Hello", "Goodbye").deliver_later
|
|
|
|
assert_enqueued_email_with ContactMailer, :welcome, args: ["Hello", "Goodbye"]
|
|
|
|
end
|
|
|
|
```
|
|
|
|
|
|
|
|
*bogdanvlviv*
|
|
|
|
|
2018-05-23 16:50:36 -04:00
|
|
|
* Ensure mail gem is eager autoloaded when eager load is true to prevent thread deadlocks.
|
|
|
|
|
|
|
|
*Samuel Cochran*
|
|
|
|
|
2018-03-13 15:17:43 -04:00
|
|
|
* Perform email jobs in `assert_emails`.
|
|
|
|
|
|
|
|
*Gannon McGibbon*
|
2018-02-17 16:02:18 -05:00
|
|
|
|
2018-05-30 17:36:24 -04:00
|
|
|
* Add `Base.unregister_observer`, `Base.unregister_observers`,
|
|
|
|
`Base.unregister_interceptor`, `Base.unregister_interceptors`,
|
|
|
|
`Base.unregister_preview_interceptor` and `Base.unregister_preview_interceptors`.
|
|
|
|
This makes it possible to dynamically add and remove email observers and
|
|
|
|
interceptors at runtime in the same way they're registered.
|
|
|
|
|
|
|
|
*Claudio Ortolina*, *Kota Miyake*
|
|
|
|
|
2018-12-19 15:09:34 -05:00
|
|
|
* Rails 6 requires Ruby 2.5.0 or newer.
|
2018-02-17 16:02:18 -05:00
|
|
|
|
2018-12-19 15:09:34 -05:00
|
|
|
*Jeremy Daer*, *Kasper Timm Hansen*
|
2017-08-24 01:13:54 -04:00
|
|
|
|
|
|
|
|
2018-01-30 18:51:17 -05:00
|
|
|
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionmailer/CHANGELOG.md) for previous changes.
|