mjml-rb 0.2.18 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b82bc910ae0c3ba34cd905a28e8d2f52e349d7a1b099981eb576592a3274ba5b
4
- data.tar.gz: 6e8ffbc112105cb1d11b5ba46f7b7a44bd9377c52498edc34e97c1ee421d4ac2
3
+ metadata.gz: 12ea5b420bd39082c2111d56d58acc08c7f79a198e81a5d9b144cca8965ad90b
4
+ data.tar.gz: 7905538950c04f1d6973a77bdcff821ab14f75276a29258d20a6024f07ea586d
5
5
  SHA512:
6
- metadata.gz: 2eb6640d8405e3f8297a8fbd081530a8565fed4d410b297b78443d93bb1640db84d611aec0746beab99b5183a41d1d7b24d658ea048a2806f4899175c613bc95
7
- data.tar.gz: 5f29c238409b28d5048e1a7b85aff199f93a975afcbf4d59f7d5562c9abadf3c4c2eb5e0768bb3e2da14e976bb9ad99e7743ddc6f3325f6820d5e06c63f0a414
6
+ metadata.gz: 851b51c74451340b5e25742f0966f21bbc1fb3b77dee2ec6eff6bc19846271dfbbf7e8fe7a35d71cf9ef9d119f8aa5558ae0c1cd281e90959e5c69ddb1d0545a
7
+ data.tar.gz: cfd996177dd6703317f5f67e7dd7634eb8b603721db54e5021a65e8930f764466d533b1f2c4effe0d7c76ae3574ebc03984a373c369b317384f9f0ba210ddbd4
@@ -5,6 +5,28 @@ module MjmlRb
5
5
  class Table < Base
6
6
  TAGS = ["mj-table"].freeze
7
7
 
8
+ ALLOWED_ATTRIBUTES = {
9
+ "align" => "enum(left,right,center)",
10
+ "border" => "string",
11
+ "cellpadding" => "string",
12
+ "cellspacing" => "string",
13
+ "color" => "color",
14
+ "container-background-color" => "color",
15
+ "font-family" => "string",
16
+ "font-size" => "string",
17
+ "font-weight" => "string",
18
+ "line-height" => "string",
19
+ "padding" => "unit(px,%){1,4}",
20
+ "padding-top" => "unit(px,%)",
21
+ "padding-right" => "unit(px,%)",
22
+ "padding-bottom" => "unit(px,%)",
23
+ "padding-left" => "unit(px,%)",
24
+ "role" => "string",
25
+ "table-layout" => "enum(auto,fixed)",
26
+ "vertical-align" => "enum(top,bottom,middle)",
27
+ "width" => "string"
28
+ }.freeze
29
+
8
30
  DEFAULTS = {
9
31
  "align" => "left",
10
32
  "border" => "none",
@@ -49,6 +71,7 @@ module MjmlRb
49
71
  "color" => a["color"],
50
72
  "font-family" => a["font-family"],
51
73
  "font-size" => a["font-size"],
74
+ "font-weight" => a["font-weight"],
52
75
  "line-height" => a["line-height"],
53
76
  "table-layout" => a["table-layout"],
54
77
  "width" => a["width"],
@@ -1,3 +1,3 @@
1
1
  module MjmlRb
2
- VERSION = "0.2.18".freeze
2
+ VERSION = "0.2.19".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mjml-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Andriichuk