premailer 1.14.0 → 1.14.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b0c26667a2941fae4ad03348359e5bc395d6f80bb411ea8a79a7f206e22804d
|
4
|
+
data.tar.gz: f204d04b9480c0ae14853013ee7f7aa561dce207109bfa07275331d1c6e88434
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a3ab8546bdffd65325f5f564659dcb2a8ed9d93a8060c5b5fffdc14db08e719de1902f33e1495fd83777996e198d1ea53fee54e267423d5c5ac9ddacbb81755
|
7
|
+
data.tar.gz: 3252d5e22b3f553a9d73b55bc61e1609b6172a1710893871d96abd8a94891a5e1a7e562fb2f623946bf3897f73444bbed692815c908a764dbc0f108ce989dc84
|
@@ -84,7 +84,7 @@ class Premailer
|
|
84
84
|
new_val.gsub!(/;$|\s*!important/, '').strip!
|
85
85
|
|
86
86
|
# For width and height tags, remove px units
|
87
|
-
new_val.gsub!(/(\d+)px/, '\1') if %w[width height].include?(
|
87
|
+
new_val.gsub!(/(\d+)px/, '\1') if %w[width height].include?(html_attr)
|
88
88
|
|
89
89
|
# For color-related tags, convert RGB to hex if specified by options
|
90
90
|
new_val = ensure_hex(new_val) if css_attr.end_with?('color') && @options[:rgb_to_hex_attributes]
|
@@ -88,7 +88,7 @@ class Premailer
|
|
88
88
|
new_val.gsub!(/;$|\s*!important/, '').strip!
|
89
89
|
|
90
90
|
# For width and height tags, remove px units
|
91
|
-
new_val.gsub!(/(\d+)px/, '\1') if %w[width height].include?(
|
91
|
+
new_val.gsub!(/(\d+)px/, '\1') if %w[width height].include?(html_attr)
|
92
92
|
|
93
93
|
# For color-related tags, convert RGB to hex if specified by options
|
94
94
|
new_val = ensure_hex(new_val) if css_attr.end_with?('color') && @options[:rgb_to_hex_attributes]
|
@@ -84,7 +84,7 @@ class Premailer
|
|
84
84
|
new_val.gsub!(/;$|\s*!important/, '').strip!
|
85
85
|
|
86
86
|
# For width and height tags, remove px units
|
87
|
-
new_val.gsub!(/(\d+)px/, '\1') if %w[width height].include?(
|
87
|
+
new_val.gsub!(/(\d+)px/, '\1') if %w[width height].include?(html_attr)
|
88
88
|
|
89
89
|
# For color-related tags, convert RGB to hex if specified by options
|
90
90
|
new_val = ensure_hex(new_val) if css_attr.end_with?('color') && @options[:rgb_to_hex_attributes]
|
data/lib/premailer/version.rb
CHANGED