inky-rb 1.3.8.0 → 1.4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/inky.gemspec +5 -5
  3. data/lib/inky/component_factory.rb +15 -8
  4. data/lib/inky/rails/version.rb +1 -1
  5. data/lib/inky.rb +3 -1
  6. data/spec/_cases_output/button/no_link.inky +1 -1
  7. data/spec/_cases_output/button/with_expand_class.inky +3 -3
  8. data/spec/_cases_output/button/with_extra_attr.inky +3 -0
  9. data/spec/_cases_output/button/with_image.inky +2 -2
  10. data/spec/_cases_output/button/with_link.inky +2 -2
  11. data/spec/_cases_output/button/with_link_and_extra_attr.inky +3 -0
  12. data/spec/_cases_output/button/with_tricky_class.inky +13 -13
  13. data/spec/_cases_output/callout/basic.inky +1 -1
  14. data/spec/_cases_output/callout/with_attributes.inky +2 -2
  15. data/spec/_cases_output/general/multiple_root.inky +2 -2
  16. data/spec/_cases_output/general/root_within_text.inky +5 -1
  17. data/spec/_cases_output/general/void_html_elements.inky +2 -2
  18. data/spec/_cases_output/grid/columns.inky +2 -2
  19. data/spec/_cases_output/grid/row_with_columns.inky +3 -3
  20. data/spec/_cases_output/h_line/basic.inky +1 -0
  21. data/spec/_cases_output/h_line/h_line.inky +2 -0
  22. data/spec/_cases_output/h_line/multiple.inky +3 -0
  23. data/spec/_cases_output/h_line/with_attr.inky +1 -0
  24. data/spec/_cases_output/menu/menu.inky +2 -2
  25. data/spec/_cases_output/menu/menu_with_align.inky +2 -2
  26. data/spec/_cases_output/menu/menu_with_items.inky +2 -2
  27. data/spec/_cases_output/spacer/basic.inky +1 -1
  28. data/spec/_cases_output/spacer/with_attr.inky +6 -0
  29. data/spec/_cases_output/spacer/with_size.inky +1 -1
  30. data/spec/_cases_output/spacer/with_size_lg.inky +1 -1
  31. data/spec/_cases_output/spacer/with_size_sm.inky +1 -1
  32. data/spec/_cases_output/spacer/with_size_sm_and_lg.inky +1 -1
  33. data/spec/_cases_output/spacer/with_sizes_and_attr.inky +6 -0
  34. data/spec/_cases_output/wrapper/basic.inky +1 -1
  35. data/spec/_cases_output/wrapper/with_align.inky +1 -1
  36. data/spec/_cases_output/wrapper/with_attributes.inky +1 -1
  37. data/spec/cases/button/with_extra_attr.inky +3 -0
  38. data/spec/cases/button/with_link.inky +1 -1
  39. data/spec/cases/button/with_link_and_extra_attr.inky +3 -0
  40. data/spec/cases/h_line/basic.inky +1 -0
  41. data/spec/cases/h_line/multiple.inky +8 -0
  42. data/spec/cases/h_line/with_attr.inky +2 -0
  43. data/spec/cases/spacer/with_attr.inky +6 -0
  44. data/spec/cases/spacer/with_size.inky +1 -1
  45. data/spec/cases/spacer/with_size_lg.inky +1 -1
  46. data/spec/cases/spacer/with_size_sm.inky +1 -1
  47. data/spec/cases/spacer/with_size_sm_and_lg.inky +1 -1
  48. data/spec/cases/spacer/with_sizes_and_attr.inky +6 -0
  49. data/spec/components_spec.rb +48 -48
  50. data/spec/grid_spec.rb +38 -38
  51. data/spec/spec_helper.rb +0 -1
  52. data/spec/test_app/log/test.log +663 -0
  53. data/spec/test_app/spec/features/inky_spec.rb +3 -3
  54. metadata +130 -102
@@ -38,9 +38,9 @@ describe 'Rails', type: :feature do
38
38
  <!DOCTYPE html>
39
39
  <html><body>
40
40
  <container>
41
- <table class="button"><tr><td>
42
- <table><tr><td><a href="bar">Click me</a></td></tr></table>
43
- </td></tr></table>
41
+ <table class="button"><tbody><tr><td>
42
+ <table><tbody><tr><td><a href="bar">Click me</a></td></tr></tbody></table>
43
+ </td></tr></tbody></table>
44
44
  </container>
45
45
  </body></html>
46
46
  HTML
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inky-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8.0
4
+ version: 1.4.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - ZURB
8
- autorequire:
7
+ - Foundation
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-27 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foundation_emails
@@ -136,11 +136,10 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- description: 'Inky is an HTML-based templating language that converts simple HTML
140
- into complex, responsive email-ready HTML. Designed for Foundation for Emails, a
141
- responsive email framework from ZURB. '
139
+ description: Inky is an HTML-based templating language that converts simple HTML into
140
+ complex, responsive email-ready HTML. Designed for Foundation for Emails
142
141
  email:
143
- - foundation@zurb.com
142
+ - contact@get.foundation
144
143
  executables: []
145
144
  extensions: []
146
145
  extra_rdoc_files: []
@@ -170,8 +169,10 @@ files:
170
169
  - lib/inky/rails/version.rb
171
170
  - spec/_cases_output/button/no_link.inky
172
171
  - spec/_cases_output/button/with_expand_class.inky
172
+ - spec/_cases_output/button/with_extra_attr.inky
173
173
  - spec/_cases_output/button/with_image.inky
174
174
  - spec/_cases_output/button/with_link.inky
175
+ - spec/_cases_output/button/with_link_and_extra_attr.inky
175
176
  - spec/_cases_output/button/with_tricky_class.inky
176
177
  - spec/_cases_output/callout/basic.inky
177
178
  - spec/_cases_output/callout/with_attributes.inky
@@ -185,22 +186,30 @@ files:
185
186
  - spec/_cases_output/grid/container_with_align.inky
186
187
  - spec/_cases_output/grid/row.inky
187
188
  - spec/_cases_output/grid/row_with_columns.inky
189
+ - spec/_cases_output/h_line/basic.inky
190
+ - spec/_cases_output/h_line/h_line.inky
191
+ - spec/_cases_output/h_line/multiple.inky
192
+ - spec/_cases_output/h_line/with_attr.inky
188
193
  - spec/_cases_output/menu/item.inky
189
194
  - spec/_cases_output/menu/menu.inky
190
195
  - spec/_cases_output/menu/menu_with_align.inky
191
196
  - spec/_cases_output/menu/menu_with_items.inky
192
197
  - spec/_cases_output/spacer/basic.inky
198
+ - spec/_cases_output/spacer/with_attr.inky
193
199
  - spec/_cases_output/spacer/with_size.inky
194
200
  - spec/_cases_output/spacer/with_size_lg.inky
195
201
  - spec/_cases_output/spacer/with_size_sm.inky
196
202
  - spec/_cases_output/spacer/with_size_sm_and_lg.inky
203
+ - spec/_cases_output/spacer/with_sizes_and_attr.inky
197
204
  - spec/_cases_output/wrapper/basic.inky
198
205
  - spec/_cases_output/wrapper/with_align.inky
199
206
  - spec/_cases_output/wrapper/with_attributes.inky
200
207
  - spec/cases/button/no_link.inky
201
208
  - spec/cases/button/with_expand_class.inky
209
+ - spec/cases/button/with_extra_attr.inky
202
210
  - spec/cases/button/with_image.inky
203
211
  - spec/cases/button/with_link.inky
212
+ - spec/cases/button/with_link_and_extra_attr.inky
204
213
  - spec/cases/button/with_tricky_class.inky
205
214
  - spec/cases/callout/basic.inky
206
215
  - spec/cases/callout/with_attributes.inky
@@ -213,15 +222,20 @@ files:
213
222
  - spec/cases/grid/container_with_align.inky
214
223
  - spec/cases/grid/row.inky
215
224
  - spec/cases/grid/row_with_columns.inky
225
+ - spec/cases/h_line/basic.inky
226
+ - spec/cases/h_line/multiple.inky
227
+ - spec/cases/h_line/with_attr.inky
216
228
  - spec/cases/menu/item.inky
217
229
  - spec/cases/menu/menu.inky
218
230
  - spec/cases/menu/menu_with_align.inky
219
231
  - spec/cases/menu/menu_with_items.inky
220
232
  - spec/cases/spacer/basic.inky
233
+ - spec/cases/spacer/with_attr.inky
221
234
  - spec/cases/spacer/with_size.inky
222
235
  - spec/cases/spacer/with_size_lg.inky
223
236
  - spec/cases/spacer/with_size_sm.inky
224
237
  - spec/cases/spacer/with_size_sm_and_lg.inky
238
+ - spec/cases/spacer/with_sizes_and_attr.inky
225
239
  - spec/cases/wrapper/basic.inky
226
240
  - spec/cases/wrapper/with_align.inky
227
241
  - spec/cases/wrapper/with_attributes.inky
@@ -274,11 +288,11 @@ files:
274
288
  - spec/test_app/log/test.log
275
289
  - spec/test_app/spec/features/inky_spec.rb
276
290
  - spec/test_app/spec/helper.rb
277
- homepage: https://github.com/zurb/inky-rb
291
+ homepage: https://github.com/foundation/inky-rb
278
292
  licenses:
279
293
  - MIT
280
294
  metadata: {}
281
- post_install_message:
295
+ post_install_message:
282
296
  rdoc_options: []
283
297
  require_paths:
284
298
  - lib
@@ -293,115 +307,129 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
307
  - !ruby/object:Gem::Version
294
308
  version: '0'
295
309
  requirements: []
296
- rubygems_version: 3.1.2
297
- signing_key:
310
+ rubygems_version: 3.2.3
311
+ signing_key:
298
312
  specification_version: 4
299
313
  summary: Inky is an HTML-based templating language that converts simple HTML into
300
- complex, responsive email-ready HTML. Designed for Foundation for Emails, a responsive
301
- email framework from ZURB.
314
+ complex, responsive email-ready HTML. Designed for Foundation for Emails
302
315
  test_files:
316
+ - spec/_cases_output/button/no_link.inky
317
+ - spec/_cases_output/button/with_expand_class.inky
318
+ - spec/_cases_output/button/with_extra_attr.inky
319
+ - spec/_cases_output/button/with_image.inky
320
+ - spec/_cases_output/button/with_link.inky
321
+ - spec/_cases_output/button/with_link_and_extra_attr.inky
322
+ - spec/_cases_output/button/with_tricky_class.inky
323
+ - spec/_cases_output/callout/basic.inky
324
+ - spec/_cases_output/callout/with_attributes.inky
325
+ - spec/_cases_output/general/empty_attributes.inky
326
+ - spec/_cases_output/general/multiple_root.inky
327
+ - spec/_cases_output/general/no_tag.inky
328
+ - spec/_cases_output/general/root_within_text.inky
329
+ - spec/_cases_output/general/void_html_elements.inky
330
+ - spec/_cases_output/grid/columns.inky
331
+ - spec/_cases_output/grid/container.inky
332
+ - spec/_cases_output/grid/container_with_align.inky
333
+ - spec/_cases_output/grid/row.inky
334
+ - spec/_cases_output/grid/row_with_columns.inky
335
+ - spec/_cases_output/h_line/basic.inky
336
+ - spec/_cases_output/h_line/h_line.inky
337
+ - spec/_cases_output/h_line/multiple.inky
338
+ - spec/_cases_output/h_line/with_attr.inky
339
+ - spec/_cases_output/menu/item.inky
340
+ - spec/_cases_output/menu/menu.inky
341
+ - spec/_cases_output/menu/menu_with_align.inky
342
+ - spec/_cases_output/menu/menu_with_items.inky
343
+ - spec/_cases_output/spacer/basic.inky
344
+ - spec/_cases_output/spacer/with_attr.inky
345
+ - spec/_cases_output/spacer/with_size.inky
346
+ - spec/_cases_output/spacer/with_size_lg.inky
347
+ - spec/_cases_output/spacer/with_size_sm.inky
348
+ - spec/_cases_output/spacer/with_size_sm_and_lg.inky
349
+ - spec/_cases_output/spacer/with_sizes_and_attr.inky
350
+ - spec/_cases_output/wrapper/basic.inky
351
+ - spec/_cases_output/wrapper/with_align.inky
352
+ - spec/_cases_output/wrapper/with_attributes.inky
353
+ - spec/cases/button/no_link.inky
354
+ - spec/cases/button/with_expand_class.inky
355
+ - spec/cases/button/with_extra_attr.inky
356
+ - spec/cases/button/with_image.inky
357
+ - spec/cases/button/with_link.inky
358
+ - spec/cases/button/with_link_and_extra_attr.inky
359
+ - spec/cases/button/with_tricky_class.inky
360
+ - spec/cases/callout/basic.inky
361
+ - spec/cases/callout/with_attributes.inky
362
+ - spec/cases/general/multiple_root.inky
363
+ - spec/cases/general/no_tag.inky
364
+ - spec/cases/general/root_within_text.inky
365
+ - spec/cases/general/void_html_elements.inky
366
+ - spec/cases/grid/columns.inky
367
+ - spec/cases/grid/container.inky
368
+ - spec/cases/grid/container_with_align.inky
369
+ - spec/cases/grid/row.inky
370
+ - spec/cases/grid/row_with_columns.inky
371
+ - spec/cases/h_line/basic.inky
372
+ - spec/cases/h_line/multiple.inky
373
+ - spec/cases/h_line/with_attr.inky
374
+ - spec/cases/menu/item.inky
375
+ - spec/cases/menu/menu.inky
376
+ - spec/cases/menu/menu_with_align.inky
377
+ - spec/cases/menu/menu_with_items.inky
378
+ - spec/cases/spacer/basic.inky
379
+ - spec/cases/spacer/with_attr.inky
380
+ - spec/cases/spacer/with_size.inky
381
+ - spec/cases/spacer/with_size_lg.inky
382
+ - spec/cases/spacer/with_size_sm.inky
383
+ - spec/cases/spacer/with_size_sm_and_lg.inky
384
+ - spec/cases/spacer/with_sizes_and_attr.inky
385
+ - spec/cases/wrapper/basic.inky
386
+ - spec/cases/wrapper/with_align.inky
387
+ - spec/cases/wrapper/with_attributes.inky
388
+ - spec/cases_spec.rb
389
+ - spec/components_spec.rb
390
+ - spec/configuration_spec.rb
391
+ - spec/grid_spec.rb
392
+ - spec/inky_spec.rb
303
393
  - spec/spec_helper.rb
304
- - spec/test_app/app/mailers/application_mailer.rb
394
+ - spec/test_app/Rakefile
305
395
  - spec/test_app/app/controllers/application_controller.rb
306
396
  - spec/test_app/app/controllers/inky_controller.rb
307
- - spec/test_app/app/views/inky/simple.html.inky
308
- - spec/test_app/app/views/inky/layout.html.erb
309
- - spec/test_app/app/views/inky/explicit_slim.html.inky-slim
397
+ - spec/test_app/app/helpers/application_helper.rb
398
+ - spec/test_app/app/mailers/application_mailer.rb
310
399
  - spec/test_app/app/views/inky/_inky_partial.html.inky
311
- - spec/test_app/app/views/inky/non_inky.html.erb
312
400
  - spec/test_app/app/views/inky/explicit_builder.html.inky-builder
401
+ - spec/test_app/app/views/inky/explicit_slim.html.inky-slim
402
+ - spec/test_app/app/views/inky/layout.html.erb
403
+ - spec/test_app/app/views/inky/non_inky.html.erb
404
+ - spec/test_app/app/views/inky/simple.html.inky
313
405
  - spec/test_app/app/views/inky/slim.html.inky
314
- - spec/test_app/app/views/layouts/inky_layout.html.inky
315
406
  - spec/test_app/app/views/layouts/application.html.erb
316
- - spec/test_app/app/helpers/application_helper.rb
317
- - spec/test_app/config/secrets.yml
318
- - spec/test_app/config/routes.rb
319
- - spec/test_app/config/locales/en.yml
407
+ - spec/test_app/app/views/layouts/inky_layout.html.inky
408
+ - spec/test_app/config/application.rb
409
+ - spec/test_app/config/boot.rb
320
410
  - spec/test_app/config/cable.yml
321
- - spec/test_app/config/environments/production.rb
411
+ - spec/test_app/config/database.yml
412
+ - spec/test_app/config/environment.rb
322
413
  - spec/test_app/config/environments/development.rb
414
+ - spec/test_app/config/environments/production.rb
323
415
  - spec/test_app/config/environments/test.rb
324
- - spec/test_app/config/spring.rb
325
- - spec/test_app/config/environment.rb
326
- - spec/test_app/config/application.rb
327
- - spec/test_app/config/puma.rb
328
- - spec/test_app/config/database.yml
329
- - spec/test_app/config/boot.rb
330
416
  - spec/test_app/config/initializers/application_controller_renderer.rb
417
+ - spec/test_app/config/initializers/assets.rb
331
418
  - spec/test_app/config/initializers/backtrace_silencers.rb
332
- - spec/test_app/config/initializers/mime_types.rb
419
+ - spec/test_app/config/initializers/cookies_serializer.rb
333
420
  - spec/test_app/config/initializers/filter_parameter_logging.rb
334
- - spec/test_app/config/initializers/session_store.rb
335
- - spec/test_app/config/initializers/wrap_parameters.rb
421
+ - spec/test_app/config/initializers/inflections.rb
422
+ - spec/test_app/config/initializers/mime_types.rb
336
423
  - spec/test_app/config/initializers/new_framework_defaults.rb
337
- - spec/test_app/config/initializers/assets.rb
338
- - spec/test_app/config/initializers/cookies_serializer.rb
339
424
  - spec/test_app/config/initializers/secret_token.rb
340
- - spec/test_app/config/initializers/inflections.rb
425
+ - spec/test_app/config/initializers/session_store.rb
426
+ - spec/test_app/config/initializers/wrap_parameters.rb
427
+ - spec/test_app/config/locales/en.yml
428
+ - spec/test_app/config/puma.rb
429
+ - spec/test_app/config/routes.rb
430
+ - spec/test_app/config/secrets.yml
431
+ - spec/test_app/config/spring.rb
341
432
  - spec/test_app/config.ru
342
- - spec/test_app/spec/helper.rb
343
- - spec/test_app/spec/features/inky_spec.rb
344
- - spec/test_app/Rakefile
345
433
  - spec/test_app/log/test.log
346
- - spec/cases_spec.rb
347
- - spec/grid_spec.rb
348
- - spec/configuration_spec.rb
349
- - spec/_cases_output/wrapper/basic.inky
350
- - spec/_cases_output/wrapper/with_align.inky
351
- - spec/_cases_output/wrapper/with_attributes.inky
352
- - spec/_cases_output/general/no_tag.inky
353
- - spec/_cases_output/general/multiple_root.inky
354
- - spec/_cases_output/general/void_html_elements.inky
355
- - spec/_cases_output/general/empty_attributes.inky
356
- - spec/_cases_output/general/root_within_text.inky
357
- - spec/_cases_output/spacer/basic.inky
358
- - spec/_cases_output/spacer/with_size_sm.inky
359
- - spec/_cases_output/spacer/with_size_lg.inky
360
- - spec/_cases_output/spacer/with_size_sm_and_lg.inky
361
- - spec/_cases_output/spacer/with_size.inky
362
- - spec/_cases_output/callout/basic.inky
363
- - spec/_cases_output/callout/with_attributes.inky
364
- - spec/_cases_output/button/with_tricky_class.inky
365
- - spec/_cases_output/button/with_expand_class.inky
366
- - spec/_cases_output/button/with_link.inky
367
- - spec/_cases_output/button/no_link.inky
368
- - spec/_cases_output/button/with_image.inky
369
- - spec/_cases_output/menu/menu_with_items.inky
370
- - spec/_cases_output/menu/menu_with_align.inky
371
- - spec/_cases_output/menu/menu.inky
372
- - spec/_cases_output/menu/item.inky
373
- - spec/_cases_output/grid/row.inky
374
- - spec/_cases_output/grid/row_with_columns.inky
375
- - spec/_cases_output/grid/columns.inky
376
- - spec/_cases_output/grid/container.inky
377
- - spec/_cases_output/grid/container_with_align.inky
378
- - spec/cases/wrapper/basic.inky
379
- - spec/cases/wrapper/with_align.inky
380
- - spec/cases/wrapper/with_attributes.inky
381
- - spec/cases/general/no_tag.inky
382
- - spec/cases/general/multiple_root.inky
383
- - spec/cases/general/void_html_elements.inky
384
- - spec/cases/general/root_within_text.inky
385
- - spec/cases/spacer/basic.inky
386
- - spec/cases/spacer/with_size_sm.inky
387
- - spec/cases/spacer/with_size_lg.inky
388
- - spec/cases/spacer/with_size_sm_and_lg.inky
389
- - spec/cases/spacer/with_size.inky
390
- - spec/cases/callout/basic.inky
391
- - spec/cases/callout/with_attributes.inky
392
- - spec/cases/button/with_tricky_class.inky
393
- - spec/cases/button/with_expand_class.inky
394
- - spec/cases/button/with_link.inky
395
- - spec/cases/button/no_link.inky
396
- - spec/cases/button/with_image.inky
397
- - spec/cases/menu/menu_with_items.inky
398
- - spec/cases/menu/menu_with_align.inky
399
- - spec/cases/menu/menu.inky
400
- - spec/cases/menu/item.inky
401
- - spec/cases/grid/row.inky
402
- - spec/cases/grid/row_with_columns.inky
403
- - spec/cases/grid/columns.inky
404
- - spec/cases/grid/container.inky
405
- - spec/cases/grid/container_with_align.inky
406
- - spec/components_spec.rb
407
- - spec/inky_spec.rb
434
+ - spec/test_app/spec/features/inky_spec.rb
435
+ - spec/test_app/spec/helper.rb