spectator-validates_email 1.0.0 → 1.1.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61d053feaadbee4b542eac7e393cb8b9ec49f19c9cae8f5dc9614a5dcbb56002
|
4
|
+
data.tar.gz: a7a072af3491961ca8d242b7aa3a070507b1abf3f9820864c9360fc9451a540a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7d2b174e573643aa8544ff81fcd1b151dfe0c7c4a344a60da5130fe6109b8ef4bab3e335540c6a5ebe37644c68340fddd068760658f6d1941ac01e1b7dca60
|
7
|
+
data.tar.gz: 9bf466c74bc8e10b49768ee40ae4caf6a8af0c5ca041ce3065625d7340d36a17da29496da061d33893845fe4348452bd63dc2363770605c499ad0613ad1c506c
|
@@ -6,7 +6,7 @@ class EmailValidator < ActiveModel::EachValidator
|
|
6
6
|
LocalPartSpecialChars = Regexp.escape('!#$%&\'*-/=?+-^_`{|}~')
|
7
7
|
LocalPartUnquoted = '(([[:alnum:]' + LocalPartSpecialChars + ']+[\.\+]+))*[[:alnum:]' + LocalPartSpecialChars + '+]+'
|
8
8
|
LocalPartQuoted = '\"(([[:alnum:]' + LocalPartSpecialChars + '\.\+]*|(\\\\[\x00-\xFF]))*)\"'
|
9
|
-
Regex = Regexp.new('^((' + LocalPartUnquoted + ')|(' + LocalPartQuoted + ')+)@(((\w+\-+[^_])|(\w+\.[^_]))*([a-z0-9-]{1,63})\.[a-z]{2,
|
9
|
+
Regex = Regexp.new('^((' + LocalPartUnquoted + ')|(' + LocalPartQuoted + ')+)@(((\w+\-+[^_])|(\w+\.[^_]))*([a-z0-9-]{1,63})\.[a-z]{2,63}(?:\.[a-z]{2,63})?$)', Regexp::EXTENDED | Regexp::IGNORECASE, 'n')
|
10
10
|
|
11
11
|
# Validates email address.
|
12
12
|
# If MX fallback was also requested, it will check if email is valid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectator-validates_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Velikanau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|