valid_email2 1.1.10 → 1.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/valid_email2/version.rb +1 -1
- data/pull_mailchecker_emails.rb +8 -9
- data/vendor/disposable_emails.yml +1 -1
- 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: e7b661e055a1c0b1a4a536fe72071717baee1f95
|
4
|
+
data.tar.gz: fdb0abeab711ef95a57659bc331c7600b66e1074
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6fb3a35414361c17c5448f61a119c6b53b6fa102a0c0e82f57a885f8ddd8fd47949f2c93503d8a73b109cf572109839fd730be594c2d674bfb3f4276dc3022
|
7
|
+
data.tar.gz: ed9dfd29648af08f371b692507d177620fd33f5d1f910dcc2705ad8cceadc9f3fde34452baaab181df50103b1c9a8c5e42043b5603d7548fa6a1d7172cc914ba
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## Version 1.1.11
|
2
|
+
Removed poczta.onet.pl from the disposable_emails list (https://github.com/lisinge/valid_email2/issues/34)
|
3
|
+
Added a whitelist to the internal pull_mailchecker_emails so that poczta.onet.pl
|
4
|
+
can't sneak back in again.
|
5
|
+
|
1
6
|
## Version 1.1.10
|
2
7
|
Added more disposable email domains (https://github.com/lisinge/valid_email2/pull/32)
|
3
8
|
Added script that pulls disposable emails (https://github.com/lisinge/valid_email2/pull/33)
|
data/lib/valid_email2/version.rb
CHANGED
data/pull_mailchecker_emails.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require 'pry'
|
3
|
+
require "yaml"
|
5
4
|
|
6
|
-
require
|
5
|
+
require "json"
|
6
|
+
require "net/http"
|
7
7
|
|
8
|
-
|
9
|
-
require 'net/http'
|
8
|
+
whitelisted_emails = %w(poczta.onet.pl)
|
10
9
|
|
11
|
-
existing_emails = YAML.load_file(
|
10
|
+
existing_emails = YAML.load_file("vendor/disposable_emails.yml")
|
12
11
|
|
13
|
-
url =
|
12
|
+
url = "https://raw.githubusercontent.com/FGRibreau/mailchecker/master/list.json"
|
14
13
|
resp = Net::HTTP.get_response(URI.parse(url))
|
15
14
|
|
16
|
-
remote_emails = JSON.parse(resp.body).flatten
|
15
|
+
remote_emails = JSON.parse(resp.body).flatten - whitelisted_emails
|
17
16
|
|
18
17
|
result_emails = (existing_emails + remote_emails).map(&:strip).uniq.sort
|
19
18
|
|
20
|
-
File.open(
|
19
|
+
File.open("vendor/disposable_emails.yml", "w") {|f| f.write result_emails.to_yaml }
|
@@ -1280,7 +1280,6 @@
|
|
1280
1280
|
- plexolan.de
|
1281
1281
|
- plhk.ru
|
1282
1282
|
- plw.me
|
1283
|
-
- poczta.onet.pl
|
1284
1283
|
- pojok.ml
|
1285
1284
|
- pokiemobile.com
|
1286
1285
|
- politikerclub.de
|
@@ -1328,6 +1327,7 @@
|
|
1328
1327
|
- raetp9.com
|
1329
1328
|
- raketenmann.de
|
1330
1329
|
- rancidhome.net
|
1330
|
+
- randomail.net
|
1331
1331
|
- raqid.com
|
1332
1332
|
- rax.la
|
1333
1333
|
- raxtest.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: 1.1.
|
4
|
+
version: 1.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micke Lisinge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09
|
11
|
+
date: 2015-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|