valid_email2 3.0.1 → 3.0.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
- SHA256:
3
- metadata.gz: 7a2cf0205525e8abee7c2bdc06389a0c49e63407bbb863f44eff7d0e7018dde1
4
- data.tar.gz: 8a3459e1bce845359ebd651666c354935d58fcad9f71fdfcb4e6fbeca32e7e2c
2
+ SHA1:
3
+ metadata.gz: cc0c12c7a136bdc50172e9cc1b63865e9de75a9a
4
+ data.tar.gz: 5b21fdd82be99bf822ef3e54ee8784d448d8e01d
5
5
  SHA512:
6
- metadata.gz: 92029d3f7c4f7ed447c033f60ff4e372186386d5876746fd994761a7b332e143e0a198e2e87c223a1465c43448dfe4871137e3b6d03d55bc846f6abf0ff25796
7
- data.tar.gz: 7cffa1a1628d3a9f2fc0dd1fa2b809c6fc111efaf3fdfe1e75b003a1df973e3f7ebaf66c626740f7387cf78c857a2e7c614ae913165d8e0964df4f43e1c850c5
6
+ metadata.gz: 0d43b48cd9471e5e4ba8690bfcc4891386ee2172022b1d04b865e9a347bb674fa1a0acee4c056d71b71ef075e6b69edef7d2cf89ebafd8d44e58c394b78c66bd
7
+ data.tar.gz: 3bba9746a7a69f22fefa81bebf7a0c4b814d0d0397dd89b83435c67e3e35f28b7f41b2b7ab2c65cb77e0e8f8b3f55c72f498ab5a430b96bfe17b8f570ea5bb64
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 3.0.2
2
+ * Add displaosable email providers https://github.com/micke/valid_email2/pull/127 https://github.com/micke/valid_email2/pull/128 https://github.com/micke/valid_email2/pull/132
3
+ * Refine documentation https://github.com/micke/valid_email2/pull/130
4
+
1
5
  ## Version 3.0.1
2
6
  Relax the restrictions on domain validation so that we allow unicode domains and
3
7
  other non ASCII domains while still disallowing the domains we blocked before.
data/README.md CHANGED
@@ -98,7 +98,16 @@ It is a good idea to stub out that validation in your test environment.
98
98
  Do so by adding this in your `spec_helper`:
99
99
  ```ruby
100
100
  config.before(:each) do
101
- allow_any_instance_of(ValidEmail2::Address).to receive(:valid_mx?) { true }
101
+ allow_any_instance_of(ValidEmail2::Address).to receive(:valid_mx?).and_return(true)
102
+ end
103
+ ```
104
+
105
+ Validating `disposable` e-mails triggers a `mx` validation alongside checking if
106
+ the domain is disposable. The above stub does not apply to the `disposable`
107
+ validation and should therefore be individually stubbed with:
108
+ ```ruby
109
+ config.before(:each) do
110
+ allow_any_instance_of(ValidEmail2::Address).to receive(:mx_server_is_in?).and_return(false)
102
111
  end
103
112
  ```
104
113
 
@@ -118,6 +127,10 @@ vendor directory to the config directory. That means:
118
127
  `vendor/blacklist.yml` -> `config/blacklisted_email_domains.yml`
119
128
  `vendor/whitelist.yml` -> `config/whitelisted_email_domains.yml`
120
129
 
130
+ The `disposable` validation has been improved with a `mx` check. Apply the
131
+ stub, as noted in the Test environment section, if your tests have slowed
132
+ down or if they do not work without an internet connection.
133
+
121
134
  ## Upgrading to v2.0.0
122
135
 
123
136
  In version 1.0 of valid_email2 we only defined the `email` validator.
@@ -1455,21 +1455,6 @@
1455
1455
  - 9ziqmkpzz3aif.gq
1456
1456
  - 9ziqmkpzz3aif.ml
1457
1457
  - 9ziqmkpzz3aif.tk
1458
- - BeefMilk.com
1459
- - DingBone.com
1460
- - E4ward.com
1461
- - FudgeRub.com
1462
- - GishPuppy.com
1463
- - LookUgly.com
1464
- - MailEater.com
1465
- - MintEmail.com
1466
- - PutThisInYourSpamDatabase.com
1467
- - SendSpamHere.com
1468
- - SmellFear.com
1469
- - Sneakemail.com
1470
- - SpamHereLots.com
1471
- - SpamHerePlease.com
1472
- - TempEMail.net
1473
1458
  - a-b.co.za
1474
1459
  - a-bc.net
1475
1460
  - a.a.fbmail.usa.cc
@@ -2471,6 +2456,7 @@
2471
2456
  - beddly.com
2472
2457
  - beechatz.ga
2473
2458
  - beechatzz.ga
2459
+ - BeefMilk.com
2474
2460
  - beefmilk.com
2475
2461
  - beeviee.cf
2476
2462
  - beeviee.ga
@@ -3195,6 +3181,7 @@
3195
3181
  - clendere.asia
3196
3182
  - clickanerd.net
3197
3183
  - clickdeal.co
3184
+ - clickmail.info
3198
3185
  - clinicatbf.com
3199
3186
  - clipmail.eu
3200
3187
  - cliptik.net
@@ -3727,6 +3714,7 @@
3727
3714
  - desmo.cf
3728
3715
  - desmo.ga
3729
3716
  - desmo.gq
3717
+ - desoz.com
3730
3718
  - despam.it
3731
3719
  - despammed.com
3732
3720
  - deszn1d5wl8iv0q.cf
@@ -3801,8 +3789,10 @@
3801
3789
  - dildosfromspace.com
3802
3790
  - dim-coin.com
3803
3791
  - dimimail.ga
3792
+ - DingBone.com
3804
3793
  - dingbone.com
3805
3794
  - dinkmail.com
3795
+ - directmail.top
3806
3796
  - directmonitor.nl
3807
3797
  - dirtymailer.cf
3808
3798
  - dirtymailer.ga
@@ -4211,6 +4201,7 @@
4211
4201
  - e4t5exw6aauecg.ga
4212
4202
  - e4t5exw6aauecg.ml
4213
4203
  - e4t5exw6aauecg.tk
4204
+ - E4ward.com
4214
4205
  - e4ward.com
4215
4206
  - e4wfnv7ay0hawl3rz.cf
4216
4207
  - e4wfnv7ay0hawl3rz.ga
@@ -5036,6 +5027,7 @@
5036
5027
  - firef0x.gq
5037
5028
  - firef0x.ml
5038
5029
  - firef0x.tk
5030
+ - first-mail.info
5039
5031
  - fish.skytale.net
5040
5032
  - fishfortomorrow.xyz
5041
5033
  - five.emailfake.ml
@@ -5264,6 +5256,7 @@
5264
5256
  - fucknloveme.top
5265
5257
  - fuckrosoft.com
5266
5258
  - fuckxxme.top
5259
+ - FudgeRub.com
5267
5260
  - fudgerub.com
5268
5261
  - fufrh4xatmh1hazl.cf
5269
5262
  - fufrh4xatmh1hazl.ga
@@ -5593,6 +5586,7 @@
5593
5586
  - girlsindetention.com
5594
5587
  - girlsu.com
5595
5588
  - girlsundertheinfluence.com
5589
+ - GishPuppy.com
5596
5590
  - gishpuppy.com
5597
5591
  - gispgeph6qefd.cf
5598
5592
  - gispgeph6qefd.ga
@@ -7467,6 +7461,7 @@
7467
7461
  - kerupukmlempem9.cf
7468
7462
  - ketiksms.club
7469
7463
  - kevintrankt.com
7464
+ - key-mail.net
7470
7465
  - keyesrealtors.tk
7471
7466
  - keykeykelyns.cf
7472
7467
  - keykeykelyns.ga
@@ -8201,6 +8196,7 @@
8201
8196
  - long.idn.vn
8202
8197
  - longio.org
8203
8198
  - lonthe.ml
8199
+ - LookUgly.com
8204
8200
  - lookugly.com
8205
8201
  - lopeure.com
8206
8202
  - lopl.co.cc
@@ -8440,6 +8436,7 @@
8440
8436
  - mail-easy.fr
8441
8437
  - mail-fake.com
8442
8438
  - mail-filter.com
8439
+ - mail-finder.net
8443
8440
  - mail-j.cf
8444
8441
  - mail-j.ga
8445
8442
  - mail-j.gq
@@ -8554,9 +8551,6 @@
8554
8551
  - mail72.com
8555
8552
  - mail8.ga
8556
8553
  - mail8.gq
8557
- - mailHazard.com
8558
- - mailHazard.us
8559
- - mailHz.me
8560
8554
  - mailadadad.org
8561
8555
  - mailadda.cf
8562
8556
  - mailadda.ga
@@ -8597,6 +8591,7 @@
8597
8591
  - maildu.de
8598
8592
  - maildump.tk
8599
8593
  - maildx.com
8594
+ - MailEater.com
8600
8595
  - maileater.com
8601
8596
  - mailed.in
8602
8597
  - mailed.ro
@@ -8617,10 +8612,13 @@
8617
8612
  - mailgov.info
8618
8613
  - mailguard.me
8619
8614
  - mailgutter.com
8615
+ - mailHazard.com
8620
8616
  - mailhazard.com
8617
+ - mailHazard.us
8621
8618
  - mailhazard.us
8622
8619
  - mailhero.io
8623
8620
  - mailhex.com
8621
+ - mailHz.me
8624
8622
  - mailhz.me
8625
8623
  - mailimails.patzleiner.net
8626
8624
  - mailimate.com
@@ -8975,6 +8973,7 @@
8975
8973
  - minsmail.com
8976
8974
  - mintconditionin.ga
8977
8975
  - mintemail.cf
8976
+ - MintEmail.com
8978
8977
  - mintemail.com
8979
8978
  - mintemail.ga
8980
8979
  - mintemail.gq
@@ -9162,6 +9161,7 @@
9162
9161
  - mrblacklist.gq
9163
9162
  - mrchinh.com
9164
9163
  - mrichacrown39dust.tk
9164
+ - mrmail.info
9165
9165
  - mroneeye.com
9166
9166
  - mrossi.cf
9167
9167
  - mrossi.ga
@@ -10489,6 +10489,7 @@
10489
10489
  - pji40o094c2abrdx.ml
10490
10490
  - pji40o094c2abrdx.tk
10491
10491
  - pjjkp.com
10492
+ - planet-travel.club
10492
10493
  - pl85s5iyhxltk.cf
10493
10494
  - pl85s5iyhxltk.ga
10494
10495
  - pl85s5iyhxltk.gq
@@ -10737,6 +10738,7 @@
10737
10738
  - puttana.ml
10738
10739
  - puttana.tk
10739
10740
  - puttanamaiala.tk
10741
+ - PutThisInYourSpamDatabase.com
10740
10742
  - putthisinyourspamdatabase.com
10741
10743
  - puyenkgel50ccb.ml
10742
10744
  - pw-mail.cf
@@ -11018,6 +11020,7 @@
11018
11020
  - querydirect.com
11019
11021
  - questore.co
11020
11022
  - queuem.com
11023
+ - quick-mail.club
11021
11024
  - quickinbox.com
11022
11025
  - quickmail.nl
11023
11026
  - quickreport.it
@@ -11452,8 +11455,11 @@
11452
11455
  - rowmoja6a6d9z4ou.gq
11453
11456
  - rowmoja6a6d9z4ou.ml
11454
11457
  - rowmoja6a6d9z4ou.tk
11458
+ - royal-soft.net
11455
11459
  - royal.net
11456
11460
  - royaldoodles.org
11461
+ - royalhost.info
11462
+ - royalmail.top
11457
11463
  - roys.ml
11458
11464
  - rpaowpro3l5ha.tk
11459
11465
  - rpgitxp6tkhtasxho.cf
@@ -11902,6 +11908,7 @@
11902
11908
  - send22u.info
11903
11909
  - sendfree.org
11904
11910
  - sendingspecialflyers.com
11911
+ - SendSpamHere.com
11905
11912
  - sendspamhere.com
11906
11913
  - sendto.cf
11907
11914
  - sennbox.cf
@@ -12126,6 +12133,7 @@
12126
12133
  - smaretboy.pw
12127
12134
  - smarttalent.pw
12128
12135
  - smashmail.de
12136
+ - SmellFear.com
12129
12137
  - smellfear.com
12130
12138
  - smellrear.com
12131
12139
  - smellypotato.tk
@@ -12163,6 +12171,7 @@
12163
12171
  - snam.tk
12164
12172
  - snapunit.com
12165
12173
  - snapwet.com
12174
+ - Sneakemail.com
12166
12175
  - sneakemail.com
12167
12176
  - sneakerbunko.cf
12168
12177
  - sneakerbunko.ga
@@ -12284,7 +12293,9 @@
12284
12293
  - spamgourmet.com
12285
12294
  - spamgourmet.net
12286
12295
  - spamgourmet.org
12296
+ - SpamHereLots.com
12287
12297
  - spamherelots.com
12298
+ - SpamHerePlease.com
12288
12299
  - spamhereplease.com
12289
12300
  - spamhole.com
12290
12301
  - spamify.com
@@ -12818,6 +12829,7 @@
12818
12829
  - tempemail.biz
12819
12830
  - tempemail.co.za
12820
12831
  - tempemail.com
12832
+ - TempEMail.net
12821
12833
  - tempemail.net
12822
12834
  - tempemail.pro
12823
12835
  - tempemailaddress.com
@@ -1,3 +1,3 @@
1
1
  module ValidEmail2
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
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.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micke Lisinge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-28 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.7.6
131
+ rubygems_version: 2.5.2.3
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: ActiveModel validation for email. Including MX lookup and disposable email