premailer 1.17.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/premailer/adapter/nokogiri.rb +6 -2
- data/lib/premailer/premailer.rb +2 -1
- data/lib/premailer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4a7dce51bfedaef59c17b84a78c74af9dbd6af2a32ae2e64bbb8105346a152e
|
4
|
+
data.tar.gz: cc17465063476f728e4dd1308909dfd0c240b32f53d250dafa307da7b1fde01a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a402ccb956b7c663190ac6adffdfe56ed38352e58a1dd599d5f1999f7417aeae4e3f820bc1745b32c937be5334b3046fb6fd64be9b42d6dd362b847c49f0ac12
|
7
|
+
data.tar.gz: f9ce454c789ad0082b98bc246cfd055a27d24e2dad37edf95921595ae30c377151f713877c346573a55ac13236fcadfa8912035d3e7efd4cd525b07df5959745
|
@@ -63,8 +63,12 @@ class Premailer
|
|
63
63
|
|
64
64
|
declarations = []
|
65
65
|
style.scan(/\[SPEC\=([\d]+)\[(.[^\]\]]*)\]\]/).each do |declaration|
|
66
|
-
|
67
|
-
|
66
|
+
begin
|
67
|
+
rs = CssParser::RuleSet.new(nil, declaration[1].to_s, declaration[0].to_i)
|
68
|
+
declarations << rs
|
69
|
+
rescue ArgumentError => e
|
70
|
+
raise e if @options[:rule_set_exceptions]
|
71
|
+
end
|
68
72
|
end
|
69
73
|
|
70
74
|
# Perform style folding
|
data/lib/premailer/premailer.rb
CHANGED
@@ -507,7 +507,8 @@ public
|
|
507
507
|
|
508
508
|
# Check <tt>CLIENT_SUPPORT_FILE</tt> for any CSS warnings
|
509
509
|
def check_client_support # :nodoc:
|
510
|
-
|
510
|
+
kwargs = RUBY_VERSION >= "3.1.0" ? { aliases: true } : {}
|
511
|
+
@client_support ||= YAML::load(File.open(CLIENT_SUPPORT_FILE), **kwargs)
|
511
512
|
|
512
513
|
warnings = []
|
513
514
|
properties = []
|
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.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: css_parser
|