mail_auto_link_obfuscation 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afdc835449188464de0de10eb60cd622c564ca91
|
4
|
+
data.tar.gz: 285be28ed5043ffdab0082b2513b8f3e572cfaf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a29d8b3086cff05e51dc5ad92a0ccaf59fea234b4edf31cfe7bacfed0d38f35959ea51024d4c2adeafaf22511cc145c60e477934872afa5003782f03aa88a811
|
7
|
+
data.tar.gz: 1711fff680ca39d034d6c82440da0e0ba8fa69c0647e9f61c023eb0ece680ea45961649545a383c3f0a22bd9aba0639917d282af22960718b237a8c310f6e961
|
@@ -4,8 +4,8 @@ require 'nokogiri'
|
|
4
4
|
|
5
5
|
module MailAutoLinkObfuscation
|
6
6
|
class AutoLinkObfuscator
|
7
|
-
AUTO_LINKED_EMAIL_PATTERN = /[\w\.%+-]
|
8
|
-
AUTO_LINKED_URL_PATTERN = %r{(?:(?:\w+:)
|
7
|
+
AUTO_LINKED_EMAIL_PATTERN = /[\w\.%+-]+@[\w-]+(?:\.[\w-]+)+/
|
8
|
+
AUTO_LINKED_URL_PATTERN = %r{(?:(?:\w+:)?//[\w-]+(?:\.[\w-]+)*|[\w-]+(?:\.[\w-]+)*\.\w{2,}(?!\.\w))\S*}
|
9
9
|
AUTO_LINKED_PATTERN = Regexp.new([AUTO_LINKED_EMAIL_PATTERN, AUTO_LINKED_URL_PATTERN].join('|'))
|
10
10
|
KEY_CHARS = %r{[@.]+|:*//+}
|
11
11
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail_auto_link_obfuscation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Jundt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|