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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4b2792359dab619a4a3d002e0e988589d22f608e4fe03e91781203179ed8bce
4
- data.tar.gz: b95c10950a144e7974fc80c38707aa1b257f4683dd1c45732d7e43c8c63ef9f2
3
+ metadata.gz: a450eb498a21b1536fb7303ab557a844f909c50d7c45b1d50b890b1508f251a3
4
+ data.tar.gz: c8652983064bd0eb48a40cb717c8dc0115530ba0164aa5530d4459ad67c42a3e
5
5
  SHA512:
6
- metadata.gz: 8427304dba19af417e56d27a538e11e7fc91e6e0f03f2edd26ce3efe5c44109d2067512e0faa7715cf4adbae7f19e8d2e6a8ccbbf5242204f7c0cf3a601af44f
7
- data.tar.gz: 7a2b96a6aa5010ff8b24aec87f6cdf54cc69eaa0cf4324ecd123b3157fd42ca3ea296a025383cd82b77876159618d738ce7786a241726d131061daac2398f003
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.0'
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} if RailsEmailPreview.rails_supports_csp_nonce?) %>
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} if RailsEmailPreview.rails_supports_csp_nonce?) %>
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} if RailsEmailPreview.rails_supports_csp_nonce?) do %>
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} if RailsEmailPreview.rails_supports_csp_nonce?) %>
11
+ **(RailsEmailPreview.rails_supports_csp_nonce? ? {nonce: true} : {}) %>
12
12
  </div>
@@ -1,3 +1,3 @@
1
1
  module RailsEmailPreview
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_email_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy