ValidateEmail 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +33 -0
  2. data/lib/ValidateEmail/version.rb +1 -1
  3. metadata +4 -3
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ ValidateEmail
2
+ =============
3
+
4
+ `ValidateEmail` gem is the ultimate email validator. It not only validates email address by `Regex` check but also optionally checks for the `MX records`.
5
+
6
+ Installation
7
+ ------------
8
+
9
+ gem install ValidateEmail
10
+
11
+ Usage
12
+ -----
13
+
14
+ require 'rubygems'
15
+ require 'ValidateEmail'
16
+
17
+ You may validate an email address using Regex check by running:
18
+
19
+ ValidateEmail.validate("bvsatyaram@example.com")
20
+
21
+ You may also validate email address by both checking the Regex and also the MX record by running:
22
+
23
+ ValidateEmail.validate("bvsatyaram@noexisting.domain", true)
24
+
25
+ The `ValidateEmail.validate` method returns a boolean. So, we can have some thing as follows:
26
+
27
+ user.email = email unless ValidateEmail.validate(email)
28
+
29
+ Author
30
+ ------
31
+
32
+ B V Satyaram <[bvsatyaram.com](http://bvsatyaram.com)>
33
+
@@ -1,3 +1,3 @@
1
1
  module Validateemail
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -3,10 +3,10 @@ name: ValidateEmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
+ - 1
6
7
  - 0
7
8
  - 0
8
- - 3
9
- version: 0.0.3
9
+ version: 1.0.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Satyaram B V
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-27 00:00:00 +05:30
17
+ date: 2011-05-03 00:00:00 +05:30
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -30,6 +30,7 @@ extra_rdoc_files: []
30
30
  files:
31
31
  - .gitignore
32
32
  - Gemfile
33
+ - README.md
33
34
  - Rakefile
34
35
  - ValidateEmail.gemspec
35
36
  - lib/ValidateEmail.rb