email_verifier 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/lib/email_verifier/checker.rb +9 -1
- data/lib/email_verifier/version.rb +1 -1
- metadata +4 -5
- data/.README.md.swp +0 -0
data/README.md
CHANGED
@@ -43,7 +43,7 @@ Or - if you'd like to use it outside of your models:
|
|
43
43
|
This method will return true or false, or - will throw exception
|
44
44
|
with nicely detailed info about what's wrong.
|
45
45
|
|
46
|
-
**Still Rails 3+ only** but compatibility with anything in
|
46
|
+
**Still Rails 3+ only** but compatibility with anything in the pipeline.
|
47
47
|
|
48
48
|
## Credits
|
49
49
|

|
@@ -57,7 +57,15 @@ class EmailVerifier::Checker
|
|
57
57
|
def helo(address)
|
58
58
|
ensure_connected
|
59
59
|
|
60
|
-
|
60
|
+
begin
|
61
|
+
ensure_250 @smtp.helo(@domain)
|
62
|
+
rescue Net::SMTPSyntaxError => e
|
63
|
+
if e.message[/503/]
|
64
|
+
# Looks like server already got HELO
|
65
|
+
return true
|
66
|
+
end
|
67
|
+
raise Net::SMTPSyntaxError, e.message
|
68
|
+
end
|
61
69
|
end
|
62
70
|
|
63
71
|
def mailfrom(address)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_verifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -34,7 +34,6 @@ executables: []
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
-
- .README.md.swp
|
38
37
|
- .gitignore
|
39
38
|
- Gemfile
|
40
39
|
- LICENSE.txt
|
@@ -62,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
61
|
version: '0'
|
63
62
|
segments:
|
64
63
|
- 0
|
65
|
-
hash:
|
64
|
+
hash: 279839282407915089
|
66
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
66
|
none: false
|
68
67
|
requirements:
|
@@ -71,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
70
|
version: '0'
|
72
71
|
segments:
|
73
72
|
- 0
|
74
|
-
hash:
|
73
|
+
hash: 279839282407915089
|
75
74
|
requirements: []
|
76
75
|
rubyforge_project:
|
77
76
|
rubygems_version: 1.8.23
|
data/.README.md.swp
DELETED
Binary file
|