email_data 1604703468 → 1605067682

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,8 @@ module EmailData
15
15
  :disposable_emails,
16
16
  :country_tlds,
17
17
  :free_email_domains,
18
- :tlds
18
+ :tlds,
19
+ :roles
19
20
  end
20
21
 
21
22
  def self.source=(source)
@@ -35,6 +35,10 @@ module EmailData
35
35
  self.table_name = "free_email_domains"
36
36
  end
37
37
 
38
+ class Role < ApplicationRecord
39
+ self.table_name = "roles"
40
+ end
41
+
38
42
  class Collection
39
43
  def initialize(model)
40
44
  @model = model
@@ -68,6 +72,10 @@ module EmailData
68
72
  def self.free_email_domains
69
73
  @free_email_domains ||= Collection.new(FreeEmailDomain)
70
74
  end
75
+
76
+ def self.roles
77
+ @roles ||= Collection.new(Role)
78
+ end
71
79
  end
72
80
  end
73
81
  end
@@ -23,6 +23,10 @@ module EmailData
23
23
  @free_email_domains ||= load_file("free_email_domains.txt")
24
24
  end
25
25
 
26
+ def self.roles
27
+ @roles ||= load_file("roles.txt")
28
+ end
29
+
26
30
  def self.load_file(filename)
27
31
  EmailData
28
32
  .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": "1604703468.0.0",
4
+ "version": "1605067682.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: '1604703468'
4
+ version: '1605067682'
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-06 00:00:00.000000000 Z
11
+ date: 2020-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -201,6 +201,8 @@ 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/roles.txt
205
+ - data/roles.txt
204
206
  - data/tlds.txt
205
207
  - email_data.gemspec
206
208
  - lib/email_data.rb