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: 41d193dd872e293539f5bff5e25c87475e985438
4
- data.tar.gz: 6b0725389bd2f78c87f43c18f951adb39ba16663
3
+ metadata.gz: 0fa45b4ff116ad650003acbbfe9ef3396965d2cf
4
+ data.tar.gz: 95570b9ced521ebcd48ed129c71ef8a47f6b3d91
5
5
  SHA512:
6
- metadata.gz: b24594ba61270faebcf5d82b1d454c83b6081b9ecc044985c3a9fcd4b136d0a403a6da95527466d58cb291d0dc1c717d25a5c77578e94c315872c0dec4b5734c
7
- data.tar.gz: 18f9362dc44978733eb4b22268477dfefd7b3d6ce73fc20b35e3158f5bc30b3dea7e89b8e1c2fa4b0c75aab4cf1d498d132a024861f94d7fb471333357de64b9
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 == 'text/html'
19
- transform_text_body if @mail.content_type == 'text/plain'
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 == 'text/html'
37
+ return unless @mail.content_type.include? 'text/html'
38
38
  @html_body_doc ||= Nokogiri::HTML(@mail.body.decoded)
39
39
  end
40
40
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module MailAutoLinkObfuscation
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  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.0
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: 2016-11-02 00:00:00.000000000 Z
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.5.1
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