rubytldmap 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +3 -0
- data/.travis.yml +20 -0
- data/Gemfile +4 -0
- data/LICENSE +28 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/rubytldmap/lookup.rb +857 -0
- data/lib/rubytldmap/version.rb +3 -0
- data/lib/rubytldmap.rb +5 -0
- data/rubytldmap.gemspec +23 -0
- metadata +86 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 18c2be2c9c5dd3af61db0fc0e4dda48be31a2e98
|
4
|
+
data.tar.gz: 1389239c42861453bf4368eb3eb8d36beda5843c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 292027f93fed3c3ed8d69cadb62633906957abc75a967ca2ae1ba00281083240d22b18cef3bfad18d64010a71545a0ee836e062dd722afe88fa2bee2419a8220
|
7
|
+
data.tar.gz: e0268e620391f775a2d90582a1e6f14d44c86e10e6c2e28585e3cfe4d697ef0c7b868686a47c1b6e4e11837fc8226f4cd05deb195948612017c0c643c0ae98dc
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
bundler_args: --without development
|
4
|
+
|
5
|
+
rvm:
|
6
|
+
- 2.0.0
|
7
|
+
- 2.1.0
|
8
|
+
- ruby-head
|
9
|
+
- jruby-head
|
10
|
+
- rbx
|
11
|
+
|
12
|
+
matrix:
|
13
|
+
allow_failures:
|
14
|
+
- rvm: ruby-head
|
15
|
+
- rvm: jruby-head
|
16
|
+
- rvm: rbx
|
17
|
+
|
18
|
+
branches:
|
19
|
+
only:
|
20
|
+
- master
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
Copyright (c) 2015, linkosmosis
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
8
|
+
list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
12
|
+
and/or other materials provided with the distribution.
|
13
|
+
|
14
|
+
* Neither the name of rubytldmap nor the names of its
|
15
|
+
contributors may be used to endorse or promote products derived from
|
16
|
+
this software without specific prior written permission.
|
17
|
+
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
22
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
23
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
24
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
25
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
26
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Ernestas Poskus
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# rubytldmap
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/linkosmosis/rubytldmap.svg)](https://travis-ci.org/linkosmosis/rubytldmap)
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'rubytldmap'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install rubytldmap
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
Rubytldmap::Lookup.find_by_tld(:com)
|
25
|
+
Rubytldmap::Lookup.find_by_mark(20)
|
26
|
+
```
|
27
|
+
|
28
|
+
## Development
|
29
|
+
|
30
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
31
|
+
|
32
|
+
## Contributing
|
33
|
+
|
34
|
+
1. Fork it ( https://github.com/linkosmosis/rubytldmap/fork )
|
35
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
36
|
+
3. Commit your changes (`git commit -am 'Add rubytldmap feature'`)
|
37
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
38
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rubytldmap"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,857 @@
|
|
1
|
+
module Rubytldmap
|
2
|
+
class Lookup
|
3
|
+
def self.find_by_tld(tld)
|
4
|
+
map[tld]
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.find_by_mark(mark)
|
8
|
+
map.key(mark)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.map
|
12
|
+
{
|
13
|
+
abb: 1,
|
14
|
+
abbott: 2,
|
15
|
+
abogado: 3,
|
16
|
+
ac: 4,
|
17
|
+
academy: 5,
|
18
|
+
accountant: 6,
|
19
|
+
accountants: 7,
|
20
|
+
active: 8,
|
21
|
+
actor: 9,
|
22
|
+
ad: 10,
|
23
|
+
ads: 11,
|
24
|
+
adult: 12,
|
25
|
+
ae: 13,
|
26
|
+
aero: 14,
|
27
|
+
af: 15,
|
28
|
+
afl: 16,
|
29
|
+
ag: 17,
|
30
|
+
agency: 18,
|
31
|
+
ai: 19,
|
32
|
+
aig: 20,
|
33
|
+
airforce: 21,
|
34
|
+
al: 22,
|
35
|
+
allfinanz: 23,
|
36
|
+
alsace: 24,
|
37
|
+
am: 25,
|
38
|
+
amsterdam: 26,
|
39
|
+
an: 27,
|
40
|
+
android: 28,
|
41
|
+
ao: 29,
|
42
|
+
apartments: 30,
|
43
|
+
aq: 31,
|
44
|
+
aquarelle: 32,
|
45
|
+
ar: 33,
|
46
|
+
archi: 34,
|
47
|
+
army: 35,
|
48
|
+
arpa: 36,
|
49
|
+
as: 37,
|
50
|
+
asia: 38,
|
51
|
+
associates: 39,
|
52
|
+
at: 40,
|
53
|
+
attorney: 41,
|
54
|
+
au: 42,
|
55
|
+
auction: 43,
|
56
|
+
audio: 44,
|
57
|
+
auto: 45,
|
58
|
+
autos: 46,
|
59
|
+
aw: 47,
|
60
|
+
ax: 48,
|
61
|
+
axa: 49,
|
62
|
+
az: 50,
|
63
|
+
ba: 51,
|
64
|
+
band: 52,
|
65
|
+
bank: 53,
|
66
|
+
bar: 54,
|
67
|
+
barclaycard: 55,
|
68
|
+
barclays: 56,
|
69
|
+
bargains: 57,
|
70
|
+
bauhaus: 58,
|
71
|
+
bayern: 59,
|
72
|
+
bb: 60,
|
73
|
+
bbc: 61,
|
74
|
+
bd: 62,
|
75
|
+
be: 63,
|
76
|
+
beer: 64,
|
77
|
+
berlin: 65,
|
78
|
+
best: 66,
|
79
|
+
bf: 67,
|
80
|
+
bg: 68,
|
81
|
+
bh: 69,
|
82
|
+
bi: 70,
|
83
|
+
bid: 71,
|
84
|
+
bike: 72,
|
85
|
+
bingo: 73,
|
86
|
+
bio: 74,
|
87
|
+
biz: 75,
|
88
|
+
bj: 76,
|
89
|
+
black: 77,
|
90
|
+
blackfriday: 78,
|
91
|
+
bloomberg: 79,
|
92
|
+
blue: 80,
|
93
|
+
bm: 81,
|
94
|
+
bmw: 82,
|
95
|
+
bn: 83,
|
96
|
+
bnpparibas: 84,
|
97
|
+
bo: 85,
|
98
|
+
boats: 86,
|
99
|
+
bond: 87,
|
100
|
+
boo: 88,
|
101
|
+
boutique: 89,
|
102
|
+
br: 90,
|
103
|
+
bridgestone: 91,
|
104
|
+
broker: 92,
|
105
|
+
brussels: 93,
|
106
|
+
bs: 94,
|
107
|
+
bt: 95,
|
108
|
+
budapest: 96,
|
109
|
+
build: 97,
|
110
|
+
builders: 98,
|
111
|
+
business: 99,
|
112
|
+
buzz: 100,
|
113
|
+
bv: 101,
|
114
|
+
bw: 102,
|
115
|
+
by: 103,
|
116
|
+
bz: 104,
|
117
|
+
bzh: 105,
|
118
|
+
ca: 106,
|
119
|
+
cab: 107,
|
120
|
+
cafe: 108,
|
121
|
+
cal: 109,
|
122
|
+
camera: 110,
|
123
|
+
camp: 111,
|
124
|
+
cancerresearch: 112,
|
125
|
+
canon: 113,
|
126
|
+
capetown: 114,
|
127
|
+
capital: 115,
|
128
|
+
caravan: 116,
|
129
|
+
cards: 117,
|
130
|
+
care: 118,
|
131
|
+
career: 119,
|
132
|
+
careers: 120,
|
133
|
+
cars: 121,
|
134
|
+
cartier: 122,
|
135
|
+
casa: 123,
|
136
|
+
cash: 124,
|
137
|
+
casino: 125,
|
138
|
+
cat: 126,
|
139
|
+
catering: 127,
|
140
|
+
cbn: 128,
|
141
|
+
cc: 129,
|
142
|
+
cd: 130,
|
143
|
+
center: 131,
|
144
|
+
ceo: 132,
|
145
|
+
cern: 133,
|
146
|
+
cf: 134,
|
147
|
+
cfa: 135,
|
148
|
+
cfd: 136,
|
149
|
+
cg: 137,
|
150
|
+
ch: 138,
|
151
|
+
channel: 139,
|
152
|
+
chat: 140,
|
153
|
+
cheap: 141,
|
154
|
+
chloe: 142,
|
155
|
+
christmas: 143,
|
156
|
+
chrome: 144,
|
157
|
+
church: 145,
|
158
|
+
ci: 146,
|
159
|
+
citic: 147,
|
160
|
+
city: 148,
|
161
|
+
ck: 149,
|
162
|
+
cl: 150,
|
163
|
+
claims: 151,
|
164
|
+
cleaning: 152,
|
165
|
+
click: 153,
|
166
|
+
clinic: 154,
|
167
|
+
clothing: 155,
|
168
|
+
club: 156,
|
169
|
+
cm: 157,
|
170
|
+
cn: 158,
|
171
|
+
co: 159,
|
172
|
+
coach: 160,
|
173
|
+
codes: 161,
|
174
|
+
coffee: 162,
|
175
|
+
college: 163,
|
176
|
+
cologne: 164,
|
177
|
+
com: 165,
|
178
|
+
community: 166,
|
179
|
+
company: 167,
|
180
|
+
computer: 168,
|
181
|
+
condos: 169,
|
182
|
+
construction: 170,
|
183
|
+
consulting: 171,
|
184
|
+
contractors: 172,
|
185
|
+
cooking: 173,
|
186
|
+
cool: 174,
|
187
|
+
coop: 175,
|
188
|
+
country: 176,
|
189
|
+
courses: 177,
|
190
|
+
cr: 178,
|
191
|
+
credit: 179,
|
192
|
+
creditcard: 180,
|
193
|
+
cricket: 181,
|
194
|
+
crs: 182,
|
195
|
+
cruises: 183,
|
196
|
+
cu: 184,
|
197
|
+
cuisinella: 185,
|
198
|
+
cv: 186,
|
199
|
+
cw: 187,
|
200
|
+
cx: 188,
|
201
|
+
cy: 189,
|
202
|
+
cymru: 190,
|
203
|
+
cyou: 191,
|
204
|
+
cz: 192,
|
205
|
+
dabur: 193,
|
206
|
+
dad: 194,
|
207
|
+
dance: 195,
|
208
|
+
date: 196,
|
209
|
+
dating: 197,
|
210
|
+
datsun: 198,
|
211
|
+
day: 199,
|
212
|
+
dclk: 200,
|
213
|
+
de: 201,
|
214
|
+
deals: 202,
|
215
|
+
degree: 203,
|
216
|
+
delivery: 204,
|
217
|
+
democrat: 205,
|
218
|
+
dental: 206,
|
219
|
+
dentist: 207,
|
220
|
+
desi: 208,
|
221
|
+
design: 209,
|
222
|
+
dev: 210,
|
223
|
+
diamonds: 211,
|
224
|
+
diet: 212,
|
225
|
+
digital: 213,
|
226
|
+
direct: 214,
|
227
|
+
directory: 215,
|
228
|
+
discount: 216,
|
229
|
+
dj: 217,
|
230
|
+
dk: 218,
|
231
|
+
dm: 219,
|
232
|
+
dnp: 220,
|
233
|
+
do: 221,
|
234
|
+
docs: 222,
|
235
|
+
dog: 223,
|
236
|
+
doha: 224,
|
237
|
+
domains: 225,
|
238
|
+
doosan: 226,
|
239
|
+
download: 227,
|
240
|
+
durban: 228,
|
241
|
+
dvag: 229,
|
242
|
+
dz: 230,
|
243
|
+
eat: 231,
|
244
|
+
ec: 232,
|
245
|
+
edu: 233,
|
246
|
+
education: 234,
|
247
|
+
ee: 235,
|
248
|
+
eg: 236,
|
249
|
+
email: 237,
|
250
|
+
emerck: 238,
|
251
|
+
energy: 239,
|
252
|
+
engineer: 240,
|
253
|
+
engineering: 241,
|
254
|
+
enterprises: 242,
|
255
|
+
epson: 243,
|
256
|
+
equipment: 244,
|
257
|
+
er: 245,
|
258
|
+
erni: 246,
|
259
|
+
es: 247,
|
260
|
+
esq: 248,
|
261
|
+
estate: 249,
|
262
|
+
et: 250,
|
263
|
+
eu: 251,
|
264
|
+
eurovision: 252,
|
265
|
+
eus: 253,
|
266
|
+
events: 254,
|
267
|
+
everbank: 255,
|
268
|
+
exchange: 256,
|
269
|
+
expert: 257,
|
270
|
+
exposed: 258,
|
271
|
+
express: 259,
|
272
|
+
fail: 260,
|
273
|
+
faith: 261,
|
274
|
+
fan: 262,
|
275
|
+
fans: 263,
|
276
|
+
farm: 264,
|
277
|
+
fashion: 265,
|
278
|
+
feedback: 266,
|
279
|
+
fi: 267,
|
280
|
+
film: 268,
|
281
|
+
finance: 269,
|
282
|
+
financial: 270,
|
283
|
+
firmdale: 271,
|
284
|
+
fish: 272,
|
285
|
+
fishing: 273,
|
286
|
+
fit: 274,
|
287
|
+
fitness: 275,
|
288
|
+
fj: 276,
|
289
|
+
fk: 277,
|
290
|
+
flights: 278,
|
291
|
+
florist: 279,
|
292
|
+
flowers: 280,
|
293
|
+
flsmidth: 281,
|
294
|
+
fly: 282,
|
295
|
+
fm: 283,
|
296
|
+
fo: 284,
|
297
|
+
foo: 285,
|
298
|
+
football: 286,
|
299
|
+
forex: 287,
|
300
|
+
forsale: 288,
|
301
|
+
foundation: 289,
|
302
|
+
fr: 290,
|
303
|
+
frl: 291,
|
304
|
+
frogans: 292,
|
305
|
+
fund: 293,
|
306
|
+
furniture: 294,
|
307
|
+
futbol: 295,
|
308
|
+
ga: 296,
|
309
|
+
gal: 297,
|
310
|
+
gallery: 298,
|
311
|
+
garden: 299,
|
312
|
+
gb: 300,
|
313
|
+
gbiz: 301,
|
314
|
+
gd: 302,
|
315
|
+
gdn: 303,
|
316
|
+
ge: 304,
|
317
|
+
gent: 305,
|
318
|
+
gf: 306,
|
319
|
+
gg: 307,
|
320
|
+
ggee: 308,
|
321
|
+
gh: 309,
|
322
|
+
gi: 310,
|
323
|
+
gift: 311,
|
324
|
+
gifts: 312,
|
325
|
+
gives: 313,
|
326
|
+
gl: 314,
|
327
|
+
glass: 315,
|
328
|
+
gle: 316,
|
329
|
+
global: 317,
|
330
|
+
globo: 318,
|
331
|
+
gm: 319,
|
332
|
+
gmail: 320,
|
333
|
+
gmo: 321,
|
334
|
+
gmx: 322,
|
335
|
+
gn: 323,
|
336
|
+
gold: 324,
|
337
|
+
goldpoint: 325,
|
338
|
+
golf: 326,
|
339
|
+
goo: 327,
|
340
|
+
goog: 328,
|
341
|
+
google: 329,
|
342
|
+
gop: 330,
|
343
|
+
gov: 331,
|
344
|
+
gp: 332,
|
345
|
+
gq: 333,
|
346
|
+
gr: 334,
|
347
|
+
graphics: 335,
|
348
|
+
gratis: 336,
|
349
|
+
green: 337,
|
350
|
+
gripe: 338,
|
351
|
+
gs: 339,
|
352
|
+
gt: 340,
|
353
|
+
gu: 341,
|
354
|
+
guge: 342,
|
355
|
+
guide: 343,
|
356
|
+
guitars: 344,
|
357
|
+
guru: 345,
|
358
|
+
gw: 346,
|
359
|
+
gy: 347,
|
360
|
+
hamburg: 348,
|
361
|
+
hangout: 349,
|
362
|
+
haus: 350,
|
363
|
+
healthcare: 351,
|
364
|
+
help: 352,
|
365
|
+
here: 353,
|
366
|
+
hermes: 354,
|
367
|
+
hiphop: 355,
|
368
|
+
hitachi: 356,
|
369
|
+
hiv: 357,
|
370
|
+
hk: 358,
|
371
|
+
hm: 359,
|
372
|
+
hn: 360,
|
373
|
+
hockey: 361,
|
374
|
+
holdings: 362,
|
375
|
+
holiday: 363,
|
376
|
+
homes: 364,
|
377
|
+
honda: 365,
|
378
|
+
horse: 366,
|
379
|
+
host: 367,
|
380
|
+
hosting: 368,
|
381
|
+
house: 369,
|
382
|
+
how: 370,
|
383
|
+
hr: 371,
|
384
|
+
ht: 372,
|
385
|
+
hu: 373,
|
386
|
+
ibm: 374,
|
387
|
+
icu: 375,
|
388
|
+
id: 376,
|
389
|
+
ie: 377,
|
390
|
+
ifm: 378,
|
391
|
+
il: 379,
|
392
|
+
im: 380,
|
393
|
+
immo: 381,
|
394
|
+
immobilien: 382,
|
395
|
+
in: 383,
|
396
|
+
industries: 384,
|
397
|
+
infiniti: 385,
|
398
|
+
info: 386,
|
399
|
+
ing: 387,
|
400
|
+
ink: 388,
|
401
|
+
institute: 389,
|
402
|
+
insure: 390,
|
403
|
+
int: 391,
|
404
|
+
international: 392,
|
405
|
+
investments: 393,
|
406
|
+
io: 394,
|
407
|
+
iq: 395,
|
408
|
+
ir: 396,
|
409
|
+
irish: 397,
|
410
|
+
is: 398,
|
411
|
+
it: 399,
|
412
|
+
iwc: 400,
|
413
|
+
java: 401,
|
414
|
+
jcb: 402,
|
415
|
+
je: 403,
|
416
|
+
jetzt: 404,
|
417
|
+
jewelry: 405,
|
418
|
+
jm: 406,
|
419
|
+
jo: 407,
|
420
|
+
jobs: 408,
|
421
|
+
joburg: 409,
|
422
|
+
jp: 410,
|
423
|
+
juegos: 411,
|
424
|
+
kaufen: 412,
|
425
|
+
kddi: 413,
|
426
|
+
ke: 414,
|
427
|
+
kg: 415,
|
428
|
+
kh: 416,
|
429
|
+
ki: 417,
|
430
|
+
kim: 418,
|
431
|
+
kitchen: 419,
|
432
|
+
kiwi: 420,
|
433
|
+
km: 421,
|
434
|
+
kn: 422,
|
435
|
+
koeln: 423,
|
436
|
+
komatsu: 424,
|
437
|
+
kp: 425,
|
438
|
+
kr: 426,
|
439
|
+
krd: 427,
|
440
|
+
kred: 428,
|
441
|
+
kw: 429,
|
442
|
+
ky: 430,
|
443
|
+
kyoto: 431,
|
444
|
+
kz: 432,
|
445
|
+
la: 433,
|
446
|
+
lacaixa: 434,
|
447
|
+
land: 435,
|
448
|
+
lat: 436,
|
449
|
+
latrobe: 437,
|
450
|
+
lawyer: 438,
|
451
|
+
lb: 439,
|
452
|
+
lc: 440,
|
453
|
+
lds: 441,
|
454
|
+
lease: 442,
|
455
|
+
leclerc: 443,
|
456
|
+
legal: 444,
|
457
|
+
lgbt: 445,
|
458
|
+
li: 446,
|
459
|
+
liaison: 447,
|
460
|
+
lidl: 448,
|
461
|
+
life: 449,
|
462
|
+
lighting: 450,
|
463
|
+
limited: 451,
|
464
|
+
limo: 452,
|
465
|
+
link: 453,
|
466
|
+
lk: 454,
|
467
|
+
loan: 455,
|
468
|
+
loans: 456,
|
469
|
+
lol: 457,
|
470
|
+
london: 458,
|
471
|
+
lotte: 459,
|
472
|
+
lotto: 460,
|
473
|
+
love: 461,
|
474
|
+
lr: 462,
|
475
|
+
ls: 463,
|
476
|
+
lt: 464,
|
477
|
+
ltda: 465,
|
478
|
+
lu: 466,
|
479
|
+
luxe: 467,
|
480
|
+
luxury: 468,
|
481
|
+
lv: 469,
|
482
|
+
ly: 470,
|
483
|
+
ma: 471,
|
484
|
+
madrid: 472,
|
485
|
+
maif: 473,
|
486
|
+
maison: 474,
|
487
|
+
management: 475,
|
488
|
+
mango: 476,
|
489
|
+
market: 477,
|
490
|
+
marketing: 478,
|
491
|
+
markets: 479,
|
492
|
+
marriott: 480,
|
493
|
+
mc: 481,
|
494
|
+
md: 482,
|
495
|
+
me: 483,
|
496
|
+
media: 484,
|
497
|
+
meet: 485,
|
498
|
+
melbourne: 486,
|
499
|
+
meme: 487,
|
500
|
+
memorial: 488,
|
501
|
+
menu: 489,
|
502
|
+
mg: 490,
|
503
|
+
mh: 491,
|
504
|
+
miami: 492,
|
505
|
+
mil: 493,
|
506
|
+
mini: 494,
|
507
|
+
mk: 495,
|
508
|
+
ml: 496,
|
509
|
+
mm: 497,
|
510
|
+
mma: 498,
|
511
|
+
mn: 499,
|
512
|
+
mo: 500,
|
513
|
+
mobi: 501,
|
514
|
+
moda: 502,
|
515
|
+
moe: 503,
|
516
|
+
monash: 504,
|
517
|
+
money: 505,
|
518
|
+
mormon: 506,
|
519
|
+
mortgage: 507,
|
520
|
+
moscow: 508,
|
521
|
+
motorcycles: 509,
|
522
|
+
mov: 510,
|
523
|
+
movie: 511,
|
524
|
+
mp: 512,
|
525
|
+
mq: 513,
|
526
|
+
mr: 514,
|
527
|
+
ms: 515,
|
528
|
+
mt: 516,
|
529
|
+
mtn: 517,
|
530
|
+
mtpc: 518,
|
531
|
+
mu: 519,
|
532
|
+
museum: 520,
|
533
|
+
mv: 521,
|
534
|
+
mw: 522,
|
535
|
+
mx: 523,
|
536
|
+
my: 524,
|
537
|
+
mz: 525,
|
538
|
+
na: 526,
|
539
|
+
nadex: 527,
|
540
|
+
nagoya: 528,
|
541
|
+
name: 529,
|
542
|
+
navy: 530,
|
543
|
+
nc: 531,
|
544
|
+
ne: 532,
|
545
|
+
net: 533,
|
546
|
+
network: 534,
|
547
|
+
neustar: 535,
|
548
|
+
new: 536,
|
549
|
+
news: 537,
|
550
|
+
nexus: 538,
|
551
|
+
nf: 539,
|
552
|
+
ng: 540,
|
553
|
+
ngo: 541,
|
554
|
+
nhk: 542,
|
555
|
+
ni: 543,
|
556
|
+
nico: 544,
|
557
|
+
ninja: 545,
|
558
|
+
nissan: 546,
|
559
|
+
nl: 547,
|
560
|
+
no: 548,
|
561
|
+
np: 549,
|
562
|
+
nr: 550,
|
563
|
+
nra: 551,
|
564
|
+
nrw: 552,
|
565
|
+
ntt: 553,
|
566
|
+
nu: 554,
|
567
|
+
nyc: 555,
|
568
|
+
nz: 556,
|
569
|
+
okinawa: 557,
|
570
|
+
om: 558,
|
571
|
+
one: 559,
|
572
|
+
ong: 560,
|
573
|
+
onl: 561,
|
574
|
+
online: 562,
|
575
|
+
ooo: 563,
|
576
|
+
oracle: 564,
|
577
|
+
org: 565,
|
578
|
+
organic: 566,
|
579
|
+
osaka: 567,
|
580
|
+
otsuka: 568,
|
581
|
+
ovh: 569,
|
582
|
+
pa: 570,
|
583
|
+
page: 571,
|
584
|
+
panerai: 572,
|
585
|
+
paris: 573,
|
586
|
+
partners: 574,
|
587
|
+
parts: 575,
|
588
|
+
party: 576,
|
589
|
+
pe: 577,
|
590
|
+
pf: 578,
|
591
|
+
pg: 579,
|
592
|
+
ph: 580,
|
593
|
+
pharmacy: 581,
|
594
|
+
photo: 582,
|
595
|
+
photography: 583,
|
596
|
+
photos: 584,
|
597
|
+
physio: 585,
|
598
|
+
piaget: 586,
|
599
|
+
pics: 587,
|
600
|
+
pictet: 588,
|
601
|
+
pictures: 589,
|
602
|
+
pink: 590,
|
603
|
+
pizza: 591,
|
604
|
+
pk: 592,
|
605
|
+
pl: 593,
|
606
|
+
place: 594,
|
607
|
+
plumbing: 595,
|
608
|
+
plus: 596,
|
609
|
+
pm: 597,
|
610
|
+
pn: 598,
|
611
|
+
pohl: 599,
|
612
|
+
poker: 600,
|
613
|
+
porn: 601,
|
614
|
+
post: 602,
|
615
|
+
pr: 603,
|
616
|
+
praxi: 604,
|
617
|
+
press: 605,
|
618
|
+
pro: 606,
|
619
|
+
prod: 607,
|
620
|
+
productions: 608,
|
621
|
+
prof: 609,
|
622
|
+
properties: 610,
|
623
|
+
property: 611,
|
624
|
+
ps: 612,
|
625
|
+
pt: 613,
|
626
|
+
pub: 614,
|
627
|
+
pw: 615,
|
628
|
+
py: 616,
|
629
|
+
qa: 617,
|
630
|
+
qpon: 618,
|
631
|
+
quebec: 619,
|
632
|
+
racing: 620,
|
633
|
+
re: 621,
|
634
|
+
realtor: 622,
|
635
|
+
recipes: 623,
|
636
|
+
red: 624,
|
637
|
+
redstone: 625,
|
638
|
+
rehab: 626,
|
639
|
+
reise: 627,
|
640
|
+
reisen: 628,
|
641
|
+
reit: 629,
|
642
|
+
ren: 630,
|
643
|
+
rent: 631,
|
644
|
+
rentals: 632,
|
645
|
+
repair: 633,
|
646
|
+
report: 634,
|
647
|
+
republican: 635,
|
648
|
+
rest: 636,
|
649
|
+
restaurant: 637,
|
650
|
+
review: 638,
|
651
|
+
reviews: 639,
|
652
|
+
rich: 640,
|
653
|
+
rio: 641,
|
654
|
+
rip: 642,
|
655
|
+
ro: 643,
|
656
|
+
rocks: 644,
|
657
|
+
rodeo: 645,
|
658
|
+
rs: 646,
|
659
|
+
rsvp: 647,
|
660
|
+
ru: 648,
|
661
|
+
ruhr: 649,
|
662
|
+
run: 650,
|
663
|
+
rw: 651,
|
664
|
+
ryukyu: 652,
|
665
|
+
sa: 653,
|
666
|
+
saarland: 654,
|
667
|
+
sale: 655,
|
668
|
+
samsung: 656,
|
669
|
+
sap: 657,
|
670
|
+
sarl: 658,
|
671
|
+
saxo: 659,
|
672
|
+
sb: 660,
|
673
|
+
sc: 661,
|
674
|
+
sca: 662,
|
675
|
+
scb: 663,
|
676
|
+
schmidt: 664,
|
677
|
+
scholarships: 665,
|
678
|
+
school: 666,
|
679
|
+
schule: 667,
|
680
|
+
schwarz: 668,
|
681
|
+
science: 669,
|
682
|
+
scot: 670,
|
683
|
+
sd: 671,
|
684
|
+
se: 672,
|
685
|
+
seat: 673,
|
686
|
+
sener: 674,
|
687
|
+
services: 675,
|
688
|
+
sew: 676,
|
689
|
+
sex: 677,
|
690
|
+
sexy: 678,
|
691
|
+
sg: 679,
|
692
|
+
sh: 680,
|
693
|
+
shiksha: 681,
|
694
|
+
shoes: 682,
|
695
|
+
show: 683,
|
696
|
+
shriram: 684,
|
697
|
+
si: 685,
|
698
|
+
singles: 686,
|
699
|
+
site: 687,
|
700
|
+
sj: 688,
|
701
|
+
sk: 689,
|
702
|
+
sky: 690,
|
703
|
+
sl: 691,
|
704
|
+
sm: 692,
|
705
|
+
sn: 693,
|
706
|
+
so: 694,
|
707
|
+
social: 695,
|
708
|
+
software: 696,
|
709
|
+
sohu: 697,
|
710
|
+
solar: 698,
|
711
|
+
solutions: 699,
|
712
|
+
sony: 700,
|
713
|
+
soy: 701,
|
714
|
+
space: 702,
|
715
|
+
spiegel: 703,
|
716
|
+
spreadbetting: 704,
|
717
|
+
sr: 705,
|
718
|
+
st: 706,
|
719
|
+
study: 707,
|
720
|
+
style: 708,
|
721
|
+
su: 709,
|
722
|
+
sucks: 710,
|
723
|
+
supplies: 711,
|
724
|
+
supply: 712,
|
725
|
+
support: 713,
|
726
|
+
surf: 714,
|
727
|
+
surgery: 715,
|
728
|
+
suzuki: 716,
|
729
|
+
sv: 717,
|
730
|
+
swiss: 718,
|
731
|
+
sx: 719,
|
732
|
+
sy: 720,
|
733
|
+
sydney: 721,
|
734
|
+
systems: 722,
|
735
|
+
sz: 723,
|
736
|
+
taipei: 724,
|
737
|
+
tatar: 725,
|
738
|
+
tattoo: 726,
|
739
|
+
tax: 727,
|
740
|
+
taxi: 728,
|
741
|
+
tc: 729,
|
742
|
+
td: 730,
|
743
|
+
team: 731,
|
744
|
+
tech: 732,
|
745
|
+
technology: 733,
|
746
|
+
tel: 734,
|
747
|
+
temasek: 735,
|
748
|
+
tennis: 736,
|
749
|
+
tf: 737,
|
750
|
+
tg: 738,
|
751
|
+
th: 739,
|
752
|
+
theater: 740,
|
753
|
+
tickets: 741,
|
754
|
+
tienda: 742,
|
755
|
+
tips: 743,
|
756
|
+
tires: 744,
|
757
|
+
tirol: 745,
|
758
|
+
tj: 746,
|
759
|
+
tk: 747,
|
760
|
+
tl: 748,
|
761
|
+
tm: 749,
|
762
|
+
tn: 750,
|
763
|
+
to: 751,
|
764
|
+
today: 752,
|
765
|
+
tokyo: 753,
|
766
|
+
tools: 754,
|
767
|
+
top: 755,
|
768
|
+
toray: 756,
|
769
|
+
toshiba: 757,
|
770
|
+
tours: 758,
|
771
|
+
town: 759,
|
772
|
+
toys: 760,
|
773
|
+
tr: 761,
|
774
|
+
trade: 762,
|
775
|
+
trading: 763,
|
776
|
+
training: 764,
|
777
|
+
travel: 765,
|
778
|
+
trust: 766,
|
779
|
+
tt: 767,
|
780
|
+
tui: 768,
|
781
|
+
tv: 769,
|
782
|
+
tw: 770,
|
783
|
+
tz: 771,
|
784
|
+
ua: 772,
|
785
|
+
ug: 773,
|
786
|
+
uk: 774,
|
787
|
+
university: 775,
|
788
|
+
uno: 776,
|
789
|
+
uol: 777,
|
790
|
+
us: 778,
|
791
|
+
uy: 779,
|
792
|
+
uz: 780,
|
793
|
+
va: 781,
|
794
|
+
vacations: 782,
|
795
|
+
vc: 783,
|
796
|
+
ve: 784,
|
797
|
+
vegas: 785,
|
798
|
+
ventures: 786,
|
799
|
+
versicherung: 787,
|
800
|
+
vet: 788,
|
801
|
+
vg: 789,
|
802
|
+
vi: 790,
|
803
|
+
viajes: 791,
|
804
|
+
video: 792,
|
805
|
+
villas: 793,
|
806
|
+
vision: 794,
|
807
|
+
vlaanderen: 795,
|
808
|
+
vn: 796,
|
809
|
+
vodka: 797,
|
810
|
+
vote: 798,
|
811
|
+
voting: 799,
|
812
|
+
voto: 800,
|
813
|
+
voyage: 801,
|
814
|
+
vu: 802,
|
815
|
+
wales: 803,
|
816
|
+
wang: 804,
|
817
|
+
watch: 805,
|
818
|
+
webcam: 806,
|
819
|
+
website: 807,
|
820
|
+
wed: 808,
|
821
|
+
wedding: 809,
|
822
|
+
weir: 810,
|
823
|
+
wf: 811,
|
824
|
+
whoswho: 812,
|
825
|
+
wien: 813,
|
826
|
+
wiki: 814,
|
827
|
+
williamhill: 815,
|
828
|
+
win: 816,
|
829
|
+
wme: 817,
|
830
|
+
work: 818,
|
831
|
+
works: 819,
|
832
|
+
world: 820,
|
833
|
+
ws: 821,
|
834
|
+
wtc: 822,
|
835
|
+
wtf: 823,
|
836
|
+
xerox: 824,
|
837
|
+
xin: 825,
|
838
|
+
xxx: 826,
|
839
|
+
xyz: 827,
|
840
|
+
yachts: 828,
|
841
|
+
yandex: 829,
|
842
|
+
ye: 830,
|
843
|
+
yodobashi: 831,
|
844
|
+
yoga: 832,
|
845
|
+
yokohama: 833,
|
846
|
+
youtube: 834,
|
847
|
+
yt: 835,
|
848
|
+
za: 836,
|
849
|
+
zip: 837,
|
850
|
+
zm: 838,
|
851
|
+
zone: 839,
|
852
|
+
zuerich: 840,
|
853
|
+
zw: 841,
|
854
|
+
}
|
855
|
+
end
|
856
|
+
end
|
857
|
+
end
|
data/lib/rubytldmap.rb
ADDED
data/rubytldmap.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rubytldmap/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rubytldmap"
|
8
|
+
spec.version = Rubytldmap::VERSION
|
9
|
+
spec.authors = ["Ernestas Poskus"]
|
10
|
+
spec.email = ["ernestas.poskus@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Hash map of Top Level domains}
|
13
|
+
spec.homepage = "https://github.com/linkosmosis/rubytldmap"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubytldmap
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ernestas Poskus
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
- ernestas.poskus@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- ".rspec"
|
50
|
+
- ".travis.yml"
|
51
|
+
- Gemfile
|
52
|
+
- LICENSE
|
53
|
+
- LICENSE.txt
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- bin/console
|
57
|
+
- bin/setup
|
58
|
+
- lib/rubytldmap.rb
|
59
|
+
- lib/rubytldmap/lookup.rb
|
60
|
+
- lib/rubytldmap/version.rb
|
61
|
+
- rubytldmap.gemspec
|
62
|
+
homepage: https://github.com/linkosmosis/rubytldmap
|
63
|
+
licenses:
|
64
|
+
- MIT
|
65
|
+
metadata: {}
|
66
|
+
post_install_message:
|
67
|
+
rdoc_options: []
|
68
|
+
require_paths:
|
69
|
+
- lib
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 2.2.2
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: Hash map of Top Level domains
|
86
|
+
test_files: []
|