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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9140846f85c886cbf8c21beca0082020b34a4462ac56ffe26646b3c1be7efe4
4
- data.tar.gz: d68d2387df5b30ce19eed3454fcfc1d34d2277540f7152cf6f163015f4a3cbba
3
+ metadata.gz: c13ee5134cf6acbe75ee313915ec64bd213edc64fba65f6ec4f03bf88dbc7f77
4
+ data.tar.gz: '02693d43a7e1208b2caab7d5d963e42cc69a64adc3df13da64a7f42f6cea8498'
5
5
  SHA512:
6
- metadata.gz: 789c5000ea576b7e25ce08fc1f3f692f64e3eb522e056619f0810611a2779130a25cae0a60fe959900e8b8a20087f8dafdda2fa626e579ed9b73b16592631593
7
- data.tar.gz: 2e4173a119f587573325ada13f934f9b97a9a8fce6bdb7dfc89ed040e48db7957ccecd5a8846d526dda6152bd8f0d48dc36234eae57d44b8da6de6ff03438eec
6
+ metadata.gz: 693852902f4e555168bcdb60e79b2db021c613e0d5e51d9d355db6f9c39cf1080914fedc10b4ed483fd0570140c439bb58e4a050ed1114a13fa3ca5b808e9eaf
7
+ data.tar.gz: 15057d977773d979e150111f9662be51eebe86db4624d76e98d612bdd5516d9a86b6cdbabaf49f81c1d630b8ad664730a227461ad4b39aa39b1783b1624f6c73
@@ -0,0 +1,5 @@
1
+ nb:
2
+ valid_email:
3
+ validations:
4
+ email:
5
+ invalid: "er ugyldig"
@@ -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:]][a-zA-Z0-9-]{0,61}[[:alnum:]]))(\.([[:alnum:]][a-zA-Z0-9-]{0,61}[[:alnum:]]))+\z/
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 = {
@@ -1 +1 @@
1
- ValidEmailVersion = "0.1.1"
1
+ ValidEmailVersion = "0.1.2"
@@ -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.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-10-23 00:00:00.000000000 Z
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