valid_email 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/nb.yml +5 -0
- data/lib/valid_email/validate_email.rb +1 -1
- data/lib/valid_email/version.rb +1 -1
- data/spec/validate_email_spec.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c13ee5134cf6acbe75ee313915ec64bd213edc64fba65f6ec4f03bf88dbc7f77
|
4
|
+
data.tar.gz: '02693d43a7e1208b2caab7d5d963e42cc69a64adc3df13da64a7f42f6cea8498'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693852902f4e555168bcdb60e79b2db021c613e0d5e51d9d355db6f9c39cf1080914fedc10b4ed483fd0570140c439bb58e4a050ed1114a13fa3ca5b808e9eaf
|
7
|
+
data.tar.gz: 15057d977773d979e150111f9662be51eebe86db4624d76e98d612bdd5516d9a86b6cdbabaf49f81c1d630b8ad664730a227461ad4b39aa39b1783b1624f6c73
|
@@ -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^([[:alpha:]]{1}|([[:alnum:]][
|
8
|
+
DOMAIN_REGEX = /\A^([[:alpha:]]{1}|([[:alnum:]][[[:alnum:]]-]{0,61}[[:alnum:]]))(\.([[:alnum:]][a-zA-Z0-9-]{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.2"
|
data/spec/validate_email_spec.rb
CHANGED
@@ -42,6 +42,8 @@ describe ValidateEmail do
|
|
42
42
|
'a.aa',
|
43
43
|
'test.xn--clchc0ea0b2g2a9gcd',
|
44
44
|
'my-domain.com',
|
45
|
+
'тест.рф',
|
46
|
+
'umläüt-domain.de',
|
45
47
|
]
|
46
48
|
|
47
49
|
valid_domains.each do |valid_domain|
|
@@ -59,7 +61,6 @@ describe ValidateEmail do
|
|
59
61
|
'oeuoue.-oeuoue',
|
60
62
|
'oueaaoeu.oeue-',
|
61
63
|
'ouoeu.eou_ueoe',
|
62
|
-
'тест.рф',
|
63
64
|
'.test.com',
|
64
65
|
'test..com',
|
65
66
|
'test@test.com',
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramihajamalala Hery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- config/locales/hu.yml
|
88
88
|
- config/locales/id.yml
|
89
89
|
- config/locales/ja.yml
|
90
|
+
- config/locales/nb.yml
|
90
91
|
- config/locales/pl.yml
|
91
92
|
- config/locales/pt-BR.yml
|
92
93
|
- config/locales/ru.yml
|