CHANGELOG.md 2.6 KB
Newer Older
1
## Rails 6.0.2 (December 13, 2019) ##
2

3 4 5 6 7
*   Fix ActionMailer assertions don't work for parameterized mail with legacy delivery job.

    *bogdanvlviv*


G
v6.0.1  
George Claghorn 已提交
8
## Rails 6.0.1 (November 5, 2019) ##
G
George Claghorn 已提交
9 10 11 12

*   No changes.


13 14 15 16 17
## Rails 6.0.0 (August 16, 2019) ##

*   No changes.


18 19 20 21 22
## Rails 6.0.0.rc2 (July 22, 2019) ##

*   No changes.


23 24 25 26 27
## Rails 6.0.0.rc1 (April 24, 2019) ##

*   No changes.


E
eileencodes 已提交
28 29 30 31 32
## Rails 6.0.0.beta3 (March 11, 2019) ##

*   No changes.


33 34 35 36 37
## Rails 6.0.0.beta2 (February 25, 2019) ##

*   No changes.


38 39
## Rails 6.0.0.beta1 (January 18, 2019) ##

40 41 42 43
*   Deprecate `ActionMailer::Base.receive` in favor of [Action Mailbox](https://github.com/rails/rails/tree/master/actionmailbox).

    *George Claghorn*

44
*   Add `MailDeliveryJob` for delivering both regular and parameterized mail. Deprecate using `DeliveryJob` and `Parameterized::DeliveryJob`.
45 46 47

    *Gannon McGibbon*

48 49 50 51 52
*   Fix ActionMailer assertions not working when a Mail defines
    a custom delivery job class

    *Edouard Chin*

53 54 55 56 57
*   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*

58 59 60 61
*   `ActionDispatch::IntegrationTest` includes `ActionMailer::TestHelper` module by default.

    *Ricardo Díaz*

62 63 64 65 66
*   Add `perform_deliveries` to a payload of `deliver.action_mailer` notification.

    *Yoshiyuki Kinjo*

*   Change delivery logging message when `perform_deliveries` is false.
67 68 69

    *Yoshiyuki Kinjo*

70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
*   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*

87 88 89 90
*   Ensure mail gem is eager autoloaded when eager load is true to prevent thread deadlocks.

    *Samuel Cochran*

91 92 93
*   Perform email jobs in `assert_emails`.

    *Gannon McGibbon*
J
Jeremy Daer 已提交
94

95 96 97 98 99 100 101 102
*   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*

K
Kasper Timm Hansen 已提交
103
*   Rails 6 requires Ruby 2.5.0 or newer.
J
Jeremy Daer 已提交
104

K
Kasper Timm Hansen 已提交
105
    *Jeremy Daer*, *Kasper Timm Hansen*
106 107


108
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionmailer/CHANGELOG.md) for previous changes.