rails_email_preview 2.0.6 → 2.1.0

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: 1fec4ab249106fa4bdb5a18e46a31e8ee3bfc4ec0d5f62e23ebc3263ebda3180
4
- data.tar.gz: af5cb7850af9125e8ef5d151a73e2d0c780f5c7f467a8173a691578a26a406a0
3
+ metadata.gz: e22e1348c59f3f6a444e25518c42514a9bccd2a333fa0afcb16329ebef234a37
4
+ data.tar.gz: 80e80c700d50247becc34c2c66e04ed3ec2107ccd97ffb70280726a6f7de2c82
5
5
  SHA512:
6
- metadata.gz: 0d73fe44be945370c4e2df1a0b40caf7498b7a4ec4cfbf2206878c47c381ad0be24a1d9e5ffb3712b1470d43407f6b6371eb85f8995e1ef92ecab7f8b8025485
7
- data.tar.gz: 9748544a2e0dfb998ac16198d58f60ccf380afdcfe4e8253c14d595a3ba09982fc887a12db53ae6b1be3f251fa0c61398c2bcf6c921a236f55619d3d681b8a6e
6
+ metadata.gz: 33e4f34d7576808b4bf4d00984b7514c15e41bca036a1f77f47947ba548643ce2198068bd1fca1bfbf0a9c6abf5265b00ddae43180bcd4514ba3caafb10dd880
7
+ data.tar.gz: 066b971beadb78d38bf0019dda18716a7405d5fa84bd3a587f3c545adb3a3bce3c587ec93934028754321a72472f6407d142dd9fabaab84e6c5ffb955d671e3a
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.0.6'
20
+ gem 'rails_email_preview', '~> 2.1.0'
21
21
  ```
22
22
 
23
23
  Add an initializer and the routes:
@@ -190,7 +190,7 @@ Then, import REP styles into your `application.css.scss`:
190
190
  @import "rails_email_preview/application";
191
191
  ```
192
192
 
193
- Alternatively, if you are using Bootstrap 3, `@import "rails_email_preview/application"`, and add the following
193
+ Alternatively, if you are using Bootstrap 3, `@import "rails_email_preview/bootstrap3"`, and add the following
194
194
  to the initializer:
195
195
 
196
196
  ```ruby
data/Rakefile CHANGED
@@ -6,10 +6,8 @@ rescue LoadError
6
6
  end
7
7
 
8
8
  # Load dummy app tasks
9
- if ENV['DUMMY']
10
- APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
11
- load 'rails/tasks/engine.rake'
12
- end
9
+ APP_RAKEFILE = File.expand_path('spec/dummy/Rakefile', __dir__)
10
+ load 'rails/tasks/engine.rake'
13
11
 
14
12
  Bundler::GemHelper.install_tasks
15
13
 
@@ -20,18 +18,16 @@ task default: :spec
20
18
 
21
19
  desc 'Start development web server'
22
20
  task :dev do
23
- host = 'localhost'
24
- port = 9292
25
- require 'puma'
26
- require 'rails/commands/server'
21
+ host = '0.0.0.0'
22
+ port = ENV['PORT'] || 9292
27
23
  ENV['RACK_ENV'] = ENV['RAILS_ENV'] = 'development'
28
24
  Dir.chdir 'spec/dummy'
25
+
29
26
  Rack::Server.start(
30
27
  environment: 'development',
31
28
  Host: host,
32
29
  Port: port,
33
- config: 'config.ru',
34
- server: 'puma'
30
+ config: 'config.ru'
35
31
  )
36
32
  end
37
33
 
@@ -3,16 +3,16 @@
3
3
  $rep-brand-color: #4a90e2 !default
4
4
  $rep-link-color: $rep-brand-color !default
5
5
  $rep-gray: #818a91 !default
6
- $rep-gray-light: #a6b2bb !default
6
+ $rep-gray-light: #dedede !default
7
7
  $rep-gray-lighter: #f1f3f4 !default
8
8
 
9
9
  $rep-breadcrumb-bg: $rep-gray-lighter !default
10
10
 
11
11
  $rep-grid-gutter: 30px !default
12
12
  $rep-grid-breakpoint-sm: 768px !default
13
- $rep-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif !default
13
+ $rep-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default
14
14
  $rep-font-size-nav: 1.15em !default
15
- $rep-text-color: #575d6b !default
15
+ $rep-text-color: rgba(black, 0.87) !default
16
16
  $rep-text-color-secondary: #263238 !default
17
17
 
18
18
  =rep--media-sm-plus
@@ -0,0 +1,10 @@
1
+ @import "rails_email_preview/default";
2
+
3
+ body {
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ .rep-standalone-container {
9
+ padding: 0 15px;
10
+ }
@@ -4,10 +4,11 @@
4
4
  <title><%= t('.head_title') %></title>
5
5
  <%= stylesheet_link_tag 'rails_email_preview/application' %>
6
6
  <%= javascript_include_tag 'rails_email_preview/application' %>
7
+ <%= favicon_link_tag 'rails_email_preview/favicon.png' %>
7
8
  <%= yield(:head) %>
8
9
  </head>
9
10
  <body>
10
- <div id="content" class="container-fluid">
11
+ <div class="rep-standalone-container">
11
12
  <%= render 'layouts/rails_email_preview/flash_notices' %>
12
13
  <%= yield %>
13
14
  </div>
@@ -5,7 +5,7 @@ require 'rails_email_preview/version'
5
5
  require 'rails_email_preview/delivery_handler'
6
6
  require 'rails_email_preview/view_hooks'
7
7
 
8
- require 'sass'
8
+ require 'sassc-rails'
9
9
  require 'request_store'
10
10
  require 'turbolinks'
11
11
  require 'pathname'
@@ -7,6 +7,7 @@ module ::RailsEmailPreview
7
7
  RailsEmailPreview::Engine.config.assets.precompile += %w(
8
8
  rails_email_preview/application.js
9
9
  rails_email_preview/application.css
10
+ rails_email_preview/favicon.png
10
11
  )
11
12
  end
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module RailsEmailPreview
2
- VERSION = '2.0.6'
2
+ VERSION = '2.1.0'
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.0.6
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-13 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: sass
28
+ name: sassc-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 2.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 2.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: turbolinks
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,42 +72,56 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.7.6
75
+ version: 0.9.25
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 0.7.6
82
+ version: 0.9.25
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: capybara
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 2.3.0
89
+ version: 3.8.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 2.3.0
96
+ version: 3.8.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '3.4'
103
+ version: 3.8.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 3.8.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: puma
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 3.12.0
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: '3.4'
124
+ version: 3.12.0
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: poltergeist
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -132,9 +146,11 @@ files:
132
146
  - MIT-LICENSE
133
147
  - README.md
134
148
  - Rakefile
149
+ - app/assets/images/rails_email_preview/favicon.png
135
150
  - app/assets/javascripts/rails_email_preview/application.js
136
- - app/assets/stylesheets/rails_email_preview/application.sass
137
- - app/assets/stylesheets/rails_email_preview/bootstrap3.sass
151
+ - app/assets/stylesheets/rails_email_preview/_bootstrap3.sass
152
+ - app/assets/stylesheets/rails_email_preview/_default.sass
153
+ - app/assets/stylesheets/rails_email_preview/application.scss
138
154
  - app/controllers/rails_email_preview/application_controller.rb
139
155
  - app/controllers/rails_email_preview/emails_controller.rb
140
156
  - app/helpers/rails_email_preview/emails_helper.rb
@@ -192,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
208
  version: '0'
193
209
  requirements: []
194
210
  rubyforge_project:
195
- rubygems_version: 2.7.3
211
+ rubygems_version: 2.7.7
196
212
  signing_key:
197
213
  specification_version: 4
198
214
  summary: Preview emails in browser (rails engine)