Skip to content

Releases: glebm/rails_email_preview

v2.2.3

10 Jan 09:33
Compare
Choose a tag to compare
  • Fixes Rails 7 compatibility. #88 #90

v2.2.2

23 Apr 17:58
Compare
Choose a tag to compare
  1. Fixes deprecation warnings on Rails 6.
  2. Fixes unintentional processing of email HTML as ERB.
    RCE vulnerability if preview body contains user input. #82

v2.2.1

03 Mar 14:56
Compare
Choose a tag to compare

Fixes support for Rails <5.2 (regression introduced in v2.2.0).

v2.2.0

03 Mar 14:48
Compare
Choose a tag to compare

Adds CSP nonce to inline script tags if CSP is enabled on Rails v5.2+.

v2.0.1

12 May 18:42
Compare
Choose a tag to compare

Fixes the wrong Rails dependency in the gemspec. v2.0.0 yanked.

v2.0.0

12 May 18:20
Compare
Choose a tag to compare

Drops support for all versions of Rails below 4.2.
Fixes Rails 5 deprecation warnings.

v1.0.3

12 May 18:11
Compare
Choose a tag to compare

Rails 5 support.

v1.0.2

12 May 18:10
Compare
Choose a tag to compare

Added a couple of variables for further default theme customization.

v1.0.1

07 Apr 09:27
Compare
Choose a tag to compare
  • Adds RailsEmailPreview.find_preview_classes(dir) that also finds classes in subdirectories.

  • Changes the default initializer to load classes like this:

    RailsEmailPreview.preview_classes =
        RailsEmailPreview.find_preview_classes('app/mailer_previews')

v1.0.0

04 Apr 22:15
Compare
Choose a tag to compare

Breaking: REP now uses a lightweight default theme with no dependencies by default.

If you are using REP with the Bootstrap 3 theme, here are the configuration changes you need to make:

  • @import "rails_email_preview/bootstrap3" instead of rails_email_preview/application.

  • Add the following styles configuration to your REP initializer:

    config.style.merge!(
        btn_active_class_modifier: 'active',
        btn_danger_class:          'btn btn-danger',
        btn_default_class:         'btn btn-default',
        btn_group_class:           'btn-group btn-group-sm',
        btn_primary_class:         'btn btn-primary',
        form_control_class:        'form-control',
        list_group_class:          'list-group',
        list_group_item_class:     'list-group-item',
        row_class:                 'row',
    )

The following REP internal class names have changed:

  • .rep-email-options is now .rep--email-options.
  • .rep-headers-list is now .rep--headers-list.
  • .rep-email-show is now .rep--email-show.
  • .breadcrumb is now .rep--breadcrumbs.
  • .breadcrumb .active is now .rep--breadcrumbs__active.
  • .rep-send-to-wrapper is gone, but now there is .rep--send-to-form.

All REP views are now wrapped in a div with the rep--main-container class.

REP no longer depends on slim and slim-rails.

Fixed minor email locale handling bugs in navigation and the CMS integration.