valid_email2 5.2.3 → 5.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/config/disposable_email_domains.txt +1635 -6
- data/lib/valid_email2/version.rb +1 -1
- data/pull_mailchecker_emails.rb +5 -4
- metadata +2 -2
data/lib/valid_email2/version.rb
CHANGED
data/pull_mailchecker_emails.rb
CHANGED
@@ -5,7 +5,7 @@ require "yaml"
|
|
5
5
|
require "json"
|
6
6
|
require "net/http"
|
7
7
|
|
8
|
-
whitelisted_emails = %w
|
8
|
+
whitelisted_emails = %w[
|
9
9
|
onet.pl poczta.onet.pl fastmail.fm hushmail.com
|
10
10
|
hush.ai hush.com hushmail.me naver.com qq.com example.com
|
11
11
|
yandex.net gmx.com gmx.es webdesignspecialist.com.au vp.com
|
@@ -15,13 +15,14 @@ whitelisted_emails = %w(
|
|
15
15
|
passinbox.com passfwd.com passmail.com passmail.net
|
16
16
|
duck.com mozmail.com dralias.com 8alias.com 8shield.net
|
17
17
|
mailinblack.com anonaddy.com anonaddy.me addy.io privaterelay.appleid.com appleid.com
|
18
|
-
|
18
|
+
net.ua kommespaeter.de alpenjodel.de my.id web.id
|
19
|
+
]
|
19
20
|
|
20
21
|
existing_emails = File.open("config/disposable_email_domains.txt") { |f| f.read.split("\n") }
|
21
22
|
|
22
23
|
remote_emails = [
|
23
24
|
"https://raw.githubusercontent.com/FGRibreau/mailchecker/master/list.txt",
|
24
|
-
"https://raw.githubusercontent.com/disposable/disposable-email-domains/master/domains.txt"
|
25
|
+
"https://raw.githubusercontent.com/disposable/disposable-email-domains/master/domains.txt"
|
25
26
|
].flat_map do |url|
|
26
27
|
resp = Net::HTTP.get_response(URI.parse(url))
|
27
28
|
|
@@ -30,4 +31,4 @@ end
|
|
30
31
|
|
31
32
|
result_emails = (existing_emails + remote_emails).map(&:strip).uniq.sort - whitelisted_emails
|
32
33
|
|
33
|
-
File.
|
34
|
+
File.write("config/disposable_email_domains.txt", result_emails.join("\n"))
|
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: 5.2.
|
4
|
+
version: 5.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micke Lisinge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|