email_verifier 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
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 tghe pipeline.
46
+ **Still Rails 3+ only** but compatibility with anything in the pipeline.
47
47
 
48
48
  ## Credits
49
49
  ![End Point Corporation](http://www.endpoint.com/images/end_point.png)
@@ -57,7 +57,15 @@ class EmailVerifier::Checker
57
57
  def helo(address)
58
58
  ensure_connected
59
59
 
60
- ensure_250 @smtp.helo(@domain)
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)
@@ -1,3 +1,3 @@
1
1
  module EmailVerifier
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-14 00:00:00.000000000 Z
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: 4285945759283300825
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: 4285945759283300825
73
+ hash: 279839282407915089
75
74
  requirements: []
76
75
  rubyforge_project:
77
76
  rubygems_version: 1.8.23
data/.README.md.swp DELETED
Binary file