mail_auto_link_obfuscation 0.2.7 → 0.2.8
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c2948cc471a88e74bf746bde7c3dd0fe62f74b59ea27033141db950e24874698
|
4
|
+
data.tar.gz: fade272238e1ae473be653d41d7ba2573e67c726857d31cf5b2a47cf6fb759f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f5316cd0f3186358fe1caf13ca1aa336213f1f63951d98c5699150abb01626fdae5f035ac31aaeb427a2b53fdfd189aa78810ed518d70e96a63ee0bd1c45ce4
|
7
|
+
data.tar.gz: dec4b7adea39469eec703a2fa34df8a6024cf8741b75974c1a01383da471859c6fc1dade9f79407dd657c3d96068bd4d7930111524a76e6f4728c315388c4432
|
@@ -79,7 +79,7 @@ module MailAutoLinkObfuscation
|
|
79
79
|
|
80
80
|
def transform_auto_linked_pattern(text)
|
81
81
|
text.gsub(AUTO_LINKED_PATTERN) do |match|
|
82
|
-
@link_whitelist.
|
82
|
+
@link_whitelist.any? { |whitelisted_link| match.start_with?(whitelisted_link) } ? match : yield(match)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
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.8
|
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-
|
11
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.6
|
222
|
+
rubygems_version: 2.7.6
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Obfuscate link-like mail content on delivery to prevent auto hyperlinks in
|