webmail_provider 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/providers.csv +46 -0
- data/lib/webmail_provider.rb +23 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0dfb2e5ee8468f484787a3d51809791d04c12266
|
4
|
+
data.tar.gz: a2d92445baf58ac2521dcd92d9fb45a334275dea
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 709cf2095c95b97033793a3fbc1777f2df42a9d295890c44f8069abdd54aba3c1695d1247b496a112e510526e6069a4d528da2b80ce6a8446bb5ee99c94f3f3d
|
7
|
+
data.tar.gz: e27fdee206385ea40974ab21230dd212d8a0021708bf1cb6a6d950b5994d6a52ef7bc5954279aabf9ca02f0d0a09404ee447f115009267eaab99cce6a0e8bb60
|
data/lib/providers.csv
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
aol.com,AOL,mail.aol.com
|
2
|
+
aol.de,AOL,mail.aol.de
|
3
|
+
arcor.de,Arcor,www.arcor.de/login/
|
4
|
+
email.com,Mail.com,www.mail.com
|
5
|
+
fastmail.fm,FastMail,www.fastmail.com
|
6
|
+
freemail.hu,[freemail],freemail.hu
|
7
|
+
freenet.de,freenetMail,email.freenet.de
|
8
|
+
gmail.com,Gmail,mail.google.com
|
9
|
+
gmail.de,Gmail,mail.google.com
|
10
|
+
gmx.com,GMX,www.gmx.com
|
11
|
+
gmx.de,GMX,www.gmx.net
|
12
|
+
gmx.net,GMX,www.gmx.net
|
13
|
+
googlemail.com,Gmail,mail.google.com
|
14
|
+
hotmail.co.uk,Outlook.com,outlook.live.com
|
15
|
+
hotmail.com,Outlook.com,outlook.live.com
|
16
|
+
hotmail.de,Outlook.com,outlook.live.com
|
17
|
+
hush.com,Hushmail,www.hushmail.com
|
18
|
+
hushmail.com,Hushmail,www.hushmail.com
|
19
|
+
hushmail.me,Hushmail,www.hushmail.com
|
20
|
+
inbox.com,Inbox.com,www.inbox.com/login.aspx
|
21
|
+
lycos.com,Lycos,www.mail.lycos.com
|
22
|
+
lycos.de,Lycos,www.mail.lycos.com
|
23
|
+
mail.com,Mail.com,www.mail.com
|
24
|
+
mail.de,mail.de,my.mail.de
|
25
|
+
mail.ru,Mail.Ru,mail.ru
|
26
|
+
mailcatch.com,MailCatch,mailcatch.com
|
27
|
+
microsoft.com,Outlook.com,outlook.live.com
|
28
|
+
myself.com,Mail.com,www.mail.com
|
29
|
+
outlook.com,Outlook.com,outlook.live.com
|
30
|
+
post.com,Mail.com,www.mail.com
|
31
|
+
posteo.de,Posteo,posteo.de/login
|
32
|
+
protonmail.ch,ProtonMail,mail.protonmail.com
|
33
|
+
protonmail.com,ProtonMail,mail.protonmail.com
|
34
|
+
t-online.de,T-Online,accounts.login.idm.telekom.com
|
35
|
+
usa.com,Mail.com,www.mail.com
|
36
|
+
vodafone.de,Vodafone,webmail.vodafone.de
|
37
|
+
web.de,Web.de,www.web.de
|
38
|
+
webmail.co.za,Webmail,www.webmail.co.za/login.php
|
39
|
+
yahoo.co.uk,Yahoo! Mail,mail.yahoo.co.uk
|
40
|
+
yahoo.com,Yahoo! Mail,mail.yahoo.com
|
41
|
+
yahoo.de,Yahoo! Mail,mail.yahoo.com
|
42
|
+
yahoo.fr,Yahoo! Mail,mail.yahoo.fr
|
43
|
+
yandex.com,Yandex,mail.yandex.com
|
44
|
+
yandex.ru,Yandex,mail.yandex.ru
|
45
|
+
zoho.com,Zoho,www.zoho.com/login.html
|
46
|
+
zoho.de,Zoho,www.zoho.com/login.html
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'csv'
|
2
|
+
require 'uri'
|
3
|
+
|
4
|
+
class WebmailProvider
|
5
|
+
attr_reader :name, :url
|
6
|
+
|
7
|
+
def initialize(name, url)
|
8
|
+
@name = name
|
9
|
+
@url = URI("https://#{url}")
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.for(email_address)
|
13
|
+
domain = email_address && email_address.split('@').last.strip
|
14
|
+
list[domain]
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.list
|
18
|
+
@list ||= CSV.foreach(File.join(__dir__, 'providers.csv'))
|
19
|
+
.each_with_object({}) do |(domain, *attributes), hash|
|
20
|
+
hash[domain] = new(*attributes)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: webmail_provider
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Janosch Müller
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mutant-rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '11.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '11.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.5'
|
55
|
+
description: Returns provider names and login URLs for email addresses of some common
|
56
|
+
German and international webmail domains
|
57
|
+
email: janosch84@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- lib/providers.csv
|
63
|
+
- lib/webmail_provider.rb
|
64
|
+
homepage: https://github.com/janosch-x/webmail_provider
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
metadata: {}
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.9.2
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.5.1
|
85
|
+
signing_key:
|
86
|
+
specification_version: 4
|
87
|
+
summary: Returns webmail provider information for email addresses
|
88
|
+
test_files: []
|