premailer 1.10.3 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/premailer/html_to_plain_text.rb +1 -1
- data/lib/premailer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b5558b61431fcbad3d7fe4136960b75e8cecec6
|
4
|
+
data.tar.gz: bd3c0941de04600fae48c0e2d7d2104a676fb0a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a62d80a9238c76cfed3b1ad398c98221e6ece39a289d4b9435862f2c0191cba8ac7461590cdc8406e3eecb765d2c96faa51bc00158edd6abdee2baee76d041e
|
7
|
+
data.tar.gz: 5533bcce2a737c63f4ee3ded37d3f765739925bf89739955e068f3e79889a1e5e02ffbe6dffd13ec7f733e00c3b9d5feaba6205bf95c542cfe4e11989c253a6c
|
@@ -31,7 +31,7 @@ module HtmlToPlainText
|
|
31
31
|
txt.gsub!(/<img.+?alt=\'([^\']*)\'[^>]*\>/i, '\1')
|
32
32
|
|
33
33
|
# links
|
34
|
-
txt.gsub!(/<a\s
|
34
|
+
txt.gsub!(/<a\s[^\n]*?href=["'](mailto:)?([^"']*)["'][^>]*>(.*?)<\/a>/im) do |s|
|
35
35
|
if $3.empty?
|
36
36
|
''
|
37
37
|
elsif $3.strip.downcase == $2.strip.downcase
|
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.10.
|
4
|
+
version: 1.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: css_parser
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.6.
|
229
|
+
rubygems_version: 2.6.12
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Preflight for HTML e-mail.
|