rails_email_preview 0.2.29 → 0.2.30

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
  SHA1:
3
- metadata.gz: 8523c66c8e487eed84770be9fc491a6a3b9a448c
4
- data.tar.gz: 65ab97ef66c3aec2ecc63a43ea2e42b37525bbab
3
+ metadata.gz: 1746242744eec2086d11bc448ff7ad9cb11ec946
4
+ data.tar.gz: 0379058db2efb95e694b2653776f2c802fff1991
5
5
  SHA512:
6
- metadata.gz: 3581f045147cdbaa028ffd1cc9913a1be4e41ab4cb5b08111706ff239c5ee8813568cb4f76a26357f6baa7a46e2ac2349b320f3161679c116cd79fd9d397c6c1
7
- data.tar.gz: 4d173271dbd4511bb18b06a9bb048521f22a8b7751256c4342f34c565337a25cc9c79a9f4c26cdd2f25b15b4204080e6ebe976081a9286368f55428bc71a346c
6
+ metadata.gz: 0991fa4d74a494cf9400fd2bb262d290d213eb954727d3e2b597e397ab66a8e8f8f0e8474efdcbcf0d9252fb2bac708a9e1f547348b9da40ffd99a30fa084ef0
7
+ data.tar.gz: 538ef834dab62b450bb7e669378394554553df407f66914ce98ce3473ab7c63febc8d2f1fd9e8455d3e343d43106776fecc6e5151ec4033dcbfd94bdc7e4c6e3
data/Gemfile CHANGED
@@ -4,15 +4,4 @@ gemspec
4
4
 
5
5
  gem 'rails'
6
6
 
7
- platform :rbx do
8
- gem 'rubysl', '~> 2.0'
9
- gem 'racc'
10
- end
11
-
12
- group :test, :development do
13
- gem 'byebug', platform: :mri_21, require: false
14
- end
15
-
16
- group :development do
17
- gem 'puma'
18
- end
7
+ eval_gemfile './shared.gemfile'
data/README.md CHANGED
@@ -16,7 +16,7 @@ REP can use your application styles, markup is compatible with [bootstrap 3][rep
16
16
  Add [![Gem Version][gem-badge]][gem] to Gemfile:
17
17
 
18
18
  ```ruby
19
- gem 'rails_email_preview', '~> 0.2.29'
19
+ gem 'rails_email_preview', '~> 0.2.30'
20
20
  ```
21
21
 
22
22
  Add an initializer and the routes:
@@ -117,7 +117,7 @@ REP works with [Comfortable Mexican Sofa CMS](https://github.com/comfy/comfortab
117
117
  [Premailer](https://github.com/alexdunae/premailer) automatically translates standard CSS rules into old-school inline styles. Integration can be done by using the <code>before_render</code> hook.
118
118
 
119
119
  To integrate Premailer with your Rails app you can use either [actionmailer_inline_css](https://github.com/ndbroadbent/actionmailer_inline_css) or [premailer-rails](https://github.com/fphilipe/premailer-rails).
120
- Simply uncomment the relevant options in [the initializer](https://github.com/glebm/rails_email_preview/config/initializers/rails_email_preview.rb). *initializer is generated during `rails g rails_email_preview:install`*
120
+ Simply uncomment the relevant options in [the initializer](https://github.com/glebm/rails_email_preview/blob/master/config/initializers/rails_email_preview.rb). *initializer is generated during `rails g rails_email_preview:install`*
121
121
 
122
122
  ### I18n
123
123
 
data/Rakefile CHANGED
@@ -34,3 +34,33 @@ task :dev do
34
34
  server: 'puma'
35
35
  )
36
36
  end
37
+
38
+ desc 'Test all Gemfiles from spec/*.gemfile'
39
+ task :test_all_gemfiles do
40
+ require 'pty'
41
+ require 'shellwords'
42
+ cmd = 'bundle install --quiet && bundle exec rake --trace'
43
+ statuses = Dir.glob('./spec/gemfiles/*{[!.lock]}').map do |gemfile|
44
+ Bundler.with_clean_env do
45
+ env = {'BUNDLE_GEMFILE' => gemfile}
46
+ $stderr.puts "Testing #{File.basename(gemfile)}:\n export #{env.map { |k, v| "#{k}=#{Shellwords.escape v}" } * ' '}; #{cmd}"
47
+ PTY.spawn(env, cmd) do |r, _w, pid|
48
+ begin
49
+ r.each_line { |l| puts l }
50
+ rescue Errno::EIO
51
+ # Errno:EIO error means that the process has finished giving output.
52
+ ensure
53
+ ::Process.wait pid
54
+ end
55
+ end
56
+ [$? && $?.exitstatus == 0, gemfile]
57
+ end
58
+ end
59
+ failed_gemfiles = statuses.reject(&:first).map { |(_status, gemfile)| gemfile }
60
+ if failed_gemfiles.empty?
61
+ $stderr.puts "✓ Tests pass with all #{statuses.size} gemfiles"
62
+ else
63
+ $stderr.puts "❌ FAILING (#{failed_gemfiles.size} / #{statuses.size})\n#{failed_gemfiles * "\n"}"
64
+ exit 1
65
+ end
66
+ end
@@ -33,7 +33,7 @@ module RailsEmailPreview
33
33
  end
34
34
 
35
35
  def group_name
36
- @group_name ||= preview_class_name.to_s.underscore.sub(/(_mailer)?_preview$/, '').humanize
36
+ @group_name ||= preview_class_name.to_s.underscore.gsub('/', ': ').sub(/(_mailer)?_preview$/, '').humanize
37
37
  end
38
38
 
39
39
  class << self
@@ -57,7 +57,7 @@ module RailsEmailPreview
57
57
 
58
58
  mail_methods(preview_class).sort.each do |preview_method|
59
59
  mailer_method = preview_method
60
- id = "#{preview_class_name.underscore}-#{mailer_method}"
60
+ id = "#{preview_class_name.underscore.gsub('/', '__')}-#{mailer_method}"
61
61
 
62
62
  email = new(
63
63
  id: id,
@@ -1,5 +1,5 @@
1
1
  base_locale: en
2
- locales: [en, de, ru]
2
+ locales: [en, de, ru, es]
3
3
  search:
4
4
  paths:
5
5
  - app/
@@ -0,0 +1,47 @@
1
+ ---
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
27
+ layouts:
28
+ rails_email_preview:
29
+ application:
30
+ head_title: Emails - REP
31
+ rails_email_preview:
32
+ emails:
33
+ index:
34
+ list_title: Emails de la aplicación
35
+ show:
36
+ breadcrumb_list: Emails
37
+ send_form:
38
+ send_are_you_sure: Esto enviara el email. ¿Estás seguro?
39
+ send_btn: Enviar a
40
+ 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
@@ -1,3 +1,3 @@
1
1
  module RailsEmailPreview
2
- VERSION = '0.2.29'
2
+ VERSION = '0.2.30'
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: 0.2.29
4
+ version: 0.2.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-28 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 3.0.0
117
+ version: '3.4'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 3.0.0
124
+ version: '3.4'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec-rails
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -161,10 +161,10 @@ files:
161
161
  - README.md
162
162
  - Rakefile
163
163
  - app/assets/javascripts/rails_email_preview/application.js.coffee
164
- - app/assets/stylesheets/rails_email_preview/_bootstrap.scss
165
- - app/assets/stylesheets/rails_email_preview/_bootstrap_theme.scss
166
- - app/assets/stylesheets/rails_email_preview/_layout.sass
167
- - app/assets/stylesheets/rails_email_preview/application.sass
164
+ - app/assets/stylesheets/rails_email_preview/_bootstrap.css.scss
165
+ - app/assets/stylesheets/rails_email_preview/_bootstrap_theme.css.scss
166
+ - app/assets/stylesheets/rails_email_preview/_layout.css.sass
167
+ - app/assets/stylesheets/rails_email_preview/application.css.sass
168
168
  - app/controllers/rails_email_preview/application_controller.rb
169
169
  - app/controllers/rails_email_preview/emails_controller.rb
170
170
  - app/helpers/rails_email_preview/emails_helper.rb
@@ -188,6 +188,7 @@ files:
188
188
  - config/initializers/rails_email_preview.rb
189
189
  - config/locales/de.yml
190
190
  - config/locales/en.yml
191
+ - config/locales/es.yml
191
192
  - config/locales/ru.yml
192
193
  - config/routes.rb
193
194
  - lib/generators/rails_email_preview/install_generator.rb
@@ -202,7 +203,8 @@ files:
202
203
  homepage: https://github.com/glebm/rails_email_preview
203
204
  licenses:
204
205
  - MIT
205
- metadata: {}
206
+ metadata:
207
+ issue_tracker: https://github.com/glebm/rails_email_preview
206
208
  post_install_message:
207
209
  rdoc_options: []
208
210
  require_paths:
@@ -219,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
221
  version: '0'
220
222
  requirements: []
221
223
  rubyforge_project:
222
- rubygems_version: 2.4.1
224
+ rubygems_version: 2.5.1
223
225
  signing_key:
224
226
  specification_version: 4
225
227
  summary: Preview emails in browser (rails engine)