email_verifier 0.0.6 → 0.0.7
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 +14 -0
- data/lib/email_verifier/validates_email_realness.rb +2 -0
- data/lib/email_verifier/version.rb +1 -1
- data/locales/it.yml +8 -0
- metadata +5 -4
data/README.md
CHANGED
@@ -44,6 +44,20 @@ Or - if you'd like to use it outside of your models:
|
|
44
44
|
|
45
45
|
This method will return true or false, or will throw an exception with nicely detailed info about what's wrong.
|
46
46
|
|
47
|
+
## Customizing messages
|
48
|
+
|
49
|
+
Add these lines to your locale file in config/locales:
|
50
|
+
|
51
|
+
it:
|
52
|
+
errors:
|
53
|
+
messages:
|
54
|
+
email_verifier:
|
55
|
+
email_not_real: must point to a real mail account
|
56
|
+
out_of_mail_server: appears to point to dead mail server
|
57
|
+
no_mail_server: appears to point to domain which doesn't handle e-mail
|
58
|
+
failure: could not be checked if is real
|
59
|
+
exception: could not be sent
|
60
|
+
|
47
61
|
## Credits
|
48
62
|

|
49
63
|
|
@@ -14,6 +14,8 @@ module EmailVerifier
|
|
14
14
|
record.errors.add attribute, I18n.t('errors.messages.email_verifier.no_mail_server')
|
15
15
|
rescue EmailVerifier::FailureException
|
16
16
|
record.errors.add attribute, I18n.t('errors.messages.email_verifier.failure')
|
17
|
+
rescue Exception
|
18
|
+
record.errors.add attribute, I18n.t('errors.messages.email_verifier.exception')
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
data/locales/it.yml
ADDED
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.7
|
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:
|
12
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- lib/email_verifier/validates_email_realness.rb
|
64
64
|
- lib/email_verifier/version.rb
|
65
65
|
- locales/en.yml
|
66
|
+
- locales/it.yml
|
66
67
|
- locales/pl.yml
|
67
68
|
homepage: http://endpoint.com
|
68
69
|
licenses:
|
@@ -79,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
80
|
version: '0'
|
80
81
|
segments:
|
81
82
|
- 0
|
82
|
-
hash:
|
83
|
+
hash: 548687799499873481
|
83
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
85
|
none: false
|
85
86
|
requirements:
|
@@ -88,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
89
|
version: '0'
|
89
90
|
segments:
|
90
91
|
- 0
|
91
|
-
hash:
|
92
|
+
hash: 548687799499873481
|
92
93
|
requirements: []
|
93
94
|
rubyforge_project:
|
94
95
|
rubygems_version: 1.8.23
|