email_data 1601156760 → 1601253725

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7a8f3df2f2943f47d66fb39399eb771a4d95068818fd8569bdee6455b057894
4
- data.tar.gz: 0b103a3048fae80b575687af7c2aea172ebc43fc6237041edd8b97f04e0b240e
3
+ metadata.gz: 30846c35bbd3804aaac5b765b0a5d76bbff432809379a2aecd9812cf171120f7
4
+ data.tar.gz: c1b60e704efc6c3fbb892ec7bcc4bc94c017c6662b5a2ab541ce18dca37a1de4
5
5
  SHA512:
6
- metadata.gz: b076e2437aca0b2e94dc60533f703e358b5796e254100c37f1d2fd4dbc5f07b5ceb7d167685aed004ada35f4ae5d26b1ca28ccbcf494a147858cd40f4b7efbae
7
- data.tar.gz: d2ac1858ed07ad527416a434f9923e292139dcfbbe97ea78068f270d1049516a90e81cb02a50101b66d17ada0829b7ca0a77d6d7f07980498a1a54094f08baeb
6
+ metadata.gz: 38b446d412c486b73842e92dadb57c05c723ea0e2155db1a9e282768af8948eba30539ebe4511b2a6e70089f145bfd31e65bdcef2064791518fdc1edd9f7e47f
7
+ data.tar.gz: e7e7aa9c672a8f4c07b4d172ded1d8038907d655a61bcd4e584050f2ae52ba196cd0dc02e0db9a3e7b2003012a290e1d19bb62dbaac19a32fd240316cfc08fdf
data/.gitignore CHANGED
@@ -6,5 +6,6 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- /data/disposable/**/**
9
+ /data/disposable/**/*
10
+ /data/json/**/*
10
11
  Gemfile.lock
@@ -0,0 +1,2 @@
1
+ ruby 2.7.1
2
+ nodejs 12.18.4
data/README.md CHANGED
@@ -11,6 +11,8 @@ this data available.
11
11
 
12
12
  ## Installation
13
13
 
14
+ ### Ruby
15
+
14
16
  Add this line to your application's Gemfile:
15
17
 
16
18
  ```ruby
@@ -25,7 +27,7 @@ Or install it yourself as:
25
27
 
26
28
  $ gem install email_data
27
29
 
28
- ## Usage
30
+ #### Usage
29
31
 
30
32
  ```ruby
31
33
  require "email_data"
@@ -44,6 +46,26 @@ EmailData.disposable_emails
44
46
  EmailData.free_email_domains
45
47
  ```
46
48
 
49
+ ### Node.js
50
+
51
+ ```console
52
+ $ yarn add @fnando/email_data
53
+ ```
54
+
55
+ or
56
+
57
+ ```console
58
+ $ npm install @fnando/email_data
59
+ ```
60
+
61
+ #### Usage
62
+
63
+ ```js
64
+ const disposableEmails = require("@fnando/email_data/data/json/disposable_emails.json");
65
+ const disposableDomains = require("@fnando/email_data/data/json/disposable_domains.json");
66
+ const freeEmailDomains = require("@fnando/email_data/data/json/free_email_domains.json");
67
+ ```
68
+
47
69
  ## Dataset
48
70
 
49
71
  The dataset is updated automatically. If you have any manual entries you would
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1601156760
1
+ 1601253725
@@ -13,8 +13,6 @@ require "logger"
13
13
  require "simpleidn"
14
14
  require "timeout"
15
15
  require "active_support/all"
16
- require "whois"
17
- require "whois-parser"
18
16
  require "root_domain"
19
17
 
20
18
  USER_AGENT = [
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ source $HOME/.zsh/exports.sh
6
+ source $HOME/.zsh/asdf.sh
7
+
8
+ git pull --rebase
9
+ git push
10
+
11
+ ./bin/sync
12
+
13
+ git_status=$(git status 2> /dev/null | tr "\\n" " ")
14
+
15
+ if [[ "$git_status" =~ "nothing to commit" ]]; then
16
+ terminal-notifier \
17
+ -message "No changes detected. Skipping new packages." \
18
+ -ignoreDnD \
19
+ -title "email_data" \
20
+ -group homebrew \
21
+ &> /dev/null
22
+ exit
23
+ fi
24
+
25
+ date "+%s" > VERSION
26
+
27
+ version=$(cat VERSION)
28
+ package_json=$(cat package.json | jq --arg version "${version}.0.0" '.version = $version')
29
+
30
+ echo $package_json | jq --tab > package.json
31
+
32
+ git add .
33
+ git commit -m "Bump up version."
34
+ git push
35
+
36
+ ./bin/publish-gem
37
+ ./bin/publish-npm
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ source $HOME/.zsh/exports.sh
6
+ source $HOME/.zsh/asdf.sh
7
+
8
+ asdf local ruby 2.7.1
9
+
10
+ gem install bundler
11
+ bundle update
12
+
13
+ rake release
14
+
15
+ terminal-notifier \
16
+ -message "Just published a new gem version." \
17
+ -ignoreDnD \
18
+ -title "email_data" \
19
+ -group homebrew \
20
+ &> /dev/null
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ source $HOME/.zsh/exports.sh
6
+ source $HOME/.zsh/asdf.sh
7
+
8
+ asdf local nodejs 12.18.4
9
+
10
+ for input in $(ls -1 data/*.txt); do
11
+ name=$(basename $input)
12
+ output=data/json/"${name%.txt}.json"
13
+ jq -R -s -c 'split("\n")' < $input > $output
14
+ done
15
+
16
+ npm publish --access=public
17
+
18
+ terminal-notifier \
19
+ -message "Just published a new npm version." \
20
+ -ignoreDnD \
21
+ -title "email_data" \
22
+ -group homebrew \
23
+ &> /dev/null
@@ -194,7 +194,7 @@ Dir["./data/disposable/**/*.txt"].map do |file|
194
194
  domains += normalize_list(File.read(file).lines)
195
195
  end
196
196
 
197
- ignore_domains = %w[gmail.com hotmail.com]
197
+ ignore_domains = %w[gmail.com hotmail.com outlook.com]
198
198
 
199
199
  puts "=> Normalize domains (count: #{domains.size})"
200
200
  domains = domains
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require_relative "helpers"
5
+
6
+ threads = []
7
+
8
+ threads << thread { load_github_url("https://gist.github.com/fnando/dafe542cac13f831bbf5521a55248116/raw/free_email_providers.txt") }
9
+
10
+ threads.each_slice(5) do |slice|
11
+ slice.each(&:join)
12
+ end
13
+
14
+ threads.clear
15
+
16
+ domains = []
17
+
18
+ puts "=> Loading free_email_domains.txt"
19
+ domains += normalize_list(File.read("#{__dir__}/../data/free_email_domains.txt").lines)
20
+
21
+ puts "=> Loading manual/free_email_domains.txt"
22
+ domains += normalize_list(File.read("#{__dir__}/../data/manual/free_email_domains.txt").lines)
23
+
24
+ ignore_domains = %w[]
25
+
26
+ puts "=> Normalize domains (count: #{domains.size})"
27
+ domains = domains
28
+ .uniq
29
+ .map {|domain| RootDomain.call(domain.split("@").last.downcase) }
30
+ .compact
31
+ .uniq
32
+ .reject {|domain| ignore_domains.include?(domain) }
33
+
34
+ puts "=> Saving domains (count: #{domains.size})"
35
+ save_file("free_email_domains.txt", normalize_list(domains))
@@ -12585,6 +12585,7 @@ asinproplus.com
12585
12585
  asinspector.org
12586
12586
  asio.club
12587
12587
  asioncriblomatic.com
12588
+ asioncriblomatic.live
12588
12589
  asisec.cf
12589
12590
  asisec.ga
12590
12591
  asisec.gq
@@ -12950,6 +12951,7 @@ atozconference.com
12950
12951
  atp-dz.com
12951
12952
  atpfinals.ru
12952
12953
  atpworldtour-2016.com
12954
+ atqpq.live
12953
12955
  atrais-kredits24.com
12954
12956
  atrakcje-nestor.pl
12955
12957
  atrakcjedladziecii.pl
@@ -25650,6 +25652,7 @@ cpanelhome.com
25650
25652
  cpanellicense.shop
25651
25653
  cpaoz.com
25652
25654
  cpapa.ooo
25655
+ cparm.cf
25653
25656
  cpaycard.asia
25654
25657
  cpb-online.com
25655
25658
  cpc.cx
@@ -33607,6 +33610,7 @@ emarkwebsolutions.com
33607
33610
  emasqiuqiu.info
33608
33611
  emasqiuqiu.org
33609
33612
  emasqq.info
33613
+ emaw.email
33610
33614
  embalaje.us
33611
33615
  embeddedconsulting.com
33612
33616
  embeddedresearch.com
@@ -41844,6 +41848,7 @@ go-blogger.ru
41844
41848
  go-centric.com
41845
41849
  go-creditcardnofeeca-ok.live
41846
41850
  go-creditcardnofeecas-ok.live
41851
+ go-intl-online-ok.degree
41847
41852
  go-moscow.ru
41848
41853
  go-parkinsons-ok.live
41849
41854
  go-trade.dev
@@ -50323,6 +50328,7 @@ isfahantourism.info
50323
50328
  isgre.at
50324
50329
  isherz.net
50325
50330
  ishetalgedaan.site
50331
+ ishi-tut.online
50326
50332
  ishis.site
50327
50333
  ishkinn.ru
50328
50334
  ishockey.se
@@ -72498,7 +72504,6 @@ outlok.com
72498
72504
  outlok.net
72499
72505
  outlok.site
72500
72506
  outloo.com
72501
- outlook.com
72502
72507
  outlook2.gq
72503
72508
  outlookkk.online
72504
72509
  outlookpro.net
@@ -75589,6 +75594,7 @@ playtubepk.com
75589
75594
  playtubes.net
75590
75595
  playyo88.info
75591
75596
  playyo88.win
75597
+ playzonex.com
75592
75598
  pldppd.site
75593
75599
  pleadfl.xyz
75594
75600
  pleadid.email
@@ -86844,6 +86850,7 @@ shopuniformswarehouse.com
86844
86850
  shopuniformwarehouse.com
86845
86851
  shopussy.com
86846
86852
  shopwalmarte.com
86853
+ shopwrights.com
86847
86854
  shopylingo.xyz
86848
86855
  shopytopsale-lika.space
86849
86856
  shorefitmb.com
@@ -107170,6 +107177,7 @@ xn--e1aef6b4c.xn--p1ai
107170
107177
  xn--e1afgidgbjksq6gj2a.xn--p1ai
107171
107178
  xn--e1afhbdbtuhcg3i.xn--p1ai
107172
107179
  xn--e1afkbvo.xn--p1ai
107180
+ xn--e1aftbcd8d.xn--p1ai
107173
107181
  xn--e1agcemeeaqni.xn--p1ai
107174
107182
  xn--e1aggeflfmdhfk9bc5f.xn--p1ai
107175
107183
  xn--e5xx98d.top
@@ -8,7 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Nando Vieira"]
9
9
  spec.email = ["me@fnando.com"]
10
10
 
11
- spec.summary = "Data"
11
+ spec.summary = "This project is a compilation of datasets related to " \
12
+ "emails. Includes disposable emails, disposable " \
13
+ "domains, and free email services."
12
14
  spec.description = spec.summary
13
15
  spec.homepage = "https://github.com/fnando/email_data"
14
16
  spec.license = "MIT"
@@ -27,6 +29,8 @@ Gem::Specification.new do |spec|
27
29
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
28
30
  spec.require_paths = ["lib"]
29
31
 
32
+ spec.add_development_dependency "activesupport"
33
+ spec.add_development_dependency "aitch"
30
34
  spec.add_development_dependency "bundler"
31
35
  spec.add_development_dependency "minitest"
32
36
  spec.add_development_dependency "minitest-utils"
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@fnando/email_data",
3
+ "description": "This project is a compilation of datasets related to emails. Includes disposable emails, disposable domains, and free email services.",
4
+ "version": "1601253725.0.0",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/fnando/email_data.git"
9
+ },
10
+ "homepage": "https://github.com/fnando/email_data",
11
+ "author": "Nando Vieira <me@fnando.com>",
12
+ "files": [
13
+ "package.json",
14
+ "README.md",
15
+ "LICENSE.txt",
16
+ "data/json/**/*.json"
17
+ ]
18
+ }
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_data
3
3
  version: !ruby/object:Gem::Version
4
- version: '1601156760'
4
+ version: '1601253725'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-26 00:00:00.000000000 Z
11
+ date: 2020-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: aitch
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: bundler
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +150,8 @@ dependencies:
122
150
  - - ">="
123
151
  - !ruby/object:Gem::Version
124
152
  version: '0'
125
- description: Data
153
+ description: This project is a compilation of datasets related to emails. Includes
154
+ disposable emails, disposable domains, and free email services.
126
155
  email:
127
156
  - me@fnando.com
128
157
  executables: []
@@ -132,6 +161,7 @@ files:
132
161
  - ".github/FUNDING.yml"
133
162
  - ".gitignore"
134
163
  - ".rubocop.yml"
164
+ - ".tool-versions"
135
165
  - ".travis.yml"
136
166
  - CODE_OF_CONDUCT.md
137
167
  - Gemfile
@@ -141,9 +171,13 @@ files:
141
171
  - VERSION
142
172
  - bin/console
143
173
  - bin/helpers.rb
174
+ - bin/publish
175
+ - bin/publish-gem
176
+ - bin/publish-npm
144
177
  - bin/setup
145
178
  - bin/sync
146
179
  - bin/sync-disposable-emails
180
+ - bin/sync-free-emails
147
181
  - bin/sync-tld
148
182
  - data/country_tlds.txt
149
183
  - data/disposable_domains.txt
@@ -156,6 +190,7 @@ files:
156
190
  - email_data.gemspec
157
191
  - lib/email_data.rb
158
192
  - lib/email_data/version.rb
193
+ - package.json
159
194
  homepage: https://github.com/fnando/email_data
160
195
  licenses:
161
196
  - MIT
@@ -180,5 +215,6 @@ requirements: []
180
215
  rubygems_version: 3.1.2
181
216
  signing_key:
182
217
  specification_version: 4
183
- summary: Data
218
+ summary: This project is a compilation of datasets related to emails. Includes disposable
219
+ emails, disposable domains, and free email services.
184
220
  test_files: []