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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bf4c082649adb06034d83cf2ceb6ae80c3ae0cd
4
- data.tar.gz: ca20924caa8ec274b09822877bb1afc92825f908
3
+ metadata.gz: e7b661e055a1c0b1a4a536fe72071717baee1f95
4
+ data.tar.gz: fdb0abeab711ef95a57659bc331c7600b66e1074
5
5
  SHA512:
6
- metadata.gz: 86c548751c0662117a46170aef3aafba4e6991f81377ccdc2396eac4682ea7c8cb8ea6d0260005b49bbb6347fb233940832489f5834e6742cea8b7442e665579
7
- data.tar.gz: c46bed330782935dee3c54382378b626533a12078f24a61a377f50c506c7b7f3b789b1aa8198061e1f64ba93ebbfba28e98a890db708368fcd89e0810e40784c
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)
@@ -1,3 +1,3 @@
1
1
  module ValidEmail2
2
- VERSION = "1.1.10"
2
+ VERSION = "1.1.11"
3
3
  end
@@ -1,20 +1,19 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rubygems'
4
- require 'pry'
3
+ require "yaml"
5
4
 
6
- require 'yaml'
5
+ require "json"
6
+ require "net/http"
7
7
 
8
- require 'json'
9
- require 'net/http'
8
+ whitelisted_emails = %w(poczta.onet.pl)
10
9
 
11
- existing_emails = YAML.load_file('vendor/disposable_emails.yml')
10
+ existing_emails = YAML.load_file("vendor/disposable_emails.yml")
12
11
 
13
- url = 'https://raw.githubusercontent.com/FGRibreau/mailchecker/master/list.json'
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('vendor/new_disposable_emails.yml', 'w') {|f| f.write result_emails.to_yaml }
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.10
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-28 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler