mail_auto_link_obfuscation 0.2.7 → 0.2.8

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
- SHA1:
3
- metadata.gz: afdc835449188464de0de10eb60cd622c564ca91
4
- data.tar.gz: 285be28ed5043ffdab0082b2513b8f3e572cfaf3
2
+ SHA256:
3
+ metadata.gz: c2948cc471a88e74bf746bde7c3dd0fe62f74b59ea27033141db950e24874698
4
+ data.tar.gz: fade272238e1ae473be653d41d7ba2573e67c726857d31cf5b2a47cf6fb759f1
5
5
  SHA512:
6
- metadata.gz: a29d8b3086cff05e51dc5ad92a0ccaf59fea234b4edf31cfe7bacfed0d38f35959ea51024d4c2adeafaf22511cc145c60e477934872afa5003782f03aa88a811
7
- data.tar.gz: 1711fff680ca39d034d6c82440da0e0ba8fa69c0647e9f61c023eb0ece680ea45961649545a383c3f0a22bd9aba0639917d282af22960718b237a8c310f6e961
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.include?(match) ? match : yield(match)
82
+ @link_whitelist.any? { |whitelisted_link| match.start_with?(whitelisted_link) } ? match : yield(match)
83
83
  end
84
84
  end
85
85
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailAutoLinkObfuscation
4
- VERSION = '0.2.7'
4
+ VERSION = '0.2.8'
5
5
  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.7
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-01-26 00:00:00.000000000 Z
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.14
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