valid_email 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +1 -0
- data/lib/valid_email/validate_email.rb +1 -1
- data/lib/valid_email/version.rb +1 -1
- data/spec/validate_email_spec.rb +3 -0
- 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: 066fc2f842dfd3d3afc0df730f7e44951a6692aa035b378036e2587731073dd1
|
4
|
+
data.tar.gz: a21522fd9b8453ff36fc960fdbcd916843fe3232a4a87f2528611f1d8f9f693c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6dbf19e9942dacf1d749d3027d1d20e130a64c1418c7cae5e43165d0ddf304d46f02a530658760626af4cbe6cb686fcb30964bfd8512967e74c7599712c06cf
|
7
|
+
data.tar.gz: cd549c34b78c76ef33ed9e60b3d683706a6fde6bcf2e5dcf7223dbf26f46a7556bbcb3325e8a862f1708b80072fce0f5c4b2e8bef479178d9633ffabd8224ddd
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@ class ValidateEmail
|
|
5
5
|
SPECIAL_CHARS = %w(( ) , : ; < > @ [ ])
|
6
6
|
SPECIAL_ESCAPED_CHARS = %w(\ \\ ")
|
7
7
|
LOCAL_MAX_LEN = 64
|
8
|
-
DOMAIN_REGEX = /\A
|
8
|
+
DOMAIN_REGEX = /\A(?:[[:alnum:]](?:[[[:alnum:]]-]{0,61}[[:alnum:]])?)(?:\.(?:[[:alnum:]](?:[[[:alnum:]]-]{0,61}[[:alnum:]])?))+\z/
|
9
9
|
|
10
10
|
def valid?(value, user_options={})
|
11
11
|
options = {
|
data/lib/valid_email/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ValidEmailVersion = "0.1.
|
1
|
+
ValidEmailVersion = "0.1.3"
|
data/spec/validate_email_spec.rb
CHANGED
@@ -38,11 +38,14 @@ describe ValidateEmail do
|
|
38
38
|
'mail-temporaire.fr',
|
39
39
|
'mt2009.com',
|
40
40
|
'mega.zik.dj',
|
41
|
+
'0.test.com',
|
41
42
|
'e.test.com',
|
43
|
+
'mail.e.test.com',
|
42
44
|
'a.aa',
|
43
45
|
'test.xn--clchc0ea0b2g2a9gcd',
|
44
46
|
'my-domain.com',
|
45
47
|
'тест.рф',
|
48
|
+
'mail.тест.рф',
|
46
49
|
'umläüt-domain.de',
|
47
50
|
]
|
48
51
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valid_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramihajamalala Hery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|