html_to_plain_text 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/html_to_plain_text.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2fcc1c79047bd747cb209680ee94d2e4e8a0f41
|
4
|
+
data.tar.gz: 3e31ccae62165b880f23447420ac370e5bd6eb19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 642edbc9855a5a9a0a00a204e077f32e57efc0141843fcb2355c3fd86881ef2afa7672526dec45e48195c2fe8010e9751de9dd5e4bbb4e95437fe124bfbcd6ef
|
7
|
+
data.tar.gz: 73ee95b2609f709c19187a5b1bd93025daa40af0d730fe69623d8a4be176cf8a5858526bc7456148e8d84a9e8da315f2520c7db3f9e10c8f84c71882ab63c734
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/lib/html_to_plain_text.rb
CHANGED
@@ -88,6 +88,7 @@ module HtmlToPlainText
|
|
88
88
|
if href &&
|
89
89
|
href =~ ABSOLUTE_URL_PATTERN &&
|
90
90
|
node.text =~ NOT_WHITESPACE_PATTERN &&
|
91
|
+
node.text != href &&
|
91
92
|
node.text != href[NON_PROTOCOL_PATTERN, 1] # use only text for <a href="mailto:a@b.com">a@b.com</a>
|
92
93
|
out << " (#{href}) "
|
93
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html_to_plain_text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Durand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|