email_data 1733013134.0.0 → 1734222646.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby-tests.yml +12 -6
- data/.rubocop.yml +1 -1
- data/README.md +0 -1
- data/bin/helpers.rb +6 -4
- data/data/disposable_domains.txt +233 -4
- data/data/disposable_domains_with_mx.txt +940 -899
- data/data/disposable_domains_without_mx.txt +117038 -116850
- data/data/manual/exceptions.txt +1 -0
- data/data/manual/private_relays.txt +3 -0
- data/data/private_relays.txt +3 -0
- data/data/slds.txt +5 -7
- data/email_data.gemspec +1 -1
- data/lib/email_data/source/active_record.rb +2 -2
- data/lib/email_data/version.rb +1 -1
- data/package.json +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c340c5ee5553cf1c0db27f084ba97b0dc90000da256e5a2e5001db5f83645d76
|
4
|
+
data.tar.gz: da5a2d7cc9407704b78c2c451abc998bcaf7ad62f9e54a75e66bd0e56db81adb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d08f51917f63c65aefe33877c72ff28d946f15f477ea00fb65dc5768f4eaf6d14b7abd4ede7260036096d2843557b2fabb43224d3b777cc61522c208857f45e8
|
7
|
+
data.tar.gz: f55aaa391e4838c6e9948fb7701352ade7ffe885e879662dee1523d2f50f987e1e4aeee8707b56b417fa15bbd05c2ad72162adf45cb45df0490e9904d8b25bdc
|
@@ -9,6 +9,10 @@ on:
|
|
9
9
|
workflow_dispatch:
|
10
10
|
inputs: {}
|
11
11
|
|
12
|
+
env:
|
13
|
+
PGUSER: postgres
|
14
|
+
PGHOST: localhost
|
15
|
+
|
12
16
|
jobs:
|
13
17
|
build:
|
14
18
|
name: Tests with Ruby ${{ matrix.ruby }} and ${{ matrix.gemfile }}
|
@@ -19,13 +23,17 @@ jobs:
|
|
19
23
|
strategy:
|
20
24
|
fail-fast: false
|
21
25
|
matrix:
|
22
|
-
ruby: ["
|
26
|
+
ruby: ["3.1", "3.2", "3.3"]
|
23
27
|
gemfile:
|
24
28
|
- Gemfile
|
25
29
|
services:
|
26
30
|
postgres:
|
27
|
-
image: postgres
|
31
|
+
image: postgres
|
28
32
|
ports: ["5432:5432"]
|
33
|
+
env:
|
34
|
+
POSTGRES_HOST: localhost
|
35
|
+
POSTGRES_PORT: 5432
|
36
|
+
POSTGRES_HOST_AUTH_METHOD: trust
|
29
37
|
options:
|
30
38
|
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
|
31
39
|
--health-retries 5
|
@@ -33,14 +41,14 @@ jobs:
|
|
33
41
|
steps:
|
34
42
|
- uses: actions/checkout@v4
|
35
43
|
|
36
|
-
- uses: actions/cache@
|
44
|
+
- uses: actions/cache@v4
|
37
45
|
with:
|
38
46
|
path: vendor/bundle
|
39
47
|
key: >
|
40
48
|
${{ runner.os }}-${{ matrix.ruby }}-gems-${{
|
41
49
|
hashFiles(matrix.gemfile) }}
|
42
50
|
|
43
|
-
- name: Install PostgreSQL
|
51
|
+
- name: Install PostgreSQL client
|
44
52
|
run: |
|
45
53
|
sudo apt -y install libpq-dev
|
46
54
|
|
@@ -59,8 +67,6 @@ jobs:
|
|
59
67
|
|
60
68
|
- name: Run Tests
|
61
69
|
env:
|
62
|
-
PGHOST: localhost
|
63
|
-
PGUSER: postgres
|
64
70
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
65
71
|
run: |
|
66
72
|
psql -U postgres -c "create database test"
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# email_data
|
2
2
|
|
3
3
|
[![Tests](https://github.com/fnando/email_data/workflows/ruby-tests/badge.svg)](https://github.com/fnando/email_data)
|
4
|
-
[![Code Climate](https://codeclimate.com/github/fnando/email_data/badges/gpa.svg)](https://codeclimate.com/github/fnando/email_data)
|
5
4
|
[![Gem version](https://img.shields.io/gem/v/email_data.svg?label=Gem%20version)](https://rubygems.org/gems/email_data)
|
6
5
|
[![Gem downloads](https://img.shields.io/gem/dt/email_data.svg?label=Gem%20downloads)](https://rubygems.org/gems/email_data)
|
7
6
|
[![NPM version](https://img.shields.io/npm/v/%40fnando%2Femail_data.svg?label=NPM%20version)](https://npmjs.org/package/@fnando/email_data)
|
data/bin/helpers.rb
CHANGED
@@ -182,7 +182,8 @@ def http_request(verb, url, params = nil)
|
|
182
182
|
"Origin" => referer
|
183
183
|
}
|
184
184
|
|
185
|
-
Aitch.public_send(verb, url: url, headers: headers, params: params,
|
185
|
+
Aitch.public_send(verb, url: url, headers: headers, params: params,
|
186
|
+
options: {expect: 200})
|
186
187
|
end
|
187
188
|
|
188
189
|
def root_domains(domains)
|
@@ -190,7 +191,7 @@ def root_domains(domains)
|
|
190
191
|
RootDomain.call(domain)
|
191
192
|
end
|
192
193
|
|
193
|
-
processed_domains.
|
194
|
+
processed_domains.compact
|
194
195
|
end
|
195
196
|
|
196
197
|
def thread
|
@@ -204,7 +205,8 @@ end
|
|
204
205
|
def load_github_url(url)
|
205
206
|
puts "=> Fetching #{url}"
|
206
207
|
|
207
|
-
basename = URI.parse(url).path[%r{/([^/]+/[^/]+)}, 1].tr("/", "_").tr("-",
|
208
|
+
basename = URI.parse(url).path[%r{/([^/]+/[^/]+)}, 1].tr("/", "_").tr("-",
|
209
|
+
"_")
|
208
210
|
path = "disposable/#{basename}.txt"
|
209
211
|
domains = load_file(path)
|
210
212
|
|
@@ -227,5 +229,5 @@ rescue StandardError => error
|
|
227
229
|
end
|
228
230
|
|
229
231
|
def normalize_list(list)
|
230
|
-
list.flatten.
|
232
|
+
list.flatten.filter_map(&:chomp).reject(&:empty?) - EXCEPTIONS
|
231
233
|
end
|