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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c13ee5134cf6acbe75ee313915ec64bd213edc64fba65f6ec4f03bf88dbc7f77
4
- data.tar.gz: '02693d43a7e1208b2caab7d5d963e42cc69a64adc3df13da64a7f42f6cea8498'
3
+ metadata.gz: 066fc2f842dfd3d3afc0df730f7e44951a6692aa035b378036e2587731073dd1
4
+ data.tar.gz: a21522fd9b8453ff36fc960fdbcd916843fe3232a4a87f2528611f1d8f9f693c
5
5
  SHA512:
6
- metadata.gz: 693852902f4e555168bcdb60e79b2db021c613e0d5e51d9d355db6f9c39cf1080914fedc10b4ed483fd0570140c439bb58e4a050ed1114a13fa3ca5b808e9eaf
7
- data.tar.gz: 15057d977773d979e150111f9662be51eebe86db4624d76e98d612bdd5516d9a86b6cdbabaf49f81c1d630b8ad664730a227461ad4b39aa39b1783b1624f6c73
6
+ metadata.gz: f6dbf19e9942dacf1d749d3027d1d20e130a64c1418c7cae5e43165d0ddf304d46f02a530658760626af4cbe6cb686fcb30964bfd8512967e74c7599712c06cf
7
+ data.tar.gz: cd549c34b78c76ef33ed9e60b3d683706a6fde6bcf2e5dcf7223dbf26f46a7556bbcb3325e8a862f1708b80072fce0f5c4b2e8bef479178d9633ffabd8224ddd
@@ -12,4 +12,4 @@ rvm:
12
12
  - jruby-19mode
13
13
  - jruby-20mode
14
14
  before_install:
15
- - gem install bundler
15
+ - gem install bundler:1.17.3
data/README.md CHANGED
@@ -107,6 +107,7 @@ nil.email? # => false
107
107
  * Joel Chippindale joel[at]joelchippindale.com
108
108
  * Sami Haahtinen sami[at]haahtinen.name
109
109
  * Jean Boussier jean.boussier[at]gmail.com
110
+ * Masaki Hara - @qnighy
110
111
 
111
112
  # Note on Patches/Pull Requests
112
113
 
@@ -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:]][[[:alnum:]]-]{0,61}[[:alnum:]]))(\.([[:alnum:]][a-zA-Z0-9-]{0,61}[[:alnum:]]))+\z/
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 = {
@@ -1 +1 @@
1
- ValidEmailVersion = "0.1.2"
1
+ ValidEmailVersion = "0.1.3"
@@ -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.2
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: 2018-11-02 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec