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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3eb8c7af3bc82d1b6a613243f2ccfc7df1116bea
4
- data.tar.gz: a73fbea5884e7ce36f1063d48a74f907221a068d
3
+ metadata.gz: '09a529bf8a39b92c150db28f3f06c85970f7aca6'
4
+ data.tar.gz: 14f6ff9650eda37cc4cfca928e36d686d699f6f9
5
5
  SHA512:
6
- metadata.gz: 076d5d21a7905c3297c602fa602998ad3e5976b3756640ca3b64d4610409c5bd09f24bebc6b8e50c47f7bd209caaf96a790ab88ed5b6c32dee7510c2887fde46
7
- data.tar.gz: a1805644cbcb6a4d0e2e42454eee68b29ace07b70aeee38fb9e8b6f7fe6d3528343267d252d115ce333c96f94b9dad6d36dc713342028ab3f5ddba5ee7f3ca5b
6
+ metadata.gz: cf0e58b5da7ad12a4d6baf7f3ae28e91d2af487443602f24d18f275db72556c80969d0367b3f02e665505ce5f275d994dba9063d0766d76aca9fafcc122b014e
7
+ data.tar.gz: 2420d6532fa6c2bdac33b78c09e38afa5d92c9e500329fac173a113dc6db37d1de8717afca4ca1f35c122172f55212297267e3339c3a7ae8cd95cf732da8c13a
@@ -3,11 +3,7 @@ language: ruby
3
3
  sudo: false
4
4
 
5
5
  rvm:
6
- - 2.3.0
7
- - 2.2.0
8
- - 2.1.0
9
- - 2.0.0
6
+ - 2.4.0
10
7
 
11
8
  gemfile:
12
- - gemfiles/activemodel3.gemfile
13
9
  - gemfiles/activemodel4.gemfile
@@ -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 = ">= 1.9.3"
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", ">= 3.2"
29
+ spec.add_runtime_dependency "activemodel", ">= 5.0.2"
30
30
  end
@@ -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 =~ %r{\A(.*\.)*#{line.chomp}\z}i }
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
- # Valid address needs to have a dot in the domain
26
- !!domain.match(/\./) && !domain.match(/\.{2,}/) && domain.match(/[a-z]\Z/i)
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
@@ -1,3 +1,3 @@
1
1
  module EmailAssessor
2
- VERSION = "0.3.9"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -36,7 +36,7 @@ describe EmailAssessor do
36
36
  end
37
37
 
38
38
  it "should not be valid when domain is missing" do
39
- user.email = "foo"
39
+ user.email = "foo@.com"
40
40
  is_expected.to be_invalid
41
41
  end
42
42
 
@@ -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.3.9
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-02-15 00:00:00.000000000 Z
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: '3.2'
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: '3.2'
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: 1.9.3
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.5.1
129
+ rubygems_version: 2.6.8
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Advanced ActiveModel email validation