email_assessor 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -5
- data/email_assessor.gemspec +2 -2
- data/lib/email_assessor.rb +1 -1
- data/lib/email_assessor/address.rb +5 -2
- data/lib/email_assessor/version.rb +1 -1
- data/spec/email_assessor_spec.rb +1 -1
- data/vendor/disposable_domains.txt +4 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09a529bf8a39b92c150db28f3f06c85970f7aca6'
|
4
|
+
data.tar.gz: 14f6ff9650eda37cc4cfca928e36d686d699f6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf0e58b5da7ad12a4d6baf7f3ae28e91d2af487443602f24d18f275db72556c80969d0367b3f02e665505ce5f275d994dba9063d0766d76aca9fafcc122b014e
|
7
|
+
data.tar.gz: 2420d6532fa6c2bdac33b78c09e38afa5d92c9e500329fac173a113dc6db37d1de8717afca4ca1f35c122172f55212297267e3339c3a7ae8cd95cf732da8c13a
|
data/.travis.yml
CHANGED
data/email_assessor.gemspec
CHANGED
@@ -20,11 +20,11 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.required_ruby_version = ">=
|
23
|
+
spec.required_ruby_version = ">= 2.4.0"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency "rake"
|
27
27
|
spec.add_development_dependency "rspec", "~> 3.4"
|
28
28
|
spec.add_runtime_dependency "mail", "~> 2.5"
|
29
|
-
spec.add_runtime_dependency "activemodel", ">=
|
29
|
+
spec.add_runtime_dependency "activemodel", ">= 5.0.2"
|
30
30
|
end
|
data/lib/email_assessor.rb
CHANGED
@@ -18,6 +18,6 @@ module EmailAssessor
|
|
18
18
|
file_name ||= ""
|
19
19
|
domain = domain.downcase
|
20
20
|
|
21
|
-
File.open(file_name).each_line.any? { |line| domain
|
21
|
+
File.open(file_name).each_line.any? { |line| domain.match?(%r{\A(?:.+\.)*?#{line.chomp}\z}i) }
|
22
22
|
end
|
23
23
|
end
|
@@ -22,8 +22,11 @@ module EmailAssessor
|
|
22
22
|
|
23
23
|
if address.domain && address.address == @raw_address
|
24
24
|
domain = address.domain
|
25
|
-
|
26
|
-
|
25
|
+
|
26
|
+
domain.match?(%r{\.}) && # Valid address domain must contain a period
|
27
|
+
!domain.match?(%r{\.{2,}}) && # Valid address domain cannot have consecutive periods
|
28
|
+
!domain.match?(%r{^\.}) && # Valid address domain cannot start with a period
|
29
|
+
domain.match?(%r{[a-z]\Z}i) # Valid address domain must end with letters
|
27
30
|
else
|
28
31
|
false
|
29
32
|
end
|
data/spec/email_assessor_spec.rb
CHANGED
@@ -323,6 +323,7 @@ ckiso.com
|
|
323
323
|
cl-cl.org
|
324
324
|
cl0ne.net
|
325
325
|
clandest.in
|
326
|
+
clipmail.eu
|
326
327
|
clixser.com
|
327
328
|
clrmail.com
|
328
329
|
cmail.com
|
@@ -810,6 +811,7 @@ hacccc.com
|
|
810
811
|
hackthatbit.ch
|
811
812
|
hahawrong.com
|
812
813
|
haltospam.com
|
814
|
+
happygoluckyclub.com
|
813
815
|
harakirimail.com
|
814
816
|
hartbot.de
|
815
817
|
hat-geld.de
|
@@ -1085,6 +1087,7 @@ maildrop.ml
|
|
1085
1087
|
maildu.de
|
1086
1088
|
maildx.com
|
1087
1089
|
maileater.com
|
1090
|
+
maileme101.com
|
1088
1091
|
mailed.in
|
1089
1092
|
mailed.ro
|
1090
1093
|
maileimer.de
|
@@ -1320,7 +1323,6 @@ ntlhelp.net
|
|
1320
1323
|
nubescontrol.com
|
1321
1324
|
nullbox.info
|
1322
1325
|
nurfuerspam.de
|
1323
|
-
nus.edu.sg
|
1324
1326
|
nuts2trade.com
|
1325
1327
|
nwldx.com
|
1326
1328
|
ny7.me
|
@@ -1684,6 +1686,7 @@ statdvr.com
|
|
1684
1686
|
stathost.net
|
1685
1687
|
statiix.com
|
1686
1688
|
steambot.net
|
1689
|
+
stexsy.com
|
1687
1690
|
stinkefinger.net
|
1688
1691
|
stop-my-spam.cf
|
1689
1692
|
stop-my-spam.com
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_assessor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Wolfe Millard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 5.0.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 5.0.2
|
83
83
|
description: Advanced ActiveModel email validation with MX lookups, domain blacklisting
|
84
84
|
and disposable email blocking
|
85
85
|
email: wolfemm.development@gmail.com
|
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
requirements:
|
119
119
|
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
121
|
+
version: 2.4.0
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - ">="
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.6.8
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Advanced ActiveModel email validation
|