rails_email_preview 2.2.2 → 2.2.3

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: aaaf45ad4fcd330e496328f76788e58710db3590a6199c2901c73d67be2cca32
4
- data.tar.gz: 8ea0039cfe841872b2a296b9c80a6ecf6a9e44caef4a3460cc44223383ebde96
3
+ metadata.gz: c1864feda5aae84b740f6378f7e7906045c8b2f10e058a4a87c9717bd443bf3e
4
+ data.tar.gz: 4bc4b6e8734df121bc05419c7ecf3d5c352a2a661ac6d503eb7473ae63ca09c8
5
5
  SHA512:
6
- metadata.gz: edd3606e8fcbf86f88914f0922e8855da7b6e7f806bcb3d74c25333440e158176d3d7eb030341e5e0f06d4c33c810cc37c865d9a2acb15e6e09a3f589fb6403e
7
- data.tar.gz: af98b348d045ba1bec8beee49acd048ccd5acaaa30a37b64ac210d6dbd75b35046339ef02f3a18d9eedf360251636f7060dfdbe3b3f2750116e4faf0cb552041
6
+ metadata.gz: f1d67360921a46cc2b9107ab4a7bec595176815917cbcd98d6cd38dcd443b121ad9d52a27a23cd35762aad0b1b8fab8b586de95e7c517bc0618a32d8f2eacaf5
7
+ data.tar.gz: b1e627289aa21a45b6635943d149a2f5cfed5e888ea07f94bf02f3d0017aa7f6560e731ba139520215a47d073facb1790dad6d49ee5ae66f51d970efc4386e5d
data/Gemfile CHANGED
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  gem 'rails'
6
+ gem 'i18n-tasks'
6
7
 
7
- eval_gemfile './shared.gemfile'
8
+ eval_gemfile './shared.gemfile'
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rails Email Preview [![Build Status][travis-badge]][travis] [![Test Coverage][coverage-badge]][coverage] [![Code Climate][codeclimate-badge]][codeclimate] [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/glebm/rails_email_preview?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1
+ # Rails Email Preview [![Build Status][badge-ci]][ci] [![Test Coverage][coverage-badge]][coverage] [![Code Climate][codeclimate-badge]][codeclimate] [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/glebm/rails_email_preview?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2
2
 
3
3
  Preview email in the browser with this Rails engine. Compatible with Rails 4.2+.
4
4
 
@@ -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.2'
20
+ gem 'rails_email_preview', '~> 2.2.3'
21
21
  ```
22
22
 
23
23
  Add an initializer and the routes:
@@ -269,11 +269,11 @@ This project rocks and uses MIT-LICENSE.
269
269
  [rep-nav-screenshot]: https://raw.github.com/glebm/rails_email_preview/master/doc/img/rep-nav.png "Email List Screenshot"
270
270
  [rep-show-screenshot]: https://raw.github.com/glebm/rails_email_preview/master/doc/img/rep-show.png "Show Email Screenshot"
271
271
  [rep-show-default-screenshot]: https://raw.github.com/glebm/rails_email_preview/master/doc/img/rep-show-default.png "Show Email Screenshot (default styles)"
272
- [travis]: http://travis-ci.org/glebm/rails_email_preview
273
- [travis-badge]: http://img.shields.io/travis/glebm/rails_email_preview.svg
272
+ [ci]: https://github.com/glebm/rails_email_preview/actions/workflows/tests.yml
273
+ [badge-ci]: https://github.com/glebm/rails_email_preview/actions/workflows/tests.yml/badge.svg
274
274
  [gem]: https://rubygems.org/gems/rails_email_preview
275
275
  [gem-badge]: http://img.shields.io/gem/v/rails_email_preview.svg
276
- [codeclimate]: https://codeclimate.com/github/glebm/rails_email_preview
277
- [codeclimate-badge]: http://img.shields.io/codeclimate/github/glebm/rails_email_preview.svg
278
- [coverage]: https://codeclimate.com/github/glebm/rails_email_preview
279
- [coverage-badge]: https://codeclimate.com/github/glebm/rails_email_preview/badges/coverage.svg
276
+ [codeclimate]: https://codeclimate.com/github/glebm/rails_email_preview/maintainability
277
+ [codeclimate-badge]: https://api.codeclimate.com/v1/badges/b2b4b63c3f63e316b1e4/maintainability
278
+ [coverage]: https://codeclimate.com/github/glebm/rails_email_preview/test_coverage
279
+ [coverage-badge]: https://api.codeclimate.com/v1/badges/b2b4b63c3f63e316b1e4/test_coverage
@@ -2,11 +2,11 @@
2
2
  <html>
3
3
  <head>
4
4
  <title><%= t('.head_title') %></title>
5
- <%= stylesheet_link_tag 'rails_email_preview/application', 'data-turbolinks-track': 'reload' %>
5
+ <%= stylesheet_link_tag 'rails_email_preview/application', 'data-turbolinks-track' => 'reload' %>
6
6
  <%= csrf_meta_tag %>
7
7
  <%= csp_meta_tag if RailsEmailPreview.rails_supports_csp_nonce? %>
8
8
  <%= javascript_include_tag 'rails_email_preview/application',
9
- 'data-turbolinks-track': 'reload' %>
9
+ 'data-turbolinks-track' => 'reload' %>
10
10
  <%= favicon_link_tag 'rails_email_preview/favicon.png' %>
11
11
  <%= yield(:head) %>
12
12
  </head>
@@ -7,6 +7,6 @@
7
7
  </div>
8
8
 
9
9
  <iframe id="rep-src-iframe" srcdoc="<%= @mail_body_html.to_str %>" seamless="seamless"></iframe>
10
- <%= javascript_tag render(template: 'rails_email_preview/emails/email_iframe.js'),
10
+ <%= javascript_tag render(template: 'rails_email_preview/emails/email_iframe', formats: [:js]),
11
11
  **(RailsEmailPreview.rails_supports_csp_nonce? ? {nonce: true} : {}) %>
12
12
  </div>
@@ -8,3 +8,6 @@ data:
8
8
  yaml:
9
9
  write:
10
10
  line_width: -1
11
+ ignore_inconsistent_interpolations:
12
+ - 'rep.base.email.one'
13
+ - 'rep.base.mailer.one'
@@ -1,29 +1,12 @@
1
1
  ---
2
2
  de:
3
- rep:
4
- base:
5
- email:
6
- one: 1 E-Mail
7
- other: "%{count} E-Mails"
8
- mailer:
9
- one: 1 Mailer
10
- other: "%{count} Mailer"
11
- in: in
12
- loading: Lade...
13
- test_deliver:
14
- no_delivery_method: Bitte setze 'config.action_mailer.delivery_method' um E-Mails in der „%{environment}“ Umgebung zu senden.
15
- provide_email: An welche Adresse senden?
16
- sent_notice: Senden an %{address} mit %{delivery_method}
17
- headers:
18
- subject: Betreff
19
- from: Aus
20
- to: Zu
21
- reply_to: Beantworten
22
- cc: CC
23
- bcc: BCC
24
- attachments: Anhänge
25
- errors:
26
- email_missing_format: Format fehlenden
3
+ integrations:
4
+ cms:
5
+ customize_cms_for_rails_email_preview:
6
+ edit_email: E-Mail bearbeiten
7
+ view_link: Anzeigen
8
+ errors:
9
+ site_missing: Bitte erstellen Sie eine CMS-Website für %{locale} zuerst. Bei der Verwendung von mehreren Gebietsschemas sollte der Standort gespiegelt werden.
27
10
  layouts:
28
11
  rails_email_preview:
29
12
  application:
@@ -32,16 +15,33 @@ de:
32
15
  emails:
33
16
  index:
34
17
  list_title: Anwendungs E-Mails
35
- show:
36
- breadcrumb_list: E-Mails
37
18
  send_form:
38
19
  send_are_you_sure: Diese Aktion wird diese E-Mail wirklich versenden. Bist du sicher?
39
20
  send_btn: Senden an
40
21
  send_recipient_placeholder: E-Mails
41
- integrations:
42
- cms:
43
- customize_cms_for_rails_email_preview:
44
- edit_email: E-Mail bearbeiten
45
- view_link: Anzeigen
46
- errors:
47
- site_missing: Bitte erstellen Sie eine CMS-Website für %{locale} zuerst. Bei der Verwendung von mehreren Gebietsschemas sollte der Standort gespiegelt werden.
22
+ show:
23
+ breadcrumb_list: E-Mails
24
+ rep:
25
+ base:
26
+ email:
27
+ one: 1 E-Mail
28
+ other: "%{count} E-Mails"
29
+ in: in
30
+ loading: Lade...
31
+ mailer:
32
+ one: 1 Mailer
33
+ other: "%{count} Mailer"
34
+ errors:
35
+ email_missing_format: Format fehlenden
36
+ headers:
37
+ attachments: Anhänge
38
+ bcc: BCC
39
+ cc: CC
40
+ from: Aus
41
+ reply_to: Beantworten
42
+ subject: Betreff
43
+ to: Zu
44
+ test_deliver:
45
+ no_delivery_method: Bitte setze 'config.action_mailer.delivery_method' um E-Mails in der „%{environment}“ Umgebung zu senden.
46
+ provide_email: An welche Adresse senden?
47
+ sent_notice: Senden an %{address} mit %{delivery_method}
@@ -1,29 +1,12 @@
1
1
  ---
2
2
  en:
3
- rep:
4
- headers:
5
- subject: Subject
6
- from: From
7
- to: To
8
- reply_to: Reply to
9
- cc: CC
10
- bcc: BCC
11
- attachments: Attachments
12
- base:
13
- email:
14
- one: 1 email
15
- other: "%{count} emails"
16
- mailer:
17
- one: 1 mailer
18
- other: "%{count} mailers"
19
- in: in
20
- loading: Loading...
21
- test_deliver:
22
- no_delivery_method: Please set 'config.action_mailer.delivery_method' to send emails in '%{environment}' environment
23
- provide_email: Send to which address?
24
- sent_notice: Sent to %{address} via %{delivery_method}
25
- errors:
26
- email_missing_format: Format missing
3
+ integrations:
4
+ cms:
5
+ customize_cms_for_rails_email_preview:
6
+ edit_email: Editing email
7
+ view_link: View
8
+ errors:
9
+ site_missing: Please create a CMS site for %{locale} first. When using multiple locales the site should be Mirrored.
27
10
  layouts:
28
11
  rails_email_preview:
29
12
  application:
@@ -32,16 +15,33 @@ en:
32
15
  emails:
33
16
  index:
34
17
  list_title: Application Emails
35
- show:
36
- breadcrumb_list: Emails
37
18
  send_form:
38
19
  send_are_you_sure: This will actually send this email. Are you sure?
39
20
  send_btn: Send to
40
21
  send_recipient_placeholder: Email
41
- integrations:
42
- cms:
43
- errors:
44
- site_missing: Please create a CMS site for %{locale} first. When using multiple locales the site should be Mirrored.
45
- customize_cms_for_rails_email_preview:
46
- edit_email: Editing email
47
- view_link: View
22
+ show:
23
+ breadcrumb_list: Emails
24
+ rep:
25
+ base:
26
+ email:
27
+ one: 1 email
28
+ other: "%{count} emails"
29
+ in: in
30
+ loading: Loading...
31
+ mailer:
32
+ one: 1 mailer
33
+ other: "%{count} mailers"
34
+ errors:
35
+ email_missing_format: Format missing
36
+ headers:
37
+ attachments: Attachments
38
+ bcc: BCC
39
+ cc: CC
40
+ from: From
41
+ reply_to: Reply to
42
+ subject: Subject
43
+ to: To
44
+ test_deliver:
45
+ no_delivery_method: Please set 'config.action_mailer.delivery_method' to send emails in '%{environment}' environment
46
+ provide_email: Send to which address?
47
+ sent_notice: Sent to %{address} via %{delivery_method}
@@ -1,29 +1,12 @@
1
1
  ---
2
2
  es:
3
- rep:
4
- headers:
5
- subject: Asunto
6
- from: De
7
- to: A
8
- reply_to: Responder a
9
- cc: CC
10
- bcc: BCC
11
- attachments: Adjuntos
12
- base:
13
- email:
14
- one: 1 email
15
- other: "%{count} emails"
16
- mailer:
17
- one: 1 mailer
18
- other: "%{count} mailers"
19
- in: en
20
- loading: Cargando...
21
- test_deliver:
22
- no_delivery_method: Por favor configura 'config.action_mailer.delivery_method' para enviar correos en el entorno de '%{environment}'
23
- provide_email: ¿A que dirección?
24
- sent_notice: Enviado a %{address} vía %{delivery_method}
25
- errors:
26
- email_missing_format: Falta formato
3
+ integrations:
4
+ cms:
5
+ customize_cms_for_rails_email_preview:
6
+ edit_email: Editando el email
7
+ view_link: Ver
8
+ errors:
9
+ site_missing: Por favor, primero crea un CMS para %{locale}. Cuando estes usando varios idiomas el site debería estar
27
10
  layouts:
28
11
  rails_email_preview:
29
12
  application:
@@ -32,16 +15,33 @@ es:
32
15
  emails:
33
16
  index:
34
17
  list_title: Emails de la aplicación
35
- show:
36
- breadcrumb_list: Emails
37
18
  send_form:
38
19
  send_are_you_sure: Esto enviara el email. ¿Estás seguro?
39
20
  send_btn: Enviar a
40
21
  send_recipient_placeholder: Email
41
- integrations:
42
- cms:
43
- errors:
44
- site_missing: Por favor, primero crea un CMS para %{locale}. Cuando estes usando varios idiomas el site debería estar
45
- customize_cms_for_rails_email_preview:
46
- edit_email: Editando el email
47
- view_link: Ver
22
+ show:
23
+ breadcrumb_list: Emails
24
+ rep:
25
+ base:
26
+ email:
27
+ one: 1 email
28
+ other: "%{count} emails"
29
+ in: en
30
+ loading: Cargando...
31
+ mailer:
32
+ one: 1 mailer
33
+ other: "%{count} mailers"
34
+ errors:
35
+ email_missing_format: Falta formato
36
+ headers:
37
+ attachments: Adjuntos
38
+ bcc: BCC
39
+ cc: CC
40
+ from: De
41
+ reply_to: Responder a
42
+ subject: Asunto
43
+ to: A
44
+ test_deliver:
45
+ no_delivery_method: Por favor configura 'config.action_mailer.delivery_method' para enviar correos en el entorno de '%{environment}'
46
+ provide_email: "¿A que dirección?"
47
+ sent_notice: Enviado a %{address} vía %{delivery_method}
@@ -1,51 +1,51 @@
1
1
  ---
2
2
  ru:
3
+ integrations:
4
+ cms:
5
+ customize_cms_for_rails_email_preview:
6
+ edit_email: Редактировать
7
+ view_link: Показать
8
+ errors:
9
+ site_missing: Сначала создайте сайт для %{locale} в CMS (отметьте опцию "Mirrored").
10
+ layouts:
11
+ rails_email_preview:
12
+ application:
13
+ head_title: Письма - REP
14
+ rails_email_preview:
15
+ emails:
16
+ index:
17
+ list_title: Письма от приложения
18
+ send_form:
19
+ send_are_you_sure: Письмо будет по-настоящему отправлено. Продолжить?
20
+ send_btn: Отправить на
21
+ send_recipient_placeholder: Адрес эл. почты
22
+ show:
23
+ breadcrumb_list: Письма
3
24
  rep:
4
- headers:
5
- subject: "Тема"
6
- from: "Отправитель"
7
- to: "Получатель"
8
- reply_to: "Ответ на"
9
- cc: "Копия"
10
- bcc: "Скрытая копия"
11
- attachments: "Вложения"
12
25
  base:
13
26
  email:
14
- one: "%{count} письмо"
15
27
  few: "%{count} письма"
16
28
  many: "%{count} писем"
29
+ one: "%{count} письмо"
17
30
  other: "%{count} письма"
18
- in: "в"
31
+ in: в
32
+ loading: Письмо загружается...
19
33
  mailer:
20
- one: "%{count}-й коллекции"
21
34
  few: "%{count}-х коллекциях"
22
35
  many: "%{count}-и коллекциях"
36
+ one: "%{count}-й коллекции"
23
37
  other: "%{count} коллекциях"
24
- loading: "Письмо загружается..."
25
- test_deliver:
26
- no_delivery_method: "Настройте 'config.action_mailer.delivery_method', чтобы отправлять письма в среде '%{environment}'"
27
- provide_email: "На какой адрес отправить?"
28
- sent_notice: "Оправлено на %{address} через %{delivery_method}"
29
38
  errors:
30
- email_missing_format: "Формат отсутствует"
31
- layouts:
32
- rails_email_preview:
33
- application:
34
- head_title: "Письма - REP"
35
- rails_email_preview:
36
- emails:
37
- index:
38
- list_title: "Письма от приложения"
39
- show:
40
- breadcrumb_list: "Письма"
41
- send_form:
42
- send_are_you_sure: "Письмо будет по-настоящему отправлено. Продолжить?"
43
- send_btn: "Отправить на"
44
- send_recipient_placeholder: "Адрес эл. почты"
45
- integrations:
46
- cms:
47
- errors:
48
- site_missing: Сначала создайте сайт для %{locale} в CMS (отметьте опцию "Mirrored").
49
- customize_cms_for_rails_email_preview:
50
- edit_email: "Редактировать"
51
- view_link: "Показать"
39
+ email_missing_format: Формат отсутствует
40
+ headers:
41
+ attachments: Вложения
42
+ bcc: Скрытая копия
43
+ cc: Копия
44
+ from: Отправитель
45
+ reply_to: Ответ на
46
+ subject: Тема
47
+ to: Получатель
48
+ test_deliver:
49
+ no_delivery_method: Настройте 'config.action_mailer.delivery_method', чтобы отправлять письма в среде '%{environment}'
50
+ provide_email: На какой адрес отправить?
51
+ sent_notice: Оправлено на %{address} через %{delivery_method}
@@ -12,7 +12,7 @@ module RailsEmailPreview
12
12
  next
13
13
  end
14
14
  preview_path = File.join(previews_dir, "#{basename}_preview.rb")
15
- if File.exists?(preview_path)
15
+ if File.exist?(preview_path)
16
16
  shell.say_status :exist, preview_path, :blue
17
17
  next
18
18
  end
@@ -8,7 +8,7 @@ module RailsEmailPreview::MainAppRouteDelegator
8
8
  end
9
9
  end
10
10
 
11
- def respond_to?(method)
11
+ def respond_to_missing?(method)
12
12
  super || main_app_route_method?(method)
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module RailsEmailPreview
2
- VERSION = '2.2.2'
2
+ VERSION = '2.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_email_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-23 00:00:00.000000000 Z
11
+ date: 2023-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -66,34 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: i18n-tasks
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: 0.9.25
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 0.9.25
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: capybara
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - ">="
88
74
  - !ruby/object:Gem::Version
89
- version: 3.8.2
75
+ version: 3.1.1
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - ">="
95
81
  - !ruby/object:Gem::Version
96
- version: 3.8.2
82
+ version: 3.1.1
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: cuprite
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +114,14 @@ dependencies:
128
114
  requirements:
129
115
  - - ">="
130
116
  - !ruby/object:Gem::Version
131
- version: 3.12.0
117
+ version: 3.9.1
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - ">="
137
123
  - !ruby/object:Gem::Version
138
- version: 3.12.0
124
+ version: 3.9.1
139
125
  description: A Rails Engine to preview plain text and html email in your browser
140
126
  email: glex.spb@gmail.com
141
127
  executables: []
@@ -194,7 +180,7 @@ licenses:
194
180
  - MIT
195
181
  metadata:
196
182
  issue_tracker: https://github.com/glebm/rails_email_preview
197
- post_install_message:
183
+ post_install_message:
198
184
  rdoc_options: []
199
185
  require_paths:
200
186
  - lib
@@ -209,8 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
195
  - !ruby/object:Gem::Version
210
196
  version: '0'
211
197
  requirements: []
212
- rubygems_version: 3.1.2
213
- signing_key:
198
+ rubygems_version: 3.4.1
199
+ signing_key:
214
200
  specification_version: 4
215
201
  summary: Preview emails in browser (rails engine)
216
202
  test_files: []