valid_email2 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/valid_email2/version.rb +1 -1
- data/pull_mailchecker_emails.rb +4 -1
- data/spec/valid_email2_spec.rb +6 -1
- data/vendor/disposable_emails.yml +12 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a700e50546652c2294d9cd7d45a77d692b5dd694
|
|
4
|
+
data.tar.gz: 74eed78fdb867d6aa1667ad6473ad98aee11e5ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 424986e76fb23720e590328b06c000c3edf6cd0504c3735ffb657f9a1c766d8349278d39ff0a1c5e4d87e9bc9626b37cbc9bb37ff0189f39e31df2f76d951d99
|
|
7
|
+
data.tar.gz: c33e2a9458e2ab51086671bbfb7d0feeb8902e7105cb44a3e268c07baa98daf7377530b2107055adb1fa0f74ce67ebaf5c6153e71d8dfc88f14c2dbe08129de2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## Version 2.1.1
|
|
2
|
+
Added more disposable email domains (https://github.com/lisinge/valid_email2/pull/92)
|
|
3
|
+
Removed false positive domains
|
|
4
|
+
|
|
1
5
|
## Version 2.1.0
|
|
2
6
|
Added more disposable email domains (https://github.com/lisinge/valid_email2/pull/85)
|
|
3
7
|
Validate that the domain includes only allowed characters (https://github.com/lisinge/valid_email2/issues/88)
|
data/lib/valid_email2/version.rb
CHANGED
data/pull_mailchecker_emails.rb
CHANGED
|
@@ -5,7 +5,10 @@ require "yaml"
|
|
|
5
5
|
require "json"
|
|
6
6
|
require "net/http"
|
|
7
7
|
|
|
8
|
-
whitelisted_emails = %w(
|
|
8
|
+
whitelisted_emails = %w(
|
|
9
|
+
onet.pl poczta.onet.pl fastmail.fm hushmail.com
|
|
10
|
+
hush.ai hush.com hushmail.me naver.com qq.com example.com
|
|
11
|
+
)
|
|
9
12
|
|
|
10
13
|
existing_emails = YAML.load_file("vendor/disposable_emails.yml")
|
|
11
14
|
|
data/spec/valid_email2_spec.rb
CHANGED
|
@@ -17,7 +17,7 @@ class TestUserDisallowBlacklisted < TestModel
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
class BackwardsCompatibleUser < TestModel
|
|
20
|
-
validates :email, email: true
|
|
20
|
+
validates :email, 'valid_email_2/email': true
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
describe ValidEmail2 do
|
|
@@ -85,6 +85,11 @@ describe ValidEmail2 do
|
|
|
85
85
|
user = TestUserDisallowDisposable.new(email: "foo@bar.#{ValidEmail2.disposable_emails.first}")
|
|
86
86
|
expect(user.valid?).to be_falsey
|
|
87
87
|
end
|
|
88
|
+
|
|
89
|
+
it "should allow example.com that is common in lists of disposable email providers" do
|
|
90
|
+
user = TestUserDisallowDisposable.new(email: "foo@example.com")
|
|
91
|
+
expect(user.valid?).to be_truthy
|
|
92
|
+
end
|
|
88
93
|
end
|
|
89
94
|
|
|
90
95
|
describe "blacklisted emails" do
|
|
@@ -463,6 +463,7 @@
|
|
|
463
463
|
- avls.pt
|
|
464
464
|
- awatum.de
|
|
465
465
|
- awiki.org
|
|
466
|
+
- ax80mail.com
|
|
466
467
|
- axiz.org
|
|
467
468
|
- axon7zte.com
|
|
468
469
|
- axsup.net
|
|
@@ -488,6 +489,7 @@
|
|
|
488
489
|
- badoop.com
|
|
489
490
|
- badpotato.tk
|
|
490
491
|
- bakar.bid
|
|
492
|
+
- balanc3r.com
|
|
491
493
|
- ballsofsteel.net
|
|
492
494
|
- bandai.nom.co
|
|
493
495
|
- banit.club
|
|
@@ -630,6 +632,7 @@
|
|
|
630
632
|
- c.kadag.ir
|
|
631
633
|
- c.theplug.org
|
|
632
634
|
- c.wlist.ro
|
|
635
|
+
- c1oramn.com
|
|
633
636
|
- c2.hu
|
|
634
637
|
- c51vsgq.com
|
|
635
638
|
- cachedot.net
|
|
@@ -718,6 +721,7 @@
|
|
|
718
721
|
- cnn.coms.hk
|
|
719
722
|
- cnsds.de
|
|
720
723
|
- cobarekyo1.ml
|
|
724
|
+
- cobin2hood.com
|
|
721
725
|
- cock.li
|
|
722
726
|
- cocodani.cf
|
|
723
727
|
- cocovpn.com
|
|
@@ -762,6 +766,7 @@
|
|
|
762
766
|
- crotslep.ml
|
|
763
767
|
- crotslep.tk
|
|
764
768
|
- crusthost.com
|
|
769
|
+
- crymail2.com
|
|
765
770
|
- csh.ro
|
|
766
771
|
- cszbl.com
|
|
767
772
|
- ctmailing.us
|
|
@@ -1149,7 +1154,6 @@
|
|
|
1149
1154
|
- everytg.ml
|
|
1150
1155
|
- evopo.com
|
|
1151
1156
|
- evyush.com
|
|
1152
|
-
- example.com
|
|
1153
1157
|
- exitstageleft.net
|
|
1154
1158
|
- explodemail.com
|
|
1155
1159
|
- express.net.ua
|
|
@@ -1585,6 +1589,7 @@
|
|
|
1585
1589
|
- hidemyass.com
|
|
1586
1590
|
- hidzz.com
|
|
1587
1591
|
- highbros.org
|
|
1592
|
+
- hitbts.com
|
|
1588
1593
|
- hmail.us
|
|
1589
1594
|
- hmamail.com
|
|
1590
1595
|
- hmh.ro
|
|
@@ -1879,6 +1884,7 @@
|
|
|
1879
1884
|
- kook.ml
|
|
1880
1885
|
- kopagas.com
|
|
1881
1886
|
- kopaka.net
|
|
1887
|
+
- kopqi.com
|
|
1882
1888
|
- kormail.xyz
|
|
1883
1889
|
- kosmetik-obatkuat.com
|
|
1884
1890
|
- kostenlosemailadresse.de
|
|
@@ -1936,6 +1942,7 @@
|
|
|
1936
1942
|
- lenovog4.com
|
|
1937
1943
|
- lesbugs.com
|
|
1938
1944
|
- letmeinonthis.com
|
|
1945
|
+
- letsmail9.com
|
|
1939
1946
|
- letthemeatspam.com
|
|
1940
1947
|
- lexisense.com
|
|
1941
1948
|
- lez.se
|
|
@@ -2253,6 +2260,7 @@
|
|
|
2253
2260
|
- mihep.com
|
|
2254
2261
|
- mijnhva.nl
|
|
2255
2262
|
- mildin.org.ua
|
|
2263
|
+
- minex-coin.com
|
|
2256
2264
|
- ministry-of-silly-walks.de
|
|
2257
2265
|
- minsmail.com
|
|
2258
2266
|
- mintemail.com
|
|
@@ -2326,6 +2334,7 @@
|
|
|
2326
2334
|
- muell.email
|
|
2327
2335
|
- mufux.com
|
|
2328
2336
|
- mugglenet.org
|
|
2337
|
+
- muimail.com
|
|
2329
2338
|
- munoubengoshi.gq
|
|
2330
2339
|
- muq.orangotango.tk
|
|
2331
2340
|
- mustbedestroyed.org
|
|
@@ -2543,7 +2552,6 @@
|
|
|
2543
2552
|
- onelegalplan.com
|
|
2544
2553
|
- oneoffemail.com
|
|
2545
2554
|
- oneoffmail.com
|
|
2546
|
-
- onet.pl
|
|
2547
2555
|
- onewaymail.com
|
|
2548
2556
|
- onlatedotcom.info
|
|
2549
2557
|
- online.ms
|
|
@@ -2637,7 +2645,6 @@
|
|
|
2637
2645
|
- ploae.com
|
|
2638
2646
|
- plw.me
|
|
2639
2647
|
- po.bot.nu
|
|
2640
|
-
- poczta.onet.pl
|
|
2641
2648
|
- podam.pl
|
|
2642
2649
|
- poh.pp.ua
|
|
2643
2650
|
- pojok.ml
|
|
@@ -3347,6 +3354,7 @@
|
|
|
3347
3354
|
- tkmy88m.com
|
|
3348
3355
|
- tlpn.org
|
|
3349
3356
|
- tm.tosunkaya.com
|
|
3357
|
+
- tm2mail.com
|
|
3350
3358
|
- tmail.com
|
|
3351
3359
|
- tmail.ws
|
|
3352
3360
|
- tmailinator.com
|
|
@@ -3885,6 +3893,7 @@
|
|
|
3885
3893
|
- zipcad.com
|
|
3886
3894
|
- zippymail.info
|
|
3887
3895
|
- zipsendtest.com
|
|
3896
|
+
- ziyap.com
|
|
3888
3897
|
- zmail.info.tm
|
|
3889
3898
|
- zoaxe.com
|
|
3890
3899
|
- zoemail.com
|
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: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micke Lisinge
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|