mail_auto_link_obfuscation 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fa45b4ff116ad650003acbbfe9ef3396965d2cf
|
|
4
|
+
data.tar.gz: 95570b9ced521ebcd48ed129c71ef8a47f6b3d91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 053a37c48d93dba7395ae5f52e8214288b1bc35ed146e63a687ee227222312a11897fcffa0a792894d60fcf0c59994e17c2b5c92e6390e817fb7a2b33309858c
|
|
7
|
+
data.tar.gz: aa692657c059d83f4614d4c6d76a7992bde42fa052f4aeeb9378d4e4423cd729bfdddd92be58a4e740753b21258f934d5da831e4641fbd1dd550442efb679525
|
|
@@ -15,8 +15,8 @@ module MailAutoLinkObfuscation
|
|
|
15
15
|
|
|
16
16
|
def run
|
|
17
17
|
extract_link_whitelist_from_html
|
|
18
|
-
transform_html_body if @mail.content_type
|
|
19
|
-
transform_text_body if @mail.content_type
|
|
18
|
+
transform_html_body if @mail.content_type.include? 'text/html'
|
|
19
|
+
transform_text_body if @mail.content_type.include? 'text/plain'
|
|
20
20
|
transform_html_part if @mail.html_part
|
|
21
21
|
transform_text_part if @mail.text_part
|
|
22
22
|
@mail
|
|
@@ -34,7 +34,7 @@ module MailAutoLinkObfuscation
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def html_body_doc
|
|
37
|
-
return unless @mail.content_type
|
|
37
|
+
return unless @mail.content_type.include? 'text/html'
|
|
38
38
|
@html_body_doc ||= Nokogiri::HTML(@mail.body.decoded)
|
|
39
39
|
end
|
|
40
40
|
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oliver Jundt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -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.
|
|
222
|
+
rubygems_version: 2.6.8
|
|
223
223
|
signing_key:
|
|
224
224
|
specification_version: 4
|
|
225
225
|
summary: Obfuscate link-like mail content on delivery to prevent auto hyperlinks in
|