urbans 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 +14 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/urbans.rb +73 -0
- data/lib/urbans/configurer.rb +30 -0
- data/lib/urbans/data/en.countries.yml +494 -0
- data/lib/urbans/data/en.id.cities.yml +551 -0
- data/lib/urbans/data/en.id.provinces.yml +37 -0
- data/lib/urbans/data/id.countries.yml +494 -0
- data/lib/urbans/data/id.id.cities.yml +551 -0
- data/lib/urbans/data/id.id.provinces.yml +37 -0
- data/lib/urbans/exceptions/urban_error.rb +2 -0
- data/lib/urbans/foundations/city.rb +101 -0
- data/lib/urbans/foundations/country.rb +89 -0
- data/lib/urbans/foundations/province.rb +90 -0
- data/lib/urbans/version.rb +3 -0
- metadata +111 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
en:
|
2
|
+
provinces:
|
3
|
+
id:
|
4
|
+
pv_ach: Aceh
|
5
|
+
pv_bli: Bali
|
6
|
+
pv_bn: Banten
|
7
|
+
pv_bk: Bengkulu
|
8
|
+
pv_go: Gorontalo
|
9
|
+
pv_ja: Jakarta Special Region
|
10
|
+
pv_jm: Jambi
|
11
|
+
pv_jb: West Java
|
12
|
+
pv_jt: Cental Java
|
13
|
+
pv_je: East Java
|
14
|
+
pv_kb: West Kalimantan
|
15
|
+
pv_ks: South Kalimantan
|
16
|
+
pv_kt: Cental Kalimantan
|
17
|
+
pv_kr: East Kalimantan
|
18
|
+
pv_ku: North Kalimantan
|
19
|
+
pv_bg: Bangka Belitung Islands
|
20
|
+
pv_ri: Riau
|
21
|
+
pv_rl: Riau Islands
|
22
|
+
pv_la: Lampung
|
23
|
+
pv_ma: Maluku
|
24
|
+
pv_mu: North Maluku
|
25
|
+
pv_nt: East Nusa Tenggara
|
26
|
+
pv_nb: West Nusa Tenggara
|
27
|
+
pv_pa: Papua
|
28
|
+
pv_pb: West Papua
|
29
|
+
pv_sb: West Sulawesi
|
30
|
+
pv_ss: South Sulawesi
|
31
|
+
pv_st: Central Sulawesi
|
32
|
+
pv_sg: South East Sulawesi
|
33
|
+
pv_su: North Sulawesi
|
34
|
+
pv_smb: West Sumatera
|
35
|
+
pv_sms: South Sumatera
|
36
|
+
pv_smu: North Sumatera
|
37
|
+
pv_yo: Yogyakarta Special Region
|
@@ -0,0 +1,494 @@
|
|
1
|
+
id:
|
2
|
+
countries:
|
3
|
+
"AF":
|
4
|
+
name: Afganistan
|
5
|
+
"ZA":
|
6
|
+
name: Afrika Selatan
|
7
|
+
"CF":
|
8
|
+
name: "Afrika Tengah, Republik"
|
9
|
+
"AX":
|
10
|
+
name: "Åland, Kepulauan"
|
11
|
+
"AL":
|
12
|
+
name: Albania
|
13
|
+
"DZ":
|
14
|
+
name: Aljazair
|
15
|
+
"US":
|
16
|
+
name: Amerika Serikat
|
17
|
+
"AD":
|
18
|
+
name: Andorra
|
19
|
+
"AO":
|
20
|
+
name: Angola
|
21
|
+
"AI":
|
22
|
+
name: Anguilla
|
23
|
+
"AQ":
|
24
|
+
name: Antarktika
|
25
|
+
"AG":
|
26
|
+
name: Antigua dan Barbuda
|
27
|
+
"AN":
|
28
|
+
name: Antillen Belanda
|
29
|
+
"SA":
|
30
|
+
name: Arab Saudi
|
31
|
+
"AR":
|
32
|
+
name: Argentina
|
33
|
+
"AM":
|
34
|
+
name: Armenia
|
35
|
+
"AW":
|
36
|
+
name: Aruba
|
37
|
+
"AU":
|
38
|
+
name: Australia
|
39
|
+
"AT":
|
40
|
+
name: Austria
|
41
|
+
"AZ":
|
42
|
+
name: Azerbaijan
|
43
|
+
"BS":
|
44
|
+
name: Bahama
|
45
|
+
"BH":
|
46
|
+
name: Bahrain
|
47
|
+
"BD":
|
48
|
+
name: Bangladesh
|
49
|
+
"BB":
|
50
|
+
name: Barbados
|
51
|
+
"NL":
|
52
|
+
name: Belanda
|
53
|
+
"BY":
|
54
|
+
name: Belarus
|
55
|
+
"BE":
|
56
|
+
name: Belgia
|
57
|
+
"BZ":
|
58
|
+
name: Belize
|
59
|
+
"BJ":
|
60
|
+
name: Benin
|
61
|
+
"BM":
|
62
|
+
name: Bermuda
|
63
|
+
"BT":
|
64
|
+
name: Bhutan
|
65
|
+
"BO":
|
66
|
+
name: Bolivia
|
67
|
+
"BA":
|
68
|
+
name: Bosnia dan Herzegovina
|
69
|
+
"BW":
|
70
|
+
name: Botswana
|
71
|
+
"BV":
|
72
|
+
name: "Bouvet, Pulau"
|
73
|
+
"BR":
|
74
|
+
name: Brasil
|
75
|
+
"GB":
|
76
|
+
name: Britania Raya
|
77
|
+
"BN":
|
78
|
+
name: Brunei
|
79
|
+
"BG":
|
80
|
+
name: Bulgaria
|
81
|
+
"BF":
|
82
|
+
name: Burkina Faso
|
83
|
+
"BI":
|
84
|
+
name: Burundi
|
85
|
+
"KY":
|
86
|
+
name: "Cayman, Kepulauan"
|
87
|
+
"TD":
|
88
|
+
name: Chad
|
89
|
+
"CZ":
|
90
|
+
name: "Ceko, Republik"
|
91
|
+
"CL":
|
92
|
+
name: Chili
|
93
|
+
"CC":
|
94
|
+
name: "Cocos (Keeling), Kepulauan"
|
95
|
+
"CK":
|
96
|
+
name: "Cook, Kepulauan"
|
97
|
+
"DK":
|
98
|
+
name: Denmark
|
99
|
+
"DJ":
|
100
|
+
name: Djibouti
|
101
|
+
"DM":
|
102
|
+
name: Dominika
|
103
|
+
"DO":
|
104
|
+
name: "Dominika, Republik"
|
105
|
+
"EC":
|
106
|
+
name: Ekuador
|
107
|
+
"SV":
|
108
|
+
name: El Salvador
|
109
|
+
"ER":
|
110
|
+
name: Eritrea
|
111
|
+
"EE":
|
112
|
+
name: Estonia
|
113
|
+
"ET":
|
114
|
+
name: Ethiopia
|
115
|
+
"FK":
|
116
|
+
name: "Falkland, Kepulauan"
|
117
|
+
"FO":
|
118
|
+
name: "Faroe, Kepulauan"
|
119
|
+
"FJ":
|
120
|
+
name: Fiji
|
121
|
+
"PH":
|
122
|
+
name: Filipina
|
123
|
+
"FI":
|
124
|
+
name: Finlandia
|
125
|
+
"GA":
|
126
|
+
name: Gabon
|
127
|
+
"GM":
|
128
|
+
name: Gambia
|
129
|
+
"GE":
|
130
|
+
name: Georgia
|
131
|
+
"GS":
|
132
|
+
name: Georgia Selatan dan Kepulauan Sandwich Selatan
|
133
|
+
"GH":
|
134
|
+
name: Ghana
|
135
|
+
"GI":
|
136
|
+
name: Gibraltar
|
137
|
+
"GL":
|
138
|
+
name: Greenland
|
139
|
+
"GD":
|
140
|
+
name: Grenada
|
141
|
+
"GP":
|
142
|
+
name: Guadeloupe
|
143
|
+
"GU":
|
144
|
+
name: Guam
|
145
|
+
"GT":
|
146
|
+
name: Guatemala
|
147
|
+
"GG":
|
148
|
+
name: Guernsey
|
149
|
+
"GN":
|
150
|
+
name: Guinea
|
151
|
+
"GW":
|
152
|
+
name: Guinea-Bissau
|
153
|
+
"GQ":
|
154
|
+
name: Guinea Khatulistiwa
|
155
|
+
"GY":
|
156
|
+
name: Guyana
|
157
|
+
"GF":
|
158
|
+
name: Guyana Perancis
|
159
|
+
"HT":
|
160
|
+
name: Haiti
|
161
|
+
"HM":
|
162
|
+
name: "Heard dan Kepulauan McDonald, Pulau"
|
163
|
+
"HN":
|
164
|
+
name: Honduras
|
165
|
+
"HK":
|
166
|
+
name: Hong Kong
|
167
|
+
"HU":
|
168
|
+
name: Hongaria
|
169
|
+
"IS":
|
170
|
+
name: Islandia
|
171
|
+
"IN":
|
172
|
+
name: India
|
173
|
+
"ID":
|
174
|
+
name: Indonesia
|
175
|
+
"IQ":
|
176
|
+
name: Irak
|
177
|
+
"IR":
|
178
|
+
name: Iran
|
179
|
+
"IE":
|
180
|
+
name: "Irlandia, Republik"
|
181
|
+
"IL":
|
182
|
+
name: Israel
|
183
|
+
"IT":
|
184
|
+
name: Italia
|
185
|
+
"JM":
|
186
|
+
name: Jamaika
|
187
|
+
"JP":
|
188
|
+
name: Jepang
|
189
|
+
"DE":
|
190
|
+
name: Jerman
|
191
|
+
"JE":
|
192
|
+
name: Jersey
|
193
|
+
"NC":
|
194
|
+
name: Kaledonia Baru
|
195
|
+
"KH":
|
196
|
+
name: Kamboja
|
197
|
+
"CM":
|
198
|
+
name: Kamerun
|
199
|
+
"CA":
|
200
|
+
name: Kanada
|
201
|
+
"KZ":
|
202
|
+
name: Kazakhstan
|
203
|
+
"KE":
|
204
|
+
name: Kenya
|
205
|
+
"KI":
|
206
|
+
name: Kiribati
|
207
|
+
"KG":
|
208
|
+
name: Kirgizstan
|
209
|
+
"CO":
|
210
|
+
name: Kolombia
|
211
|
+
"KM":
|
212
|
+
name: Komoro
|
213
|
+
"CG":
|
214
|
+
name: "Kongo, Republik"
|
215
|
+
"CD":
|
216
|
+
name: "Kongo, Republik Demokratik"
|
217
|
+
"KR":
|
218
|
+
name: "Korea, Republik"
|
219
|
+
"KP":
|
220
|
+
name: "Korea, Republik Demokratis Rakyat"
|
221
|
+
"CR":
|
222
|
+
name: Kosta Rika
|
223
|
+
"HR":
|
224
|
+
name: Kroasia
|
225
|
+
"CU":
|
226
|
+
name: Kuba
|
227
|
+
"KW":
|
228
|
+
name: Kuwait
|
229
|
+
"LA":
|
230
|
+
name: Laos
|
231
|
+
"LV":
|
232
|
+
name: Latvia
|
233
|
+
"LB":
|
234
|
+
name: Lebanon
|
235
|
+
"LS":
|
236
|
+
name: Lesotho
|
237
|
+
"LR":
|
238
|
+
name: Liberia
|
239
|
+
"LY":
|
240
|
+
name: Libya
|
241
|
+
"LI":
|
242
|
+
name: Liechtenstein
|
243
|
+
"LT":
|
244
|
+
name: Lituania
|
245
|
+
"LU":
|
246
|
+
name: Luksemburg
|
247
|
+
"MO":
|
248
|
+
name: Makau
|
249
|
+
"MK":
|
250
|
+
name: "Makedonia, Republik"
|
251
|
+
"MG":
|
252
|
+
name: Madagaskar
|
253
|
+
"MW":
|
254
|
+
name: Malawi
|
255
|
+
"MY":
|
256
|
+
name: Malaysia
|
257
|
+
"MV":
|
258
|
+
name: Maladewa
|
259
|
+
"ML":
|
260
|
+
name: Mali
|
261
|
+
"MT":
|
262
|
+
name: Malta
|
263
|
+
"IM":
|
264
|
+
name: "Man, Pulau"
|
265
|
+
"MP":
|
266
|
+
name: "Mariana Utara, Kepulauan"
|
267
|
+
"MA":
|
268
|
+
name: Maroko
|
269
|
+
"MH":
|
270
|
+
name: "Marshall, Kepulauan"
|
271
|
+
"MQ":
|
272
|
+
name: Martinik
|
273
|
+
"MR":
|
274
|
+
name: Mauritania
|
275
|
+
"MU":
|
276
|
+
name: Mauritius
|
277
|
+
"YT":
|
278
|
+
name: Mayotte
|
279
|
+
"MX":
|
280
|
+
name: Meksiko
|
281
|
+
"FM":
|
282
|
+
name: "Mikronesia, Federasi"
|
283
|
+
"MD":
|
284
|
+
name: Moldova
|
285
|
+
"EG":
|
286
|
+
name: Mesir
|
287
|
+
"MC":
|
288
|
+
name: Monako
|
289
|
+
"UM":
|
290
|
+
name: Kepulauan Terluar Kecil Amerika Serikat
|
291
|
+
"MN":
|
292
|
+
name: Mongolia
|
293
|
+
"ME":
|
294
|
+
name: Montenegro
|
295
|
+
"MS":
|
296
|
+
name: Montserrat
|
297
|
+
"MZ":
|
298
|
+
name: Mozambik
|
299
|
+
"MM":
|
300
|
+
name: Myanmar
|
301
|
+
"NA":
|
302
|
+
name: Namibia
|
303
|
+
"NR":
|
304
|
+
name: Nauru
|
305
|
+
"CX":
|
306
|
+
name: "Natal, Pulau"
|
307
|
+
"NP":
|
308
|
+
name: Nepal
|
309
|
+
"NI":
|
310
|
+
name: Nikaragua
|
311
|
+
"NE":
|
312
|
+
name: Niger
|
313
|
+
"NG":
|
314
|
+
name: Nigeria
|
315
|
+
"NU":
|
316
|
+
name: Niue
|
317
|
+
"NF":
|
318
|
+
name: "Norfolk, Pulau"
|
319
|
+
"NO":
|
320
|
+
name: Norwegia
|
321
|
+
"OM":
|
322
|
+
name: Oman
|
323
|
+
"PK":
|
324
|
+
name: Pakistan
|
325
|
+
"PW":
|
326
|
+
name: Palau
|
327
|
+
"PS":
|
328
|
+
name: Palestina
|
329
|
+
"PA":
|
330
|
+
name: Panama
|
331
|
+
"CI":
|
332
|
+
name: Pantai Gading
|
333
|
+
"PG":
|
334
|
+
name: Papua Nugini
|
335
|
+
"PY":
|
336
|
+
name: Paraguay
|
337
|
+
"FR":
|
338
|
+
name: Perancis
|
339
|
+
"TF":
|
340
|
+
name: "Perancis Selatan, Teritori"
|
341
|
+
"PE":
|
342
|
+
name: Peru
|
343
|
+
"PN":
|
344
|
+
name: "Pitcairn, Kepulauan"
|
345
|
+
"PL":
|
346
|
+
name: Polandia
|
347
|
+
"PF":
|
348
|
+
name: Polinesia Perancis
|
349
|
+
"PT":
|
350
|
+
name: Portugal
|
351
|
+
"PR":
|
352
|
+
name: Puerto Riko
|
353
|
+
"QA":
|
354
|
+
name: Qatar
|
355
|
+
"RE":
|
356
|
+
name: Réunion
|
357
|
+
"RO":
|
358
|
+
name: Rumania
|
359
|
+
"RU":
|
360
|
+
name: Rusia
|
361
|
+
"RW":
|
362
|
+
name: Rwanda
|
363
|
+
"EH":
|
364
|
+
name: Sahara Barat
|
365
|
+
"BL":
|
366
|
+
name: Saint-Barthélemy
|
367
|
+
"SH":
|
368
|
+
name: "Saint Helena, Ascension, dan Tristan da Cunha"
|
369
|
+
"KN":
|
370
|
+
name: Saint Kitts dan Nevis
|
371
|
+
"LC":
|
372
|
+
name: Saint Lucia
|
373
|
+
"MF":
|
374
|
+
name: Saint Martin (Perancis)
|
375
|
+
"PM":
|
376
|
+
name: Saint Pierre dan Miquelon
|
377
|
+
"VC":
|
378
|
+
name: Saint Vincent dan Grenadines
|
379
|
+
"WS":
|
380
|
+
name: Samoa
|
381
|
+
"AS":
|
382
|
+
name: Samoa Amerika
|
383
|
+
"IO":
|
384
|
+
name: "Samudra Hindia Britania, Teritori"
|
385
|
+
"SM":
|
386
|
+
name: San Marino
|
387
|
+
"ST":
|
388
|
+
name: Sao Tome dan Principe
|
389
|
+
"NZ":
|
390
|
+
name: Selandia Baru
|
391
|
+
"SN":
|
392
|
+
name: Senegal
|
393
|
+
"RS":
|
394
|
+
name: Serbia
|
395
|
+
"SC":
|
396
|
+
name: Seychelles
|
397
|
+
"SL":
|
398
|
+
name: Sierra Leone
|
399
|
+
"SG":
|
400
|
+
name: Singapura
|
401
|
+
"CY":
|
402
|
+
name: Siprus
|
403
|
+
"SI":
|
404
|
+
name: Slovenia
|
405
|
+
"SK":
|
406
|
+
name: Slowakia
|
407
|
+
"SB":
|
408
|
+
name: "Solomon, Kepulauan"
|
409
|
+
"SO":
|
410
|
+
name: Somalia
|
411
|
+
"ES":
|
412
|
+
name: Spanyol
|
413
|
+
"LK":
|
414
|
+
name: Sri Lanka
|
415
|
+
"SD":
|
416
|
+
name: Sudan
|
417
|
+
"SY":
|
418
|
+
name: Suriah
|
419
|
+
"SR":
|
420
|
+
name: Suriname
|
421
|
+
"SJ":
|
422
|
+
name: Svalbard dan Jan Mayen
|
423
|
+
"SZ":
|
424
|
+
name: Swaziland
|
425
|
+
"SE":
|
426
|
+
name: Swedia
|
427
|
+
"CH":
|
428
|
+
name: Swiss
|
429
|
+
"TW":
|
430
|
+
name: Taiwan
|
431
|
+
"TJ":
|
432
|
+
name: Tajikistan
|
433
|
+
"CV":
|
434
|
+
name: Tanjung Verde
|
435
|
+
"TZ":
|
436
|
+
name: Tanzania
|
437
|
+
"TH":
|
438
|
+
name: Thailand
|
439
|
+
"TL":
|
440
|
+
name: Timor Leste
|
441
|
+
"CN":
|
442
|
+
name: "Tiongkok, Republik Rakyat"
|
443
|
+
"TG":
|
444
|
+
name: Togo
|
445
|
+
"TK":
|
446
|
+
name: Tokelau
|
447
|
+
"TO":
|
448
|
+
name: Tonga
|
449
|
+
"TT":
|
450
|
+
name: Trinidad dan Tobago
|
451
|
+
"TN":
|
452
|
+
name: Tunisia
|
453
|
+
"TR":
|
454
|
+
name: Turki
|
455
|
+
"TM":
|
456
|
+
name: Turkmenistan
|
457
|
+
"TC":
|
458
|
+
name: "Turks dan Caicos, Kepulauan"
|
459
|
+
"TV":
|
460
|
+
name: Tuvalu
|
461
|
+
"UG":
|
462
|
+
name: Uganda
|
463
|
+
"UA":
|
464
|
+
name: Ukraina
|
465
|
+
"AE":
|
466
|
+
name: Uni Emirat Arab
|
467
|
+
"UY":
|
468
|
+
name: Uruguay
|
469
|
+
"UZ":
|
470
|
+
name: Uzbekistan
|
471
|
+
"VU":
|
472
|
+
name: Vanuatu
|
473
|
+
"VA":
|
474
|
+
name: Vatikan
|
475
|
+
"VE":
|
476
|
+
name: Venezuela
|
477
|
+
"VN":
|
478
|
+
name: Vietnam
|
479
|
+
"VI":
|
480
|
+
name: "Virgin Amerika Serikat, Kepulauan"
|
481
|
+
"VG":
|
482
|
+
name: "Virgin Britania Raya, Kepulauan"
|
483
|
+
"WF":
|
484
|
+
name: Wallis dan Futuna
|
485
|
+
"YE":
|
486
|
+
name: Yaman
|
487
|
+
"JO":
|
488
|
+
name: Yordania
|
489
|
+
"GR":
|
490
|
+
name: Yunani
|
491
|
+
"ZM":
|
492
|
+
name: Zambia
|
493
|
+
"ZW":
|
494
|
+
name: Zimbabwe
|