email_data 1605293459 → 1605671224

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.
@@ -1,23 +1,29 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/email_data/version"
3
+ require_relative "./lib/email_data/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "email_data"
7
- spec.version = EmailData::VERSION
8
- spec.authors = ["Nando Vieira"]
9
- spec.email = ["me@fnando.com"]
10
-
11
- spec.summary = "This project is a compilation of datasets related to " \
12
- "emails. Includes disposable emails, disposable " \
13
- "domains, and free email services."
14
- spec.description = spec.summary
15
- spec.homepage = "https://github.com/fnando/email_data"
16
- spec.license = "MIT"
17
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
6
+ spec.name = "email_data"
7
+ spec.version = EmailData::VERSION
8
+ spec.authors = ["Nando Vieira"]
9
+ spec.email = ["me@fnando.com"]
18
10
 
11
+ spec.summary = "This project is a compilation of datasets related to " \
12
+ "emails. Includes disposable emails, disposable " \
13
+ "domains, and free email services."
14
+ spec.description = spec.summary
15
+ spec.license = "MIT"
16
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
17
+
18
+ github_url = "https://github.com/fnando/email_data"
19
+ github_tree_url = "#{github_url}/tree/v#{spec.version}"
20
+
21
+ spec.homepage = github_url
19
22
  spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = spec.homepage
23
+ spec.metadata["bug_tracker_uri"] = "#{github_url}/issues"
24
+ spec.metadata["source_code_uri"] = github_tree_url
25
+ spec.metadata["documentation_uri"] = "#{github_tree_url}/README.md"
26
+ spec.metadata["license_uri"] = "#{github_tree_url}/LICENSE.md"
21
27
 
22
28
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
23
29
  `git ls-files -z`
@@ -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": "1605293459.0.0",
4
+ "version": "1605671224.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: '1605293459'
4
+ version: '1605671224'
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-13 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -172,14 +172,21 @@ executables: []
172
172
  extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
+ - ".github/CODEOWNERS"
175
176
  - ".github/FUNDING.yml"
176
- - ".github/workflows/tests.yml"
177
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
178
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
179
+ - ".github/PULL_REQUEST_TEMPLATE.md"
180
+ - ".github/dependabot.yml"
181
+ - ".github/workflows/ruby-tests.yml"
177
182
  - ".gitignore"
178
183
  - ".rubocop.yml"
179
184
  - ".tool-versions"
180
185
  - CODE_OF_CONDUCT.md
186
+ - CONTRIBUTING.md
181
187
  - Gemfile
182
188
  - Gemfile.lock
189
+ - LICENSE.md
183
190
  - LICENSE.txt
184
191
  - README.md
185
192
  - Rakefile
@@ -201,8 +208,11 @@ files:
201
208
  - data/manual/disposable_domains.txt
202
209
  - data/manual/disposable_emails.txt
203
210
  - data/manual/free_email_domains.txt
211
+ - data/manual/private_relays.txt
204
212
  - data/manual/roles.txt
213
+ - data/private_relays.txt
205
214
  - data/roles.txt
215
+ - data/slds.txt
206
216
  - data/tlds.txt
207
217
  - email_data.gemspec
208
218
  - lib/email_data.rb
@@ -215,7 +225,10 @@ licenses:
215
225
  - MIT
216
226
  metadata:
217
227
  homepage_uri: https://github.com/fnando/email_data
218
- source_code_uri: https://github.com/fnando/email_data
228
+ bug_tracker_uri: https://github.com/fnando/email_data/issues
229
+ source_code_uri: https://github.com/fnando/email_data/tree/v1605671224
230
+ documentation_uri: https://github.com/fnando/email_data/tree/v1605671224/README.md
231
+ license_uri: https://github.com/fnando/email_data/tree/v1605671224/LICENSE.md
219
232
  post_install_message:
220
233
  rdoc_options: []
221
234
  require_paths:
@@ -224,7 +237,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
237
  requirements:
225
238
  - - ">="
226
239
  - !ruby/object:Gem::Version
227
- version: 2.5.0
240
+ version: 2.6.0
228
241
  required_rubygems_version: !ruby/object:Gem::Requirement
229
242
  requirements:
230
243
  - - ">="