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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 425fafd106b89730a49cdeb2c773b1bfe5266e34
4
- data.tar.gz: 1dbde9565f36581a4f285a60a89e4f7e8e570ef5
3
+ metadata.gz: b081b2e17a6fd7bccbd79c7e56d19120b73f6dd1
4
+ data.tar.gz: 066186765a62cd7ed246b90d13ef79186715326a
5
5
  SHA512:
6
- metadata.gz: 5a5eee8a71af852946cac7813e5d7e344ed0811a48561faf02753f69c9343d2882bf35cf4b957ca8f297ec38c21403822426e0a97682f1a543e4160c9cf1c6c8
7
- data.tar.gz: 300856bbb540cb2226a330ace9d4bd4eba7ef78f31580842ea087c35a38062f849dd1ed398fd9add6eb0535a301a9242be8aa6e62ce228e356f36535835c9e9a
6
+ metadata.gz: 83f2f66e344a2793b854010061860994ea6bbef96d9f05f2b68891a45fb85854200506cc2dd0316074bee52cd78979403f82803f77f1c7c448197fcce311cc43
7
+ data.tar.gz: 2ddbdf520e79955ef9ba975bb75df44d0f83816f89773de49da46def0c1fa23bfe43dedaa0a68252972f357a9e2f087814c6b8df6044e3ff1e7484136418ae40
data/.rubocop.yml CHANGED
@@ -6,3 +6,13 @@ AllCops:
6
6
 
7
7
  Metrics/LineLength:
8
8
  Max: 125
9
+
10
+ Style/Documentation:
11
+ Enabled: false
12
+
13
+ RSpec/MultipleExpectations:
14
+ Max: 2
15
+
16
+ Metrics/BlockLength:
17
+ Exclude:
18
+ - 'spec/**/*_spec.rb'
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source 'https://rubygems.org'
3
4
 
4
5
  # Specify your gem's dependencies in mail_auto_link_obfuscation.gemspec
data/Guardfile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  guard :rspec, cmd: 'bundle exec rspec' do
3
4
  require 'guard/rspec/dsl'
4
5
  dsl = Guard::RSpec::Dsl.new(self)
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'bundler/gem_tasks'
3
4
  require 'rspec/core/rake_task'
4
5
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'mail_auto_link_obfuscation/version'
3
4
  require 'mail_auto_link_obfuscation/automatic'
4
5
  require 'mail_auto_link_obfuscation/obfuscate_auto_links_on_delivery'
@@ -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{((\w+:)?//\w+(\.\w+)*|\w+(\.\w+)*\.\w{2,})\S*}
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,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module MailAutoLinkObfuscation
3
4
  module Automatic
4
5
  def mail(*args, &block)
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module MailAutoLinkObfuscation
3
4
  module ObfuscateAutoLinksOnDelivery
4
5
  attr_accessor :mail_auto_link_obfuscation_options
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'rails'
3
4
 
4
5
  module MailAutoLinkObfuscation
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module MailAutoLinkObfuscation
3
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
4
5
  end
@@ -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.42'
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.3
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-06-15 00:00:00.000000000 Z
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: mail
62
+ name: bundler
35
63
  requirement: !ruby/object:Gem::Requirement
36
64
  requirements:
37
65
  - - "~>"
38
66
  - !ruby/object:Gem::Version
39
- version: '2.5'
40
- type: :runtime
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: '2.5'
74
+ version: '1.12'
47
75
  - !ruby/object:Gem::Dependency
48
- name: nokogiri
76
+ name: guard
49
77
  requirement: !ruby/object:Gem::Requirement
50
78
  requirements:
51
79
  - - "~>"
52
80
  - !ruby/object:Gem::Version
53
- version: '1.6'
54
- type: :runtime
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: '1.6'
88
+ version: '2.14'
61
89
  - !ruby/object:Gem::Dependency
62
- name: bundler
90
+ name: guard-rspec
63
91
  requirement: !ruby/object:Gem::Requirement
64
92
  requirements:
65
93
  - - "~>"
66
94
  - !ruby/object:Gem::Version
67
- version: '1.12'
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: '1.12'
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.42'
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.42'
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.8
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