email_data 1605067682 → 1605588714

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.
@@ -15,7 +15,9 @@ module EmailData
15
15
  :disposable_emails,
16
16
  :country_tlds,
17
17
  :free_email_domains,
18
+ :private_relays,
18
19
  :tlds,
20
+ :slds,
19
21
  :roles
20
22
  end
21
23
 
@@ -19,6 +19,10 @@ module EmailData
19
19
  self.table_name = "tlds"
20
20
  end
21
21
 
22
+ class SLD < ApplicationRecord
23
+ self.table_name = "slds"
24
+ end
25
+
22
26
  class CountryTLD < ApplicationRecord
23
27
  self.table_name = "country_tlds"
24
28
  end
@@ -39,6 +43,10 @@ module EmailData
39
43
  self.table_name = "roles"
40
44
  end
41
45
 
46
+ class PrivateRelay < ApplicationRecord
47
+ self.table_name = "private_relays"
48
+ end
49
+
42
50
  class Collection
43
51
  def initialize(model)
44
52
  @model = model
@@ -57,6 +65,10 @@ module EmailData
57
65
  @tlds ||= Collection.new(TLD)
58
66
  end
59
67
 
68
+ def self.slds
69
+ @slds ||= Collection.new(SLD)
70
+ end
71
+
60
72
  def self.country_tlds
61
73
  @country_tlds ||= Collection.new(CountryTLD)
62
74
  end
@@ -76,6 +88,10 @@ module EmailData
76
88
  def self.roles
77
89
  @roles ||= Collection.new(Role)
78
90
  end
91
+
92
+ def self.private_relays
93
+ @private_relays ||= Collection.new(PrivateRelay)
94
+ end
79
95
  end
80
96
  end
81
97
  end
@@ -7,6 +7,10 @@ module EmailData
7
7
  @tlds ||= load_file("tlds.txt")
8
8
  end
9
9
 
10
+ def self.slds
11
+ @slds ||= load_file("slds.txt")
12
+ end
13
+
10
14
  def self.country_tlds
11
15
  @country_tlds ||= load_file("country_tlds.txt")
12
16
  end
@@ -27,6 +31,10 @@ module EmailData
27
31
  @roles ||= load_file("roles.txt")
28
32
  end
29
33
 
34
+ def self.private_relays
35
+ @private_relays ||= load_file("private_relays.txt")
36
+ end
37
+
30
38
  def self.load_file(filename)
31
39
  EmailData
32
40
  .data_dir
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fnando/email_data",
3
3
  "description": "This project is a compilation of datasets related to emails. Includes disposable emails, disposable domains, and free email services.",
4
- "version": "1605067682.0.0",
4
+ "version": "1605588714.0.0",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_data
3
3
  version: !ruby/object:Gem::Version
4
- version: '1605067682'
4
+ version: '1605588714'
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-11-11 00:00:00.000000000 Z
11
+ date: 2020-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -201,8 +201,11 @@ files:
201
201
  - data/manual/disposable_domains.txt
202
202
  - data/manual/disposable_emails.txt
203
203
  - data/manual/free_email_domains.txt
204
+ - data/manual/private_relays.txt
204
205
  - data/manual/roles.txt
206
+ - data/private_relays.txt
205
207
  - data/roles.txt
208
+ - data/slds.txt
206
209
  - data/tlds.txt
207
210
  - email_data.gemspec
208
211
  - lib/email_data.rb