roadie-rails 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +9 -1
- data/codecov.yml +3 -0
- data/lib/roadie/rails/version.rb +1 -1
- data/roadie-rails.gemspec +3 -1
- metadata +5 -200
- data/spec/integration_spec.rb +0 -91
- data/spec/lib/roadie/rails/asset_pipeline_provider_spec.rb +0 -77
- data/spec/lib/roadie/rails/automatic_spec.rb +0 -54
- data/spec/lib/roadie/rails/document_builder_spec.rb +0 -20
- data/spec/lib/roadie/rails/mail_inliner_spec.rb +0 -92
- data/spec/lib/roadie/rails/mailer_spec.rb +0 -57
- data/spec/lib/roadie/rails/options_spec.rb +0 -172
- data/spec/lib/roadie/rails/railtie_spec.rb +0 -61
- data/spec/railsapps/README.md +0 -66
- data/spec/railsapps/rails_42/.gitignore +0 -16
- data/spec/railsapps/rails_42/Gemfile +0 -5
- data/spec/railsapps/rails_42/app/assets +0 -1
- data/spec/railsapps/rails_42/app/mailers +0 -1
- data/spec/railsapps/rails_42/app/views +0 -1
- data/spec/railsapps/rails_42/bin/rails +0 -4
- data/spec/railsapps/rails_42/config.ru +0 -4
- data/spec/railsapps/rails_42/config/application.rb +0 -16
- data/spec/railsapps/rails_42/config/boot.rb +0 -4
- data/spec/railsapps/rails_42/config/environment.rb +0 -5
- data/spec/railsapps/rails_42/config/environments/development.rb +0 -9
- data/spec/railsapps/rails_42/config/initializers/secret_token.rb +0 -1
- data/spec/railsapps/rails_42/config/initializers/session_store.rb +0 -1
- data/spec/railsapps/rails_42/config/routes.rb +0 -2
- data/spec/railsapps/rails_42_sprockets_rails_3/.gitignore +0 -16
- data/spec/railsapps/rails_42_sprockets_rails_3/Gemfile +0 -6
- data/spec/railsapps/rails_42_sprockets_rails_3/app/assets +0 -1
- data/spec/railsapps/rails_42_sprockets_rails_3/app/mailers +0 -1
- data/spec/railsapps/rails_42_sprockets_rails_3/app/views +0 -1
- data/spec/railsapps/rails_42_sprockets_rails_3/bin/rails +0 -4
- data/spec/railsapps/rails_42_sprockets_rails_3/config.ru +0 -4
- data/spec/railsapps/rails_42_sprockets_rails_3/config/application.rb +0 -13
- data/spec/railsapps/rails_42_sprockets_rails_3/config/boot.rb +0 -4
- data/spec/railsapps/rails_42_sprockets_rails_3/config/environment.rb +0 -5
- data/spec/railsapps/rails_42_sprockets_rails_3/config/environments/development.rb +0 -9
- data/spec/railsapps/rails_42_sprockets_rails_3/config/initializers/assets.rb +0 -1
- data/spec/railsapps/rails_42_sprockets_rails_3/config/initializers/secret_token.rb +0 -1
- data/spec/railsapps/rails_42_sprockets_rails_3/config/initializers/session_store.rb +0 -1
- data/spec/railsapps/rails_42_sprockets_rails_3/config/routes.rb +0 -2
- data/spec/railsapps/rails_50/.gitignore +0 -21
- data/spec/railsapps/rails_50/Gemfile +0 -7
- data/spec/railsapps/rails_50/app/assets +0 -1
- data/spec/railsapps/rails_50/app/mailers/auto_mailer.rb +0 -27
- data/spec/railsapps/rails_50/app/mailers/mailer.rb +0 -17
- data/spec/railsapps/rails_50/app/views +0 -1
- data/spec/railsapps/rails_50/bin/rails +0 -4
- data/spec/railsapps/rails_50/config.ru +0 -9
- data/spec/railsapps/rails_50/config/application.rb +0 -16
- data/spec/railsapps/rails_50/config/boot.rb +0 -3
- data/spec/railsapps/rails_50/config/environment.rb +0 -5
- data/spec/railsapps/rails_50/config/environments/development.rb +0 -12
- data/spec/railsapps/rails_50/config/initializers/assets.rb +0 -11
- data/spec/railsapps/rails_50/config/initializers/cookies_serializer.rb +0 -4
- data/spec/railsapps/rails_50/config/initializers/request_forgery_protection.rb +0 -4
- data/spec/railsapps/rails_50/config/initializers/session_store.rb +0 -3
- data/spec/railsapps/rails_50/config/routes.rb +0 -6
- data/spec/railsapps/rails_51/.gitignore +0 -17
- data/spec/railsapps/rails_51/Gemfile +0 -8
- data/spec/railsapps/rails_51/app/assets/images/rails.png +0 -0
- data/spec/railsapps/rails_51/app/assets/stylesheets/email.css.scss +0 -2
- data/spec/railsapps/rails_51/app/mailers/auto_mailer.rb +0 -27
- data/spec/railsapps/rails_51/app/mailers/mailer.rb +0 -17
- data/spec/railsapps/rails_51/app/views/auto_mailer/normal_email.html.erb +0 -11
- data/spec/railsapps/rails_51/app/views/auto_mailer/normal_email.text +0 -1
- data/spec/railsapps/rails_51/app/views/mailer/normal_email.html.erb +0 -11
- data/spec/railsapps/rails_51/app/views/mailer/normal_email.text +0 -1
- data/spec/railsapps/rails_51/bin/rails +0 -4
- data/spec/railsapps/rails_51/config.ru +0 -5
- data/spec/railsapps/rails_51/config/application.rb +0 -16
- data/spec/railsapps/rails_51/config/boot.rb +0 -3
- data/spec/railsapps/rails_51/config/environment.rb +0 -5
- data/spec/railsapps/rails_51/config/environments/development.rb +0 -51
- data/spec/railsapps/rails_51/config/environments/production.rb +0 -83
- data/spec/railsapps/rails_51/config/environments/test.rb +0 -42
- data/spec/railsapps/rails_51/config/initializers/application_controller_renderer.rb +0 -6
- data/spec/railsapps/rails_51/config/initializers/assets.rb +0 -11
- data/spec/railsapps/rails_51/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/railsapps/rails_51/config/initializers/cookies_serializer.rb +0 -5
- data/spec/railsapps/rails_51/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/railsapps/rails_51/config/initializers/inflections.rb +0 -16
- data/spec/railsapps/rails_51/config/initializers/mime_types.rb +0 -4
- data/spec/railsapps/rails_51/config/initializers/new_framework_defaults.rb +0 -21
- data/spec/railsapps/rails_51/config/initializers/session_store.rb +0 -3
- data/spec/railsapps/rails_51/config/initializers/wrap_parameters.rb +0 -9
- data/spec/railsapps/rails_51/config/locales/en.yml +0 -23
- data/spec/railsapps/rails_51/config/routes.rb +0 -3
- data/spec/railsapps/rails_51/log/.keep +0 -0
- data/spec/railsapps/shared/all/app/mailers/auto_mailer.rb +0 -27
- data/spec/railsapps/shared/all/app/mailers/mailer.rb +0 -17
- data/spec/railsapps/shared/all/app/views/auto_mailer +0 -1
- data/spec/railsapps/shared/all/app/views/mailer/normal_email.html.erb +0 -11
- data/spec/railsapps/shared/all/app/views/mailer/normal_email.text +0 -1
- data/spec/railsapps/shared/pipeline/app/assets/images/rails.png +0 -0
- data/spec/railsapps/shared/pipeline/app/assets/stylesheets/email.css.scss +0 -2
- data/spec/spec_helper.rb +0 -18
- data/spec/support/have_no_styling_matcher.rb +0 -25
- data/spec/support/have_selector_matcher.rb +0 -3
- data/spec/support/have_styling_matcher.rb +0 -63
- data/spec/support/rails_app.rb +0 -78
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaf8788ca849a215052b1b74ddf5de68d51fb745
|
4
|
+
data.tar.gz: 76f33b001f6ad65d89cbf3c3026bdd671035cbc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5542e9a940166547ed921145f49a5dd1c17f8ea2f7764f44aa225ab029f09178e43e47e83d73aa842c2aec1dea38474c7266e41a831edc395946de4d08bf924
|
7
|
+
data.tar.gz: bf49cab698206f9c178b6ecf8ab7398111855ba8a3a98a7ad667548af34c179043d4dac07d9078c5832523503e364ff69c54644ed78e10ff0f6a83b2526ac269
|
data/Changelog.md
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
### development version
|
2
2
|
|
3
|
-
[full changelog](https://github.com/Mange/roadie-rails/compare/v1.2.
|
3
|
+
[full changelog](https://github.com/Mange/roadie-rails/compare/v1.2.1...master)
|
4
4
|
|
5
5
|
* Nothing yet.
|
6
6
|
|
7
|
+
### 1.2.1
|
8
|
+
|
9
|
+
[full changelog](https://github.com/Mange/roadie-rails/compare/v1.2.0...v1.2.1)
|
10
|
+
|
11
|
+
* Don't allow installation in Ruby < 2.2.
|
12
|
+
* Fix install on Windows machines.
|
13
|
+
* Less bloat in gem file, making it much smaller.
|
14
|
+
|
7
15
|
### 1.2.0
|
8
16
|
|
9
17
|
[full changelog](https://github.com/Mange/roadie-rails/compare/v1.1.1...v1.2.0)
|
data/codecov.yml
ADDED
data/lib/roadie/rails/version.rb
CHANGED
data/roadie-rails.gemspec
CHANGED
@@ -13,7 +13,9 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.description = %q{Hooks Roadie into your Rails application to help with email generation.}
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.
|
16
|
+
spec.required_ruby_version = ">= 2.2"
|
17
|
+
|
18
|
+
spec.files = `git ls-files | grep -v ^spec`.split($/)
|
17
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
21
|
spec.extra_rdoc_files = %w[README.md Changelog.md LICENSE.txt]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roadie-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Magnus Bergmark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roadie
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- README.md
|
140
140
|
- Rakefile
|
141
141
|
- Upgrading.md
|
142
|
+
- codecov.yml
|
142
143
|
- lib/roadie-rails.rb
|
143
144
|
- lib/roadie/rails.rb
|
144
145
|
- lib/roadie/rails/asset_pipeline_provider.rb
|
@@ -152,104 +153,6 @@ files:
|
|
152
153
|
- lib/roadie/rails/version.rb
|
153
154
|
- roadie-rails.gemspec
|
154
155
|
- setup.sh
|
155
|
-
- spec/integration_spec.rb
|
156
|
-
- spec/lib/roadie/rails/asset_pipeline_provider_spec.rb
|
157
|
-
- spec/lib/roadie/rails/automatic_spec.rb
|
158
|
-
- spec/lib/roadie/rails/document_builder_spec.rb
|
159
|
-
- spec/lib/roadie/rails/mail_inliner_spec.rb
|
160
|
-
- spec/lib/roadie/rails/mailer_spec.rb
|
161
|
-
- spec/lib/roadie/rails/options_spec.rb
|
162
|
-
- spec/lib/roadie/rails/railtie_spec.rb
|
163
|
-
- spec/railsapps/README.md
|
164
|
-
- spec/railsapps/rails_42/.gitignore
|
165
|
-
- spec/railsapps/rails_42/Gemfile
|
166
|
-
- spec/railsapps/rails_42/app/assets
|
167
|
-
- spec/railsapps/rails_42/app/mailers
|
168
|
-
- spec/railsapps/rails_42/app/views
|
169
|
-
- spec/railsapps/rails_42/bin/rails
|
170
|
-
- spec/railsapps/rails_42/config.ru
|
171
|
-
- spec/railsapps/rails_42/config/application.rb
|
172
|
-
- spec/railsapps/rails_42/config/boot.rb
|
173
|
-
- spec/railsapps/rails_42/config/environment.rb
|
174
|
-
- spec/railsapps/rails_42/config/environments/development.rb
|
175
|
-
- spec/railsapps/rails_42/config/initializers/secret_token.rb
|
176
|
-
- spec/railsapps/rails_42/config/initializers/session_store.rb
|
177
|
-
- spec/railsapps/rails_42/config/routes.rb
|
178
|
-
- spec/railsapps/rails_42_sprockets_rails_3/.gitignore
|
179
|
-
- spec/railsapps/rails_42_sprockets_rails_3/Gemfile
|
180
|
-
- spec/railsapps/rails_42_sprockets_rails_3/app/assets
|
181
|
-
- spec/railsapps/rails_42_sprockets_rails_3/app/mailers
|
182
|
-
- spec/railsapps/rails_42_sprockets_rails_3/app/views
|
183
|
-
- spec/railsapps/rails_42_sprockets_rails_3/bin/rails
|
184
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config.ru
|
185
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/application.rb
|
186
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/boot.rb
|
187
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/environment.rb
|
188
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/environments/development.rb
|
189
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/initializers/assets.rb
|
190
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/initializers/secret_token.rb
|
191
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/initializers/session_store.rb
|
192
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/routes.rb
|
193
|
-
- spec/railsapps/rails_50/.gitignore
|
194
|
-
- spec/railsapps/rails_50/Gemfile
|
195
|
-
- spec/railsapps/rails_50/app/assets
|
196
|
-
- spec/railsapps/rails_50/app/mailers/auto_mailer.rb
|
197
|
-
- spec/railsapps/rails_50/app/mailers/mailer.rb
|
198
|
-
- spec/railsapps/rails_50/app/views
|
199
|
-
- spec/railsapps/rails_50/bin/rails
|
200
|
-
- spec/railsapps/rails_50/config.ru
|
201
|
-
- spec/railsapps/rails_50/config/application.rb
|
202
|
-
- spec/railsapps/rails_50/config/boot.rb
|
203
|
-
- spec/railsapps/rails_50/config/environment.rb
|
204
|
-
- spec/railsapps/rails_50/config/environments/development.rb
|
205
|
-
- spec/railsapps/rails_50/config/initializers/assets.rb
|
206
|
-
- spec/railsapps/rails_50/config/initializers/cookies_serializer.rb
|
207
|
-
- spec/railsapps/rails_50/config/initializers/request_forgery_protection.rb
|
208
|
-
- spec/railsapps/rails_50/config/initializers/session_store.rb
|
209
|
-
- spec/railsapps/rails_50/config/routes.rb
|
210
|
-
- spec/railsapps/rails_51/.gitignore
|
211
|
-
- spec/railsapps/rails_51/Gemfile
|
212
|
-
- spec/railsapps/rails_51/app/assets/images/rails.png
|
213
|
-
- spec/railsapps/rails_51/app/assets/stylesheets/email.css.scss
|
214
|
-
- spec/railsapps/rails_51/app/mailers/auto_mailer.rb
|
215
|
-
- spec/railsapps/rails_51/app/mailers/mailer.rb
|
216
|
-
- spec/railsapps/rails_51/app/views/auto_mailer/normal_email.html.erb
|
217
|
-
- spec/railsapps/rails_51/app/views/auto_mailer/normal_email.text
|
218
|
-
- spec/railsapps/rails_51/app/views/mailer/normal_email.html.erb
|
219
|
-
- spec/railsapps/rails_51/app/views/mailer/normal_email.text
|
220
|
-
- spec/railsapps/rails_51/bin/rails
|
221
|
-
- spec/railsapps/rails_51/config.ru
|
222
|
-
- spec/railsapps/rails_51/config/application.rb
|
223
|
-
- spec/railsapps/rails_51/config/boot.rb
|
224
|
-
- spec/railsapps/rails_51/config/environment.rb
|
225
|
-
- spec/railsapps/rails_51/config/environments/development.rb
|
226
|
-
- spec/railsapps/rails_51/config/environments/production.rb
|
227
|
-
- spec/railsapps/rails_51/config/environments/test.rb
|
228
|
-
- spec/railsapps/rails_51/config/initializers/application_controller_renderer.rb
|
229
|
-
- spec/railsapps/rails_51/config/initializers/assets.rb
|
230
|
-
- spec/railsapps/rails_51/config/initializers/backtrace_silencers.rb
|
231
|
-
- spec/railsapps/rails_51/config/initializers/cookies_serializer.rb
|
232
|
-
- spec/railsapps/rails_51/config/initializers/filter_parameter_logging.rb
|
233
|
-
- spec/railsapps/rails_51/config/initializers/inflections.rb
|
234
|
-
- spec/railsapps/rails_51/config/initializers/mime_types.rb
|
235
|
-
- spec/railsapps/rails_51/config/initializers/new_framework_defaults.rb
|
236
|
-
- spec/railsapps/rails_51/config/initializers/session_store.rb
|
237
|
-
- spec/railsapps/rails_51/config/initializers/wrap_parameters.rb
|
238
|
-
- spec/railsapps/rails_51/config/locales/en.yml
|
239
|
-
- spec/railsapps/rails_51/config/routes.rb
|
240
|
-
- spec/railsapps/rails_51/log/.keep
|
241
|
-
- spec/railsapps/shared/all/app/mailers/auto_mailer.rb
|
242
|
-
- spec/railsapps/shared/all/app/mailers/mailer.rb
|
243
|
-
- spec/railsapps/shared/all/app/views/auto_mailer
|
244
|
-
- spec/railsapps/shared/all/app/views/mailer/normal_email.html.erb
|
245
|
-
- spec/railsapps/shared/all/app/views/mailer/normal_email.text
|
246
|
-
- spec/railsapps/shared/pipeline/app/assets/images/rails.png
|
247
|
-
- spec/railsapps/shared/pipeline/app/assets/stylesheets/email.css.scss
|
248
|
-
- spec/spec_helper.rb
|
249
|
-
- spec/support/have_no_styling_matcher.rb
|
250
|
-
- spec/support/have_selector_matcher.rb
|
251
|
-
- spec/support/have_styling_matcher.rb
|
252
|
-
- spec/support/rails_app.rb
|
253
156
|
homepage: http://github.com/Mange/roadie-rails
|
254
157
|
licenses:
|
255
158
|
- MIT
|
@@ -262,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
262
165
|
requirements:
|
263
166
|
- - ">="
|
264
167
|
- !ruby/object:Gem::Version
|
265
|
-
version: '
|
168
|
+
version: '2.2'
|
266
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
170
|
requirements:
|
268
171
|
- - ">="
|
@@ -274,102 +177,4 @@ rubygems_version: 2.6.12
|
|
274
177
|
signing_key:
|
275
178
|
specification_version: 4
|
276
179
|
summary: Making HTML emails comfortable for the Rails rockstars
|
277
|
-
test_files:
|
278
|
-
- spec/integration_spec.rb
|
279
|
-
- spec/lib/roadie/rails/asset_pipeline_provider_spec.rb
|
280
|
-
- spec/lib/roadie/rails/automatic_spec.rb
|
281
|
-
- spec/lib/roadie/rails/document_builder_spec.rb
|
282
|
-
- spec/lib/roadie/rails/mail_inliner_spec.rb
|
283
|
-
- spec/lib/roadie/rails/mailer_spec.rb
|
284
|
-
- spec/lib/roadie/rails/options_spec.rb
|
285
|
-
- spec/lib/roadie/rails/railtie_spec.rb
|
286
|
-
- spec/railsapps/README.md
|
287
|
-
- spec/railsapps/rails_42/.gitignore
|
288
|
-
- spec/railsapps/rails_42/Gemfile
|
289
|
-
- spec/railsapps/rails_42/app/assets
|
290
|
-
- spec/railsapps/rails_42/app/mailers
|
291
|
-
- spec/railsapps/rails_42/app/views
|
292
|
-
- spec/railsapps/rails_42/bin/rails
|
293
|
-
- spec/railsapps/rails_42/config.ru
|
294
|
-
- spec/railsapps/rails_42/config/application.rb
|
295
|
-
- spec/railsapps/rails_42/config/boot.rb
|
296
|
-
- spec/railsapps/rails_42/config/environment.rb
|
297
|
-
- spec/railsapps/rails_42/config/environments/development.rb
|
298
|
-
- spec/railsapps/rails_42/config/initializers/secret_token.rb
|
299
|
-
- spec/railsapps/rails_42/config/initializers/session_store.rb
|
300
|
-
- spec/railsapps/rails_42/config/routes.rb
|
301
|
-
- spec/railsapps/rails_42_sprockets_rails_3/.gitignore
|
302
|
-
- spec/railsapps/rails_42_sprockets_rails_3/Gemfile
|
303
|
-
- spec/railsapps/rails_42_sprockets_rails_3/app/assets
|
304
|
-
- spec/railsapps/rails_42_sprockets_rails_3/app/mailers
|
305
|
-
- spec/railsapps/rails_42_sprockets_rails_3/app/views
|
306
|
-
- spec/railsapps/rails_42_sprockets_rails_3/bin/rails
|
307
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config.ru
|
308
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/application.rb
|
309
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/boot.rb
|
310
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/environment.rb
|
311
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/environments/development.rb
|
312
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/initializers/assets.rb
|
313
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/initializers/secret_token.rb
|
314
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/initializers/session_store.rb
|
315
|
-
- spec/railsapps/rails_42_sprockets_rails_3/config/routes.rb
|
316
|
-
- spec/railsapps/rails_50/.gitignore
|
317
|
-
- spec/railsapps/rails_50/Gemfile
|
318
|
-
- spec/railsapps/rails_50/app/assets
|
319
|
-
- spec/railsapps/rails_50/app/mailers/auto_mailer.rb
|
320
|
-
- spec/railsapps/rails_50/app/mailers/mailer.rb
|
321
|
-
- spec/railsapps/rails_50/app/views
|
322
|
-
- spec/railsapps/rails_50/bin/rails
|
323
|
-
- spec/railsapps/rails_50/config.ru
|
324
|
-
- spec/railsapps/rails_50/config/application.rb
|
325
|
-
- spec/railsapps/rails_50/config/boot.rb
|
326
|
-
- spec/railsapps/rails_50/config/environment.rb
|
327
|
-
- spec/railsapps/rails_50/config/environments/development.rb
|
328
|
-
- spec/railsapps/rails_50/config/initializers/assets.rb
|
329
|
-
- spec/railsapps/rails_50/config/initializers/cookies_serializer.rb
|
330
|
-
- spec/railsapps/rails_50/config/initializers/request_forgery_protection.rb
|
331
|
-
- spec/railsapps/rails_50/config/initializers/session_store.rb
|
332
|
-
- spec/railsapps/rails_50/config/routes.rb
|
333
|
-
- spec/railsapps/rails_51/.gitignore
|
334
|
-
- spec/railsapps/rails_51/Gemfile
|
335
|
-
- spec/railsapps/rails_51/app/assets/images/rails.png
|
336
|
-
- spec/railsapps/rails_51/app/assets/stylesheets/email.css.scss
|
337
|
-
- spec/railsapps/rails_51/app/mailers/auto_mailer.rb
|
338
|
-
- spec/railsapps/rails_51/app/mailers/mailer.rb
|
339
|
-
- spec/railsapps/rails_51/app/views/auto_mailer/normal_email.html.erb
|
340
|
-
- spec/railsapps/rails_51/app/views/auto_mailer/normal_email.text
|
341
|
-
- spec/railsapps/rails_51/app/views/mailer/normal_email.html.erb
|
342
|
-
- spec/railsapps/rails_51/app/views/mailer/normal_email.text
|
343
|
-
- spec/railsapps/rails_51/bin/rails
|
344
|
-
- spec/railsapps/rails_51/config.ru
|
345
|
-
- spec/railsapps/rails_51/config/application.rb
|
346
|
-
- spec/railsapps/rails_51/config/boot.rb
|
347
|
-
- spec/railsapps/rails_51/config/environment.rb
|
348
|
-
- spec/railsapps/rails_51/config/environments/development.rb
|
349
|
-
- spec/railsapps/rails_51/config/environments/production.rb
|
350
|
-
- spec/railsapps/rails_51/config/environments/test.rb
|
351
|
-
- spec/railsapps/rails_51/config/initializers/application_controller_renderer.rb
|
352
|
-
- spec/railsapps/rails_51/config/initializers/assets.rb
|
353
|
-
- spec/railsapps/rails_51/config/initializers/backtrace_silencers.rb
|
354
|
-
- spec/railsapps/rails_51/config/initializers/cookies_serializer.rb
|
355
|
-
- spec/railsapps/rails_51/config/initializers/filter_parameter_logging.rb
|
356
|
-
- spec/railsapps/rails_51/config/initializers/inflections.rb
|
357
|
-
- spec/railsapps/rails_51/config/initializers/mime_types.rb
|
358
|
-
- spec/railsapps/rails_51/config/initializers/new_framework_defaults.rb
|
359
|
-
- spec/railsapps/rails_51/config/initializers/session_store.rb
|
360
|
-
- spec/railsapps/rails_51/config/initializers/wrap_parameters.rb
|
361
|
-
- spec/railsapps/rails_51/config/locales/en.yml
|
362
|
-
- spec/railsapps/rails_51/config/routes.rb
|
363
|
-
- spec/railsapps/rails_51/log/.keep
|
364
|
-
- spec/railsapps/shared/all/app/mailers/auto_mailer.rb
|
365
|
-
- spec/railsapps/shared/all/app/mailers/mailer.rb
|
366
|
-
- spec/railsapps/shared/all/app/views/auto_mailer
|
367
|
-
- spec/railsapps/shared/all/app/views/mailer/normal_email.html.erb
|
368
|
-
- spec/railsapps/shared/all/app/views/mailer/normal_email.text
|
369
|
-
- spec/railsapps/shared/pipeline/app/assets/images/rails.png
|
370
|
-
- spec/railsapps/shared/pipeline/app/assets/stylesheets/email.css.scss
|
371
|
-
- spec/spec_helper.rb
|
372
|
-
- spec/support/have_no_styling_matcher.rb
|
373
|
-
- spec/support/have_selector_matcher.rb
|
374
|
-
- spec/support/have_styling_matcher.rb
|
375
|
-
- spec/support/rails_app.rb
|
180
|
+
test_files: []
|
data/spec/integration_spec.rb
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'tempfile'
|
3
|
-
require 'mail'
|
4
|
-
|
5
|
-
describe "Integrations" do
|
6
|
-
def parse_html_in_email(mail)
|
7
|
-
Nokogiri::HTML.parse mail.html_part.body.decoded
|
8
|
-
end
|
9
|
-
|
10
|
-
rails_apps = [
|
11
|
-
RailsApp.new("Rails 4.2.x", 'rails_42', runner: :bin, asset_pipeline: true, digests: false),
|
12
|
-
RailsApp.new("Rails 4.2.x (with sprockets-rails 3)", 'rails_42_sprockets_rails_3', runner: :bin, asset_pipeline: true, digests: true, sprockets: 3),
|
13
|
-
RailsApp.new("Rails 5.0.x", 'rails_50', runner: :bin, asset_pipeline: true, digests: true, sprockets: 3),
|
14
|
-
RailsApp.new("Rails 5.1.0", 'rails_51', runner: :bin, asset_pipeline: true, digests: true, sprockets: 3)
|
15
|
-
]
|
16
|
-
|
17
|
-
rails_apps.each do |app|
|
18
|
-
describe "with #{app}" do
|
19
|
-
before { app.reset }
|
20
|
-
|
21
|
-
def validate_email(app, email)
|
22
|
-
expect(email.to).to eq(['example@example.org'])
|
23
|
-
expect(email.from).to eq(['john@example.com'])
|
24
|
-
expect(email).to have(2).parts
|
25
|
-
|
26
|
-
expect(email.text_part.body.decoded).not_to match(/<.*>/)
|
27
|
-
|
28
|
-
html = email.html_part.body.decoded
|
29
|
-
expect(html).to include '<!DOCTYPE'
|
30
|
-
expect(html).to include '<head'
|
31
|
-
|
32
|
-
document = parse_html_in_email(email)
|
33
|
-
expect(document).to have_selector('body h1')
|
34
|
-
|
35
|
-
if app.digested?
|
36
|
-
if app.sprockets3_or_later?
|
37
|
-
expected_image_url = 'https://example.app.org/assets/rails-322506f9917889126e81df2833a6eecdf2e394658d53dad347e9882dd4dbf28e.png'
|
38
|
-
else
|
39
|
-
expected_image_url = 'https://example.app.org/assets/rails-231a680f23887d9dd70710ea5efd3c62.png'
|
40
|
-
end
|
41
|
-
elsif app.using_asset_pipeline?
|
42
|
-
expected_image_url = 'https://example.app.org/assets/rails.png'
|
43
|
-
else
|
44
|
-
expected_image_url = 'https://example.app.org/images/rails.png'
|
45
|
-
end
|
46
|
-
expect(document).to have_styling('background' => "url(#{expected_image_url})").at_selector('.image')
|
47
|
-
|
48
|
-
# If we deliver mails we can catch weird problems with headers being invalid
|
49
|
-
email.delivery_method :test
|
50
|
-
email.deliver
|
51
|
-
end
|
52
|
-
|
53
|
-
it "inlines styles for multipart emails" do
|
54
|
-
validate_email app, app.read_email(:normal_email)
|
55
|
-
end
|
56
|
-
|
57
|
-
it "automatically inlines styles with automatic mailer" do
|
58
|
-
validate_email app, app.read_delivered_email(:normal_email)
|
59
|
-
end
|
60
|
-
|
61
|
-
it "automatically inlines styles with automatic mailer and forced delivery" do
|
62
|
-
validate_email app, app.read_delivered_email(:normal_email, force_delivery: true)
|
63
|
-
end
|
64
|
-
|
65
|
-
it "inlines no styles when roadie_options are nil" do
|
66
|
-
email = app.read_delivered_email(:disabled_email)
|
67
|
-
|
68
|
-
expect(email.to).to eq(['example@example.org'])
|
69
|
-
expect(email.from).to eq(['john@example.com'])
|
70
|
-
expect(email).to have(2).parts
|
71
|
-
|
72
|
-
document = parse_html_in_email(email)
|
73
|
-
expect(document).to have_no_styling.at_selector('.image')
|
74
|
-
|
75
|
-
# If we deliver mails we can catch weird problems with headers being invalid
|
76
|
-
email.delivery_method :test
|
77
|
-
email.deliver
|
78
|
-
end
|
79
|
-
|
80
|
-
if app.using_asset_pipeline? || app.digested?
|
81
|
-
it "has a AssetPipelineProvider together with a FilesystemProvider" do
|
82
|
-
expect(app.read_providers).to eq(%w[Roadie::FilesystemProvider Roadie::Rails::AssetPipelineProvider])
|
83
|
-
end
|
84
|
-
else
|
85
|
-
it "only has a FilesystemProvider" do
|
86
|
-
expect(app.read_providers).to eq(["Roadie::FilesystemProvider"])
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'roadie/rspec'
|
3
|
-
|
4
|
-
module Roadie
|
5
|
-
module Rails
|
6
|
-
describe AssetPipelineProvider do
|
7
|
-
let(:pipeline) { FakePipeline.new }
|
8
|
-
|
9
|
-
it "requires a passed pipeline" do
|
10
|
-
expect {
|
11
|
-
AssetPipelineProvider.new(nil)
|
12
|
-
}.to raise_error(ArgumentError)
|
13
|
-
end
|
14
|
-
|
15
|
-
it_behaves_like "roadie asset provider", valid_name: "existing.css", invalid_name: "bad.css" do
|
16
|
-
subject { AssetPipelineProvider.new(pipeline) }
|
17
|
-
before do
|
18
|
-
pipeline.add_asset "existing.css", "existing.css", ""
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
describe "finding stylesheets" do
|
23
|
-
it "searches the asset pipeline" do
|
24
|
-
pipeline.add_asset "good.css", "/path/to/good.css.scss", "body { color: red; }"
|
25
|
-
provider = AssetPipelineProvider.new(pipeline)
|
26
|
-
|
27
|
-
stylesheet = provider.find_stylesheet("good.css")
|
28
|
-
expect(stylesheet.name).to eq("/path/to/good.css.scss (live compiled)")
|
29
|
-
expect(stylesheet.to_s).to eq("body{color:red}")
|
30
|
-
end
|
31
|
-
|
32
|
-
it "ignores query string and asset prefix" do
|
33
|
-
pipeline.add_asset "good.css", "good.css.scss", ""
|
34
|
-
provider = AssetPipelineProvider.new(pipeline)
|
35
|
-
expect(provider.find_stylesheet("/assets/good.css?body=1")).not_to be_nil
|
36
|
-
end
|
37
|
-
|
38
|
-
it "ignores asset digest" do
|
39
|
-
pipeline.add_asset "good.css", "good.css.scss", ""
|
40
|
-
provider = AssetPipelineProvider.new(pipeline)
|
41
|
-
# Old digest length
|
42
|
-
expect(provider.find_stylesheet("/assets/good-a1b605c3ff85456f0bf7bbbe3f59030a.css")).not_to be_nil
|
43
|
-
# New digest length
|
44
|
-
expect(provider.find_stylesheet("/assets/good-00acbfe0213dff8c5ba7232e3dabb3584c9e216bdb489f69d7aa20e0e101f3e6.css")).not_to be_nil
|
45
|
-
end
|
46
|
-
|
47
|
-
it "will still find assets actually named with a hash at the end" do
|
48
|
-
pipeline.add_asset "vendor-a1b605c3ff85456f0bf7bbbe3f59030a.css", "vendor-a1b605c3ff85456f0bf7bbbe3f59030a.css", ""
|
49
|
-
provider = AssetPipelineProvider.new(pipeline)
|
50
|
-
expect(provider.find_stylesheet("/assets/vendor-a1b605c3ff85456f0bf7bbbe3f59030a.css")).not_to be_nil
|
51
|
-
end
|
52
|
-
|
53
|
-
it "supports stylesheets inside subdirectories" do
|
54
|
-
pipeline.add_asset "sub/deep.css", "/path/to/sub/deep.css.scss", "body { color: green; }"
|
55
|
-
provider = AssetPipelineProvider.new(pipeline)
|
56
|
-
|
57
|
-
stylesheet = provider.find_stylesheet("sub/deep.css")
|
58
|
-
expect(stylesheet.name).to eq("/path/to/sub/deep.css.scss (live compiled)")
|
59
|
-
expect(stylesheet.to_s).to eq("body{color:green}")
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
class FakePipeline
|
64
|
-
# Interface
|
65
|
-
def [](name)
|
66
|
-
@files.find { |file| file.matching_name == name }
|
67
|
-
end
|
68
|
-
|
69
|
-
# Test helpers
|
70
|
-
def initialize() @files = [] end
|
71
|
-
def add_asset(matching_name, path, content) @files << AssetFile.new(matching_name, path, content) end
|
72
|
-
private
|
73
|
-
AssetFile = Struct.new(:matching_name, :pathname, :to_s)
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|