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: 819597046bb08e48bb49564df6efc27f6714d5d98989e8969ce489a51dd1c570
4
- data.tar.gz: 25008081cf126416245e0b0c79ef124112c85be2d8e6d67640d4acb0c60b0a9f
3
+ metadata.gz: 7b0c26667a2941fae4ad03348359e5bc395d6f80bb411ea8a79a7f206e22804d
4
+ data.tar.gz: f204d04b9480c0ae14853013ee7f7aa561dce207109bfa07275331d1c6e88434
5
5
  SHA512:
6
- metadata.gz: 56da139726c19e05217c58d6039371cde89ed7168eaf6eada1bf65cd8f439354b9fbf1f12d2dd20bcc72537452a40e4d496add5135282038786080c21c911c61
7
- data.tar.gz: 77585af2abe6b9be71fa576a71cacacda4aa7fd5d208b8c43784008a143bd1f4ccf69a32e5565d3933f331c8de531b556d5ec069562389ce8641e396f91ac975
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?(css_attr)
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?(css_attr)
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?(css_attr)
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]
@@ -1,4 +1,4 @@
1
1
  class Premailer
2
2
  # Premailer version.
3
- VERSION = '1.14.0'.freeze
3
+ VERSION = '1.14.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: premailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dunae