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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d6f064b39f786b9f44abf0c7397f10020a10110a61a33cd3a74565e14dde2f9
4
- data.tar.gz: 0b38b38837bb3c6a61b2ebf53f5e55a48c0790dfaa7becb8312003a3e416c5d7
3
+ metadata.gz: 61d053feaadbee4b542eac7e393cb8b9ec49f19c9cae8f5dc9614a5dcbb56002
4
+ data.tar.gz: a7a072af3491961ca8d242b7aa3a070507b1abf3f9820864c9360fc9451a540a
5
5
  SHA512:
6
- metadata.gz: d8a1ba060243e5b00c8aea3320fb42afefa967fe343b4cdc00b1bbed28da632b3a793d2981b978f6a53bd482a4dddf990932dfa2c49d5cdb164817a8f944b028
7
- data.tar.gz: 195838246706f0d5c2a3f7b3240261c8a70879ceff9c15e0c61392c4487ac1f1391c14b1ac57f31fcf63aab0f40c493bbb83f234eeac396d4a6e9f8a2655b0a6
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,6}(?:\.[a-z]{2,6})?$)', Regexp::EXTENDED | Regexp::IGNORECASE, 'n')
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
@@ -1,3 +1,3 @@
1
1
  module ValidatesEmail
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
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.0.0
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-07-11 00:00:00.000000000 Z
11
+ date: 2019-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel