mail_auto_link_obfuscation 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -0
- data/Gemfile +1 -0
- data/Guardfile +1 -0
- data/Rakefile +1 -0
- data/lib/mail_auto_link_obfuscation.rb +1 -0
- data/lib/mail_auto_link_obfuscation/auto_link_obfuscator.rb +2 -1
- data/lib/mail_auto_link_obfuscation/automatic.rb +1 -0
- data/lib/mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery.rb +1 -0
- data/lib/mail_auto_link_obfuscation/railtie.rb +1 -0
- data/lib/mail_auto_link_obfuscation/version.rb +2 -1
- data/mail_auto_link_obfuscation.gemspec +5 -5
- metadata +44 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b081b2e17a6fd7bccbd79c7e56d19120b73f6dd1
|
4
|
+
data.tar.gz: 066186765a62cd7ed246b90d13ef79186715326a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f2f66e344a2793b854010061860994ea6bbef96d9f05f2b68891a45fb85854200506cc2dd0316074bee52cd78979403f82803f77f1c7c448197fcce311cc43
|
7
|
+
data.tar.gz: 2ddbdf520e79955ef9ba975bb75df44d0f83816f89773de49da46def0c1fa23bfe43dedaa0a68252972f357a9e2f087814c6b8df6044e3ff1e7484136418ae40
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Guardfile
CHANGED
data/Rakefile
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'nokogiri'
|
3
4
|
|
4
5
|
module MailAutoLinkObfuscation
|
5
6
|
class AutoLinkObfuscator
|
6
7
|
AUTO_LINKED_EMAIL_PATTERN = /[\w\.%+-]+@\w+(?:\.\w+)+/
|
7
|
-
AUTO_LINKED_URL_PATTERN = %r{((
|
8
|
+
AUTO_LINKED_URL_PATTERN = %r{(?:(?:\w+:)?//\w+(?:\.\w+)*|\w+(?:\.\w+)*\.\w{2,}(?!\.\w+))}
|
8
9
|
AUTO_LINKED_PATTERN = Regexp.new([AUTO_LINKED_EMAIL_PATTERN, AUTO_LINKED_URL_PATTERN].join('|'))
|
9
10
|
KEY_CHARS = %r{[@.:/]+}
|
10
11
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
# frozen_string_literal: true
|
2
|
+
|
3
3
|
lib = File.expand_path('../lib', __FILE__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'mail_auto_link_obfuscation/version'
|
@@ -18,16 +18,16 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'railties', '>= 3.0', '~> 5.0'
|
22
21
|
spec.add_dependency 'mail', '~> 2.5'
|
23
22
|
spec.add_dependency 'nokogiri', '~> 1.6'
|
23
|
+
spec.add_dependency 'railties', '>= 3.0', '~> 5.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
26
|
+
spec.add_development_dependency 'guard', '~> 2.14'
|
27
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
26
28
|
spec.add_development_dependency 'rails', '>= 3.0', '~> 5.0'
|
27
29
|
spec.add_development_dependency 'rake', '~> 10.0'
|
28
30
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
31
|
+
spec.add_development_dependency 'rubocop', '~> 0.49'
|
30
32
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.7'
|
31
|
-
spec.add_development_dependency 'guard', '~> 2.14'
|
32
|
-
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
33
33
|
end
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Jundt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mail
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: railties
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31,47 +59,47 @@ dependencies:
|
|
31
59
|
- !ruby/object:Gem::Version
|
32
60
|
version: '5.0'
|
33
61
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
62
|
+
name: bundler
|
35
63
|
requirement: !ruby/object:Gem::Requirement
|
36
64
|
requirements:
|
37
65
|
- - "~>"
|
38
66
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
type: :
|
67
|
+
version: '1.12'
|
68
|
+
type: :development
|
41
69
|
prerelease: false
|
42
70
|
version_requirements: !ruby/object:Gem::Requirement
|
43
71
|
requirements:
|
44
72
|
- - "~>"
|
45
73
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
74
|
+
version: '1.12'
|
47
75
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
76
|
+
name: guard
|
49
77
|
requirement: !ruby/object:Gem::Requirement
|
50
78
|
requirements:
|
51
79
|
- - "~>"
|
52
80
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
54
|
-
type: :
|
81
|
+
version: '2.14'
|
82
|
+
type: :development
|
55
83
|
prerelease: false
|
56
84
|
version_requirements: !ruby/object:Gem::Requirement
|
57
85
|
requirements:
|
58
86
|
- - "~>"
|
59
87
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
88
|
+
version: '2.14'
|
61
89
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
90
|
+
name: guard-rspec
|
63
91
|
requirement: !ruby/object:Gem::Requirement
|
64
92
|
requirements:
|
65
93
|
- - "~>"
|
66
94
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
95
|
+
version: '4.7'
|
68
96
|
type: :development
|
69
97
|
prerelease: false
|
70
98
|
version_requirements: !ruby/object:Gem::Requirement
|
71
99
|
requirements:
|
72
100
|
- - "~>"
|
73
101
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
102
|
+
version: '4.7'
|
75
103
|
- !ruby/object:Gem::Dependency
|
76
104
|
name: rails
|
77
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,14 +154,14 @@ dependencies:
|
|
126
154
|
requirements:
|
127
155
|
- - "~>"
|
128
156
|
- !ruby/object:Gem::Version
|
129
|
-
version: '0.
|
157
|
+
version: '0.49'
|
130
158
|
type: :development
|
131
159
|
prerelease: false
|
132
160
|
version_requirements: !ruby/object:Gem::Requirement
|
133
161
|
requirements:
|
134
162
|
- - "~>"
|
135
163
|
- !ruby/object:Gem::Version
|
136
|
-
version: '0.
|
164
|
+
version: '0.49'
|
137
165
|
- !ruby/object:Gem::Dependency
|
138
166
|
name: rubocop-rspec
|
139
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,34 +176,6 @@ dependencies:
|
|
148
176
|
- - "~>"
|
149
177
|
- !ruby/object:Gem::Version
|
150
178
|
version: '1.7'
|
151
|
-
- !ruby/object:Gem::Dependency
|
152
|
-
name: guard
|
153
|
-
requirement: !ruby/object:Gem::Requirement
|
154
|
-
requirements:
|
155
|
-
- - "~>"
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '2.14'
|
158
|
-
type: :development
|
159
|
-
prerelease: false
|
160
|
-
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
requirements:
|
162
|
-
- - "~>"
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: '2.14'
|
165
|
-
- !ruby/object:Gem::Dependency
|
166
|
-
name: guard-rspec
|
167
|
-
requirement: !ruby/object:Gem::Requirement
|
168
|
-
requirements:
|
169
|
-
- - "~>"
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
version: '4.7'
|
172
|
-
type: :development
|
173
|
-
prerelease: false
|
174
|
-
version_requirements: !ruby/object:Gem::Requirement
|
175
|
-
requirements:
|
176
|
-
- - "~>"
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: '4.7'
|
179
179
|
description: Obfuscate link-like mail content on delivery to prevent auto hyperlinks
|
180
180
|
in modern email clients.
|
181
181
|
email:
|
@@ -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.6.14
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Obfuscate link-like mail content on delivery to prevent auto hyperlinks in
|