premailer 1.22.0 → 1.23.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/rgb_to_hex.rb +8 -7
- data/lib/premailer/version.rb +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea6e9ef14eeb9cdffd7e718f976d9e71e50fb1f154c947c9ee9b97399f1aceeb
|
4
|
+
data.tar.gz: 02d8f609acce2abb421f607e1937e35e4d36f12c609386bef808378f56e9753c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1e580add5528f240e2170bb2aed29171227d35ce8acc31d5c8ceed7ea3f211072f8db8257f9665bef5838c606c9f77a56a792482c3d5f730025a6448374a4bb
|
7
|
+
data.tar.gz: 3afd5c1330b5b1ddff158e77260c0fc87876779e839f5f1beb641ea4c00d424db97c0b5410a566f08ac97a3615cd125c8d9198a77d5edf3ee5959abcc2058440
|
@@ -9,13 +9,14 @@ module AdapterHelper
|
|
9
9
|
def is_rgb?(color)
|
10
10
|
pattern = %r{
|
11
11
|
rgb
|
12
|
-
\(\s*
|
13
|
-
(\d{1,3})
|
14
|
-
|
15
|
-
(\d{1,3})
|
16
|
-
|
17
|
-
(\d{1,3})
|
18
|
-
\s*\)
|
12
|
+
\(\s* # literal open, with optional whitespace
|
13
|
+
(\d{1,3}) # capture 1-3 digits
|
14
|
+
(?:\s*,\s*|\s+) # comma or whitespace
|
15
|
+
(\d{1,3}) # capture 1-3 digits
|
16
|
+
(?:\s*,\s*|\s+) # comma or whitespacee
|
17
|
+
(\d{1,3}) # capture 1-3 digits
|
18
|
+
\s*(?:\/\s*\d*\.?\d*%?)? # optional alpha modifier
|
19
|
+
\s*\) # literal close, with optional whitespace
|
19
20
|
}x
|
20
21
|
|
21
22
|
pattern.match(color)
|
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.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: css_parser
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '1.
|
95
|
+
version: '1.16'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '1.
|
102
|
+
version: '1.16'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: redcarpet
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,7 +198,8 @@ licenses:
|
|
198
198
|
- BSD-3-Clause
|
199
199
|
metadata:
|
200
200
|
yard.run: yri
|
201
|
-
|
201
|
+
rubygems_mfa_required: 'true'
|
202
|
+
post_install_message:
|
202
203
|
rdoc_options: []
|
203
204
|
require_paths:
|
204
205
|
- lib
|
@@ -206,15 +207,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
207
|
requirements:
|
207
208
|
- - ">="
|
208
209
|
- !ruby/object:Gem::Version
|
209
|
-
version:
|
210
|
+
version: '3.0'
|
210
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
212
|
requirements:
|
212
213
|
- - ">="
|
213
214
|
- !ruby/object:Gem::Version
|
214
215
|
version: '0'
|
215
216
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
217
|
-
signing_key:
|
217
|
+
rubygems_version: 3.4.10
|
218
|
+
signing_key:
|
218
219
|
specification_version: 4
|
219
220
|
summary: Preflight for HTML e-mail.
|
220
221
|
test_files: []
|