premailer 1.14.2 → 1.14.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/premailer/premailer.rb +3 -9
- data/lib/premailer/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e62efcd15fd7c988efb25a7dc326adb7ffd4531bd3aabff7fe0de0a7099ab9e8
|
4
|
+
data.tar.gz: 4cee57fc796dd4409c96b6ff5c067441d182a5e0a44604ed2b6b02836018d625
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b888135d71b9b96555264ec940bc06b19d86019e4a446751be02fcfd6d2bfc7862357edee3405b4076c23e701a5794767799a862133f7aef91fa650c5979db80
|
7
|
+
data.tar.gz: a8f45e8985ef02a82825e29b24653351430ee3f8482696d276858ea3deaf423499a323fa897d19533b120fea9ab2a38be2bf1f229f41572f61745aa1f3e9c958
|
data/lib/premailer/premailer.rb
CHANGED
@@ -178,7 +178,7 @@ class Premailer
|
|
178
178
|
# @option options [String] :output_encoding Output encoding option for Nokogiri adapter. Should be set to "US-ASCII" to output HTML entities instead of Unicode characters.
|
179
179
|
# @option options [Boolean] :create_shorthands Combine several properties into a shorthand one, e.g. font: style weight size. Default is true.
|
180
180
|
# @option options [Boolean] :html_fragment Handle HTML fragment without any HTML content wrappers. Default is false.
|
181
|
-
# @option options [Boolean] :drop_unmergeable_css_rules Do not include unmergeable css rules in a <tt><style><tt> tag. Default is false.
|
181
|
+
# @option options [Boolean] :drop_unmergeable_css_rules Do not include unmergeable css rules in a <tt><style><tt> tag. Default is false.
|
182
182
|
def initialize(html, options = {})
|
183
183
|
@options = {:warn_level => Warnings::SAFE,
|
184
184
|
:line_length => 65,
|
@@ -499,14 +499,8 @@ public
|
|
499
499
|
def self.canonicalize(uri) # :nodoc:
|
500
500
|
u = uri.kind_of?(Addressable::URI) ? uri : Addressable::URI.parse(uri.to_s)
|
501
501
|
u.normalize!
|
502
|
-
|
503
|
-
|
504
|
-
$1 == '..' ? match : ''
|
505
|
-
} do end
|
506
|
-
newpath = newpath.gsub(%r{/\./}, '/').sub(%r{/\.\z}, '/')
|
507
|
-
u.path = newpath
|
508
|
-
u.to_s
|
509
|
-
end
|
502
|
+
u.to_s
|
503
|
+
end
|
510
504
|
|
511
505
|
# Check <tt>CLIENT_SUPPORT_FILE</tt> for any CSS warnings
|
512
506
|
def check_client_support # :nodoc:
|
data/lib/premailer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: premailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: css_parser
|
@@ -207,7 +207,8 @@ files:
|
|
207
207
|
- lib/premailer/version.rb
|
208
208
|
- misc/client_support.yaml
|
209
209
|
homepage: https://github.com/premailer/premailer
|
210
|
-
licenses:
|
210
|
+
licenses:
|
211
|
+
- BSD-3-Clause
|
211
212
|
metadata:
|
212
213
|
yard.run: yri
|
213
214
|
post_install_message:
|
@@ -225,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
226
|
- !ruby/object:Gem::Version
|
226
227
|
version: '0'
|
227
228
|
requirements: []
|
228
|
-
rubygems_version: 3.
|
229
|
+
rubygems_version: 3.2.16
|
229
230
|
signing_key:
|
230
231
|
specification_version: 4
|
231
232
|
summary: Preflight for HTML e-mail.
|