email_assessor 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/email_assessor.gemspec +2 -1
- data/lib/email_assessor.rb +1 -0
- data/lib/email_assessor/address.rb +3 -2
- data/lib/email_assessor/email_validator.rb +1 -0
- data/lib/email_assessor/version.rb +2 -1
- data/pull_mailchecker_emails.rb +1 -0
- data/spec/email_assessor_spec.rb +1 -0
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c89b20f8b2bc819399f4bf53ed19eb81ef812dfc
|
4
|
+
data.tar.gz: ee26fc8bb82aa2c91b0295d08748833cf111e747
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea699d15c55fde3226625a5ae7e5cc53b0eb88130814e98c7738844bc0142f56deb26af8f33d726fb93482437a52c75bad51d7a77da8ad9938744a8749af4424
|
7
|
+
data.tar.gz: 5c730508cd468733488d94d7eca9ee5f491bc6348d9068c1ec6d1e16b7df0d70abba2158208ddecd0255416059021fbb5a50647c63fa315e2dbd5c607cbe23df
|
data/email_assessor.gemspec
CHANGED
data/lib/email_assessor.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
require "email_assessor"
|
2
3
|
require "resolv"
|
3
4
|
require "mail"
|
@@ -25,8 +26,8 @@ module EmailAssessor
|
|
25
26
|
|
26
27
|
domain.match?(%r{\.}) && # Valid address domain must contain a period
|
27
28
|
!domain.match?(%r{\.{2,}}) && # Valid address domain cannot have consecutive periods
|
28
|
-
!domain.match?(%r{
|
29
|
-
domain.match?(%r{[a-z]\
|
29
|
+
!domain.match?(%r{\A\.}) && # Valid address domain cannot start with a period
|
30
|
+
domain.match?(%r{[a-z]\z}i) # Valid address domain must end with letters
|
30
31
|
else
|
31
32
|
false
|
32
33
|
end
|
data/pull_mailchecker_emails.rb
CHANGED
data/spec/email_assessor_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.4.5
|
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-04-
|
11
|
+
date: 2017-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|