roomorama-validates_email 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/validates_email/email_validator.rb +1 -1
- data/lib/validates_email/version.rb +1 -1
- 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: d5801aced312e207f9f56aedd4a4dcfc2fa7ad07
|
4
|
+
data.tar.gz: fd00a557f953cbcb4d1b6c6cbe625b02f107db53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af7390de00af9fa02806d95ade37b07303dedb8fafc2f0f3f451ae3dd233527b1bf6003726997668525ba1a4ad18427be793990146539020cbf53e5e7a2986e
|
7
|
+
data.tar.gz: 83bb1913f023b9352fae69bc069a22fe3122a63188ad87dcda2c1775783d87b85ac6b6fc01b89666136ccc1a97acb89c9c265e82472579dd7292671f9726de28
|
@@ -7,7 +7,7 @@ class EmailValidator < ActiveModel::EachValidator
|
|
7
7
|
end if RUBY_VERSION.to_f < 1.9
|
8
8
|
|
9
9
|
LocalPartSpecialChars = Regexp.escape('!#$%&\'*-/=?+-^_`{|}~')
|
10
|
-
LocalPartUnquoted = '([a-z0-9' + LocalPartSpecialChars + '])?([a-z0-9]+([' + LocalPartSpecialChars + '\.\+])?)*[a-z0-9
|
10
|
+
LocalPartUnquoted = '([a-z0-9' + LocalPartSpecialChars + '])?([a-z0-9]+([' + LocalPartSpecialChars + '\.\+])?)*[a-z0-9\-_]'
|
11
11
|
LocalPartQuoted = '\"(([[:alnum:]' + LocalPartSpecialChars + '\.\+]*|(\\\\[\x00-\xFF]))*)\"'
|
12
12
|
Regex = Regexp.new('^((' + LocalPartUnquoted + ')|(' + LocalPartQuoted + ')+)@(((\w+\-+[^_])|(\w+\.[^_]))*([a-z0-9-]{1,63})\.[a-z]{2,6}(?:\.[a-z]{2,6})?$)', Regexp::EXTENDED | Regexp::IGNORECASE, 'n')
|
13
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roomorama-validates_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donald Piret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|