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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/html_to_plain_text.rb +1 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 119fe11f894f031f199ea631969078fefb53f417
4
- data.tar.gz: 5882b3a0913030e44765b6506311682a2dd2e9ec
3
+ metadata.gz: d2fcc1c79047bd747cb209680ee94d2e4e8a0f41
4
+ data.tar.gz: 3e31ccae62165b880f23447420ac370e5bd6eb19
5
5
  SHA512:
6
- metadata.gz: 1cb91d616d5ebeb4a6a23f92005e8a4e7616d7f565cd1540b499e919c35106f9adb45083b6d2453629c3be73eb28d13455972ce21979cf98c21d95c81f4dd3eb
7
- data.tar.gz: fd7aacdc78b1c2cf4ee23515a5f1ef8cf8975b9569deec96f19ca6178e6ef4fece11c79ec4a992c1452246ab6fba90fe15277b217500deecd4f63c3b67561b8b
6
+ metadata.gz: 642edbc9855a5a9a0a00a204e077f32e57efc0141843fcb2355c3fd86881ef2afa7672526dec45e48195c2fe8010e9751de9dd5e4bbb4e95437fe124bfbcd6ef
7
+ data.tar.gz: 73ee95b2609f709c19187a5b1bd93025daa40af0d730fe69623d8a4be176cf8a5858526bc7456148e8d84a9e8da315f2520c7db3f9e10c8f84c71882ab63c734
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -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.3
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 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri