valid_email2 3.2.2 → 3.2.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: 72dbf447c5b40cb7e347efa6a7e7e44bcde6b81cef1b1fbb9ba4703adff15e6b
4
- data.tar.gz: 36b83448929482e263e09dfd579e1359f6c3066fd418c26437c14274f736d072
3
+ metadata.gz: dc36490d5ad59e2c3b3cdd3c539a812f856edcc6f9ca58cb83abd76dd6c552e9
4
+ data.tar.gz: 760dfc6b6d8b451ed0e872157018f6d71da9e47c6511bacbb553115ed66210b2
5
5
  SHA512:
6
- metadata.gz: 7ce45d7dd425b621280b5977378a6b7b3001b2e7e909b92b2b261094bdd4529a628820df5440969d8f8dde839a581e7c478069b5cb2b1a24a440256f174c3f5c
7
- data.tar.gz: 668831fbb29286e4a3f9d4e3adda30312a34c0f90ce366e4574dbb506cd4d5ba794d6cfe59533e467f7f7f95325a60e6cbb52337cf55c620b378fa83e6c22a8d
6
+ metadata.gz: b6669d5eccb655f44f2afa63b2b4d9709b70a01c54c5a8b3d1667618c75aae426aef4c082ea5844ea72510f3777a417e08acd8bdacb01e77e920aa4b096463d0
7
+ data.tar.gz: '09819606d5610bbb084b8ac28b175b9c6eb7b23b03aaf7a90f54364480aa2d86b310bfcd2af179b364fca5650a2bcf5d207d44bdfb7cf725a1b14b939e68f6d9'
@@ -1,3 +1,8 @@
1
+ ## Version 3.2.3
2
+ * Disallow backtick (\`) in domain
3
+ * https://github.com/micke/valid_email2/pull/152
4
+ * https://github.com/micke/valid_email2/pull/151
5
+
1
6
  ## Version 3.2.2
2
7
  * Disallow quote (') in domain
3
8
 
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Validate emails with the help of the `mail` gem instead of some clunky regexp.
6
6
  Aditionally validate that the domain has a MX record.
7
- Optionally validate against a static [list of disposable email services](config/disposable_email_domains.yml).
7
+ Optionally validate against a static [list of disposable email services](config/disposable_email_domains.txt).
8
8
  Optionally validate that the email is not subaddressed ([RFC5233](https://tools.ietf.org/html/rfc5233)).
9
9
 
10
10
  ### Why?
@@ -4672,6 +4672,7 @@ beaniemania.net
4672
4672
  beanlignt.com
4673
4673
  bearegone.pro
4674
4674
  bearsarefuzzy.com
4675
+ beastmail.email
4675
4676
  beastrapleaks.blogspot.com
4676
4677
  beatelse.com
4677
4678
  beats-rock.com
@@ -12822,10 +12823,8 @@ gmmx.com
12822
12823
  gmojl.com
12823
12824
  gmsdfhail.com
12824
12825
  gmssail.com
12825
- gmx.com
12826
12826
  gmx.dns-cloud.net
12827
12827
  gmx.dnsabr.com
12828
- gmx.es
12829
12828
  gmx.fr.nf
12830
12829
  gmx1mail.top
12831
12830
  gmxip8vet5glx2n9ld.cf
@@ -15034,6 +15033,7 @@ inboxmail.world
15034
15033
  inboxmails.co
15035
15034
  inboxmails.net
15036
15035
  inboxproxy.com
15036
+ inboxsecure.info
15037
15037
  inboxstore.me
15038
15038
  incarnal.pl
15039
15039
  incestry.co.uk
@@ -15177,6 +15177,7 @@ instaindofree.com
15177
15177
  instaku-media.com
15178
15178
  instambox.com
15179
15179
  instance-email.com
15180
+ instant-email.org
15180
15181
  instant-job.com
15181
15182
  instant-mail.de
15182
15183
  instantblingmail.info
@@ -17263,6 +17264,7 @@ labas.com
17263
17264
  labetteraverouge.at
17264
17265
  labfortyone.tk
17265
17266
  labo.ch
17267
+ labomail.pro
17266
17268
  laboratortehnicadentara.ro
17267
17269
  laboriously.com
17268
17270
  labum.com
@@ -18984,6 +18986,7 @@ mailloading.com
18984
18986
  maillotdefoot.com
18985
18987
  mailly.xyz
18986
18988
  mailman.com
18989
+ mailmanbox.com
18987
18990
  mailmassa.info
18988
18991
  mailmate.com
18989
18992
  mailme.gq
@@ -19024,6 +19027,7 @@ mailnowapp.com
19024
19027
  mailnull.com
19025
19028
  mailo.cf
19026
19029
  mailo.tk
19030
+ mailolo.info
19027
19031
  mailonaut.com
19028
19032
  mailondandan.com
19029
19033
  mailone.es.vu
@@ -19054,6 +19058,7 @@ mailproxy.gm9.com
19054
19058
  mailpts.com
19055
19059
  mailpuppet.tk
19056
19060
  mailquack.com
19061
+ mailquack.info
19057
19062
  mailraccoon.com
19058
19063
  mailrard01.ga
19059
19064
  mailrazer.com
@@ -21561,6 +21566,7 @@ nomail.ga
21561
21566
  nomail.net
21562
21567
  nomail.nodns.xyz
21563
21568
  nomail.pw
21569
+ nomail.top
21564
21570
  nomail.xl.cx
21565
21571
  nomail2me.com
21566
21572
  nomailthankyou.com
@@ -23839,6 +23845,7 @@ privateclosets.com
23839
23845
  privateinvest.me
23840
23846
  privatemail.in
23841
23847
  privatemailinator.nl
23848
+ privateme.site
23842
23849
  privatemitel.cf
23843
23850
  privatemitel.ml
23844
23851
  privatesent.tk
@@ -23914,6 +23921,7 @@ prolagu.pro
23914
23921
  prolifepowerup.com
23915
23922
  promail.net
23916
23923
  promail.site
23924
+ promailerapp.com
23917
23925
  promails.xyz
23918
23926
  promdresses-short.com
23919
23927
  promenadahotel.pl
@@ -26757,6 +26765,7 @@ simple-mail-server.bid
26757
26765
  simplebox.email
26758
26766
  simpleemail.in
26759
26767
  simpleemail.info
26768
+ simpleinboxer.site
26760
26769
  simpleitsecurity.info
26761
26770
  simplemail.in
26762
26771
  simplemail.top
@@ -30251,6 +30260,7 @@ url.gen.in
30251
30260
  urleur.com
30252
30261
  urltc.com
30253
30262
  urlwave.org
30263
+ urmailman.com
30254
30264
  urodzinydlaadzieci.pl
30255
30265
  uroetueptriwe.cz.cc
30256
30266
  uroid.com
@@ -33678,4 +33688,4 @@ zzv2bfja5.pl
33678
33688
  zzz.co
33679
33689
  zzz.com
33680
33690
  zzzmail.pl
33681
- zzzzzzzzzzzzz.com
33691
+ zzzzzzzzzzzzz.com
@@ -6,7 +6,7 @@ module ValidEmail2
6
6
  class Address
7
7
  attr_accessor :address
8
8
 
9
- PROHIBITED_DOMAIN_CHARACTERS_REGEX = /[+!_\/\s']/
9
+ PROHIBITED_DOMAIN_CHARACTERS_REGEX = /[+!_\/\s'`]/
10
10
  DEFAULT_RECIPIENT_DELIMITER = '+'.freeze
11
11
  DOT_DELIMITER = '.'.freeze
12
12
 
@@ -1,3 +1,3 @@
1
1
  module ValidEmail2
2
- VERSION = "3.2.2"
2
+ VERSION = "3.2.3"
3
3
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "spec_helper"
4
+ require "fileutils"
4
5
 
5
6
  class TestUser < TestModel
6
7
  validates :email, 'valid_email_2/email': true
@@ -59,7 +60,7 @@ describe ValidEmail2 do
59
60
  expect(user.valid?).to be_falsey
60
61
  end
61
62
 
62
- %w[+ _ ! / \ '].each do |invalid_character|
63
+ %w[+ _ ! / \ ' `].each do |invalid_character|
63
64
  it "is invalid if email contains a \"#{invalid_character}\" character" do
64
65
  user = TestUser.new(email: "foo@google#{invalid_character}yahoo.com")
65
66
  expect(user.valid?).to be_falsey
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valid_email2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micke Lisinge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-05 00:00:00.000000000 Z
11
+ date: 2020-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler