All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Fix rspec matcher: #136
- Switch to mandrillus fork of the mandrill-api gem to allow for newer json gem support
- Add support for attaching unencoded content via @brunomperes
- Update offline adapter for testing to be more compatible with Rails 5 via @eric1234
- Update deprecated RSpec failure methods in RSpec helpers.
- Fixed an issue where deliver_later functionality was not working as intended when inheriting from the mailer classes. via @eric1234
- Support for for deliver_later and deliver_now using ActiveJob. via @BenRuns
- Optional RSpec helper (
MandrillMailer::RSpecHelper
) with custom matchers to simplify testing mailers like:expect(mailer).to be_from("email@example.com")
expect(mailer).to have_merge_data('USER_EMAIL' => user.email)
expect(mailer).to include_merge_var_content(user.email)
expect(mailer).to have_subject("Hello")
expect(mailer).to use_template('Example')
expect(mailer).to send_email_to('email@example.com')
- Allow default
view_content_link
on Mailer class.
- Fix a bug where defaults in merge vars were receiving the correct defaults (credit @kennethkalmer).
- Correct regression caused in 1.0.0 that broke defaults in mailers (credit: @etipton).
- Update manrill_api gem to 1.0.X.
- Change how interceptors work to be more flexible and not overwrite data if needed.
- Make both the template and message mailers compatible with all available attributes in the messages API.
- Deprecated
data
method on Mailer objects, replaced withmessage
.
- Correct a regression introduced in 0.6.0 that caused a TypeError exception.
when no
merge_vars
were provided as arguments tomandrill_mail
.
- Allow for default
merge_vars
to be set on the mailer class so that every method inherits them, just like the existing defaultfrom
andfrom_name
.
- Allow the mandrill api gem to be more flexible in the accepted version. which allows for the json gem to be updated internally.
- Made the file attachment and image apis compatible with mandrill api doc syntax.
- Offline support for the
MandrillMailer::Messenger
class. Thanks @arthurtalkgoal. - Support for the Mandrill Messages api by adding a
MandrillMailer::Messenger
class. Thanks @arthurtalkgoal.
to=
setter to template mailer.
- Reworked how defaults were stored so that they are accessible when being extended.
- Support for images array of embedded images.
- Declare
mandrill-api
gem as a runtime dependency to prevent load errors.
- Added
to
,from
andbcc
getters toTemplateMailer
(@renz45). - Documented how to use the gem with Sidekiq (@elado, @renz45).
- Documented fallback to Mandrill default subject on
mandrill_mail
subject (@Advocation).
- Fix
respond_to
method as it doesn't follow the way standard Ruby respond_to behaves (@tpaktop).
- Look at deliveries for offline testing.
- Intercept emails before they are sent in the config (see the specs for more info).
- Subaccount parameter.
- Default setting for preserve_recipients no longer defaults to true. Bumping a minor version since this might have been assumed to be default and not set by some.
- This change log.