rails_email_preview 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/views/integrations/cms/_customize_cms_for_rails_email_preview.html.erb +2 -2
- data/app/views/layouts/rails_email_preview/email.html.erb +1 -1
- data/app/views/rails_email_preview/emails/_email_iframe.html.erb +1 -1
- data/lib/rails_email_preview/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a450eb498a21b1536fb7303ab557a844f909c50d7c45b1d50b890b1508f251a3
|
4
|
+
data.tar.gz: c8652983064bd0eb48a40cb717c8dc0115530ba0164aa5530d4459ad67c42a3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0886fbefb2c3403ba58f8c40938158945cc4a28e64ed93b08d934db1a480735a860fb884ac2ae222cd02b7bf6d76bb75fb25f4a6110fb2a9387d8a6af19f1707'
|
7
|
+
data.tar.gz: b8bc9ee6cb7b3e21549decdbb106d3872a71a23a3a52279100e8f382f20bdc2cd88fc5cb4e50a9f1107c5638f7a2522ed66ec9d6115949df014f5bc6f7ed620c
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ REP comes with two themes: a simple standalone theme, and a theme that uses [Boo
|
|
17
17
|
Add [![Gem Version][gem-badge]][gem] to Gemfile:
|
18
18
|
|
19
19
|
```ruby
|
20
|
-
gem 'rails_email_preview', '~> 2.2.
|
20
|
+
gem 'rails_email_preview', '~> 2.2.1'
|
21
21
|
```
|
22
22
|
|
23
23
|
Add an initializer and the routes:
|
@@ -15,9 +15,9 @@
|
|
15
15
|
data-edit-email-label="<%= t '.edit_email'%>"></div>
|
16
16
|
<% if adapter.cms_v2_plus? %>
|
17
17
|
<%= javascript_tag render(file: 'integrations/cms/comfy_v2_integration.js'),
|
18
|
-
**({nonce: true}
|
18
|
+
**(RailsEmailPreview.rails_supports_csp_nonce? ? {nonce: true} : {}) %>
|
19
19
|
<% else # CMS v1 %>
|
20
20
|
<%= javascript_tag render(file: 'integrations/cms/comfy_v1_integration.js'),
|
21
|
-
**({nonce: true}
|
21
|
+
**(RailsEmailPreview.rails_supports_csp_nonce? ? {nonce: true} : {}) %>
|
22
22
|
<% end %>
|
23
23
|
<% end %>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
background-color: white;
|
22
22
|
}
|
23
23
|
</style>
|
24
|
-
<%= javascript_tag **({nonce: true}
|
24
|
+
<%= javascript_tag **(RailsEmailPreview.rails_supports_csp_nonce? ? {nonce: true} : {}) do %>
|
25
25
|
document.addEventListener('DOMContentLoaded', window.parent.rep.iframeOnDOMContentLoaded, true);
|
26
26
|
<% end %>
|
27
27
|
</head>
|
@@ -8,5 +8,5 @@
|
|
8
8
|
|
9
9
|
<iframe id="rep-src-iframe" srcdoc="<%= @mail_body_html.to_str %>" seamless="seamless"></iframe>
|
10
10
|
<%= javascript_tag render(file: 'rails_email_preview/emails/email_iframe.js'),
|
11
|
-
**({nonce: true}
|
11
|
+
**(RailsEmailPreview.rails_supports_csp_nonce? ? {nonce: true} : {}) %>
|
12
12
|
</div>
|