countries 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +3 -0
- data/.travis.yml +3 -0
- data/Gemfile +0 -1
- data/README.markdown +65 -17
- data/countries.gemspec +1 -1
- data/lib/countries.rb +4 -0
- data/lib/countries/country.rb +52 -31
- data/lib/countries/mongoid.rb +42 -0
- data/lib/countries/version.rb +1 -1
- data/lib/data/countries.yaml +7366 -4817
- data/lib/data/subdivisions/BQ.yaml +10 -0
- data/lib/data/subdivisions/CL.yaml +6 -0
- data/lib/data/subdivisions/HU.yaml +69 -0
- data/lib/data/subdivisions/IT.yaml +9 -0
- data/lib/data/subdivisions/MA.yaml +33 -0
- data/lib/data/subdivisions/MH.yaml +4 -0
- data/lib/data/subdivisions/MT.yaml +287 -0
- data/lib/data/subdivisions/TH.yaml +1 -2
- data/lib/data/subdivisions/UG.yaml +96 -0
- data/lib/data/subdivisions/US.yaml +9 -0
- data/lib/iso3166.rb +4 -1
- data/spec/country_spec.rb +68 -10
- data/spec/mongoid_spec.rb +67 -0
- metadata +15 -19
- data/.rvmrc +0 -1
- data/lib/countries/select_helper.rb +0 -53
@@ -11,6 +11,9 @@ AR:
|
|
11
11
|
name: Araucanía
|
12
12
|
names:
|
13
13
|
- "La Araucanía"
|
14
|
+
AP:
|
15
|
+
name: "Arica y Parinacota"
|
16
|
+
names: "Arica y Parinacota"
|
14
17
|
AT:
|
15
18
|
name: Atacama
|
16
19
|
names: Atacama
|
@@ -30,6 +33,9 @@ LI:
|
|
30
33
|
LL:
|
31
34
|
name: "Los Lagos"
|
32
35
|
names: "Los Lagos"
|
36
|
+
LR:
|
37
|
+
name: "Los Ríos"
|
38
|
+
names: "Los Ríos"
|
33
39
|
MA:
|
34
40
|
name: Magallanes
|
35
41
|
names:
|
@@ -2,6 +2,9 @@
|
|
2
2
|
BA:
|
3
3
|
name: Baranya
|
4
4
|
names: Baranya
|
5
|
+
BC:
|
6
|
+
name: Békéscsaba
|
7
|
+
names: Békéscsaba
|
5
8
|
BE:
|
6
9
|
name: Békés
|
7
10
|
names: Békés
|
@@ -17,36 +20,96 @@ BZ:
|
|
17
20
|
CS:
|
18
21
|
name: Csongrád
|
19
22
|
names: Csongrád
|
23
|
+
DE:
|
24
|
+
name: Debrecen
|
25
|
+
names: Debrecen
|
26
|
+
DU:
|
27
|
+
name: Dunaújváros
|
28
|
+
names: Dunaújváros
|
29
|
+
EG:
|
30
|
+
name: Eger
|
31
|
+
names: Eger
|
32
|
+
ER:
|
33
|
+
name: Érd
|
34
|
+
names: Érd
|
20
35
|
FE:
|
21
36
|
name: Fejér
|
22
37
|
names: Fejér
|
23
38
|
GS:
|
24
39
|
name: Győr-Moson-Sopron
|
25
40
|
names: Győr-Moson-Sopron
|
41
|
+
GY:
|
42
|
+
name: Győr
|
43
|
+
names: Győr
|
26
44
|
HB:
|
27
45
|
name: Hajdú-Bihar
|
28
46
|
names: Hajdú-Bihar
|
29
47
|
HE:
|
30
48
|
name: Heves
|
31
49
|
names: Heves
|
50
|
+
HV:
|
51
|
+
name: Hódmezővásárhely
|
52
|
+
names: Hódmezővásárhely
|
32
53
|
JN:
|
33
54
|
name: Jász-Nagykun-Szolnok
|
34
55
|
names: Jász-Nagykun-Szolnok
|
35
56
|
KE:
|
36
57
|
name: Komárom-Esztergom
|
37
58
|
names: Komárom-Esztergom
|
59
|
+
KM:
|
60
|
+
name: Kecskemét
|
61
|
+
names: Kecskemét
|
62
|
+
KV:
|
63
|
+
name: Kaposvár
|
64
|
+
names: Kaposvár
|
65
|
+
MI:
|
66
|
+
name: Miskolc
|
67
|
+
names: Miskolc
|
68
|
+
NK:
|
69
|
+
name: Nagykanizsa
|
70
|
+
names: Nagykanizsa
|
38
71
|
"NO":
|
39
72
|
name: Nógrád
|
40
73
|
names: Nógrád
|
74
|
+
NY:
|
75
|
+
name: Nyíregyháza
|
76
|
+
names: Nyíregyháza
|
41
77
|
PE:
|
42
78
|
name: Pest
|
43
79
|
names: Pest
|
80
|
+
PS:
|
81
|
+
name: Pécs
|
82
|
+
names: Pécs
|
83
|
+
SD:
|
84
|
+
name: Szeged
|
85
|
+
names: Szeged
|
86
|
+
SF:
|
87
|
+
name: Székesfehérvár
|
88
|
+
names: Székesfehérvár
|
89
|
+
SH:
|
90
|
+
name: Szombathely
|
91
|
+
names: Szombathely
|
92
|
+
SK:
|
93
|
+
name: Szolnok
|
94
|
+
names: Szolnok
|
95
|
+
SN:
|
96
|
+
name: Sopron
|
97
|
+
names: Sopron
|
44
98
|
SO:
|
45
99
|
name: Somogy
|
46
100
|
names: Somogy
|
101
|
+
SS:
|
102
|
+
name: Szekszárd
|
103
|
+
names: Szekszárd
|
104
|
+
ST:
|
105
|
+
name: Salgótarján
|
106
|
+
names: Salgótarján
|
47
107
|
SZ:
|
48
108
|
name: Szabolcs-Szatmár-Bereg
|
49
109
|
names: Szabolcs-Szatmár-Bereg
|
110
|
+
TB:
|
111
|
+
name: Tatabánya
|
112
|
+
names: Tatabánya
|
50
113
|
TO:
|
51
114
|
name: Tolna
|
52
115
|
names: Tolna
|
@@ -56,6 +119,12 @@ VA:
|
|
56
119
|
VE:
|
57
120
|
name: Veszprém
|
58
121
|
names: Veszprém
|
122
|
+
VM:
|
123
|
+
name: Veszprém
|
124
|
+
names: Veszprém
|
59
125
|
ZA:
|
60
126
|
name: Zala
|
61
127
|
names: Zala
|
128
|
+
ZE:
|
129
|
+
name: Zalaegerszeg
|
130
|
+
names: Zalaegerszeg
|
@@ -50,6 +50,9 @@ BR:
|
|
50
50
|
BS:
|
51
51
|
name: Brescia
|
52
52
|
names: Brescia
|
53
|
+
BT:
|
54
|
+
name: "Barletta-Andria-Trani"
|
55
|
+
names: "Barletta-Andria-Trani"
|
53
56
|
BZ:
|
54
57
|
name: Bolzano
|
55
58
|
names: Bolzano
|
@@ -186,6 +189,9 @@ OL:
|
|
186
189
|
OR:
|
187
190
|
name: Oristano
|
188
191
|
names: Oristano
|
192
|
+
OT:
|
193
|
+
name: Olbia-Tempio
|
194
|
+
names: Olbia-Tempio
|
189
195
|
PA:
|
190
196
|
name: Palermo
|
191
197
|
names: Palermo
|
@@ -315,6 +321,9 @@ VI:
|
|
315
321
|
VR:
|
316
322
|
name: Verona
|
317
323
|
names: Verona
|
324
|
+
VS:
|
325
|
+
name: "Medio Campidano"
|
326
|
+
names: "Medio Campidano"
|
318
327
|
VT:
|
319
328
|
name: Viterbo
|
320
329
|
names: Viterbo
|
@@ -2,6 +2,9 @@
|
|
2
2
|
AGD:
|
3
3
|
name: Agadir*
|
4
4
|
names: Agadir*
|
5
|
+
AOU:
|
6
|
+
name: Aousserd
|
7
|
+
names: Aousserd
|
5
8
|
ASZ:
|
6
9
|
name: Assa-Zag
|
7
10
|
names: Assa-Zag
|
@@ -35,6 +38,9 @@ CHE:
|
|
35
38
|
CHI:
|
36
39
|
name: Chichaoua
|
37
40
|
names: Chichaoua
|
41
|
+
CHT:
|
42
|
+
name: "Chtouka-Ait Baha"
|
43
|
+
names: "Chtouka-Ait Baha"
|
38
44
|
ERR:
|
39
45
|
name: Errachidia
|
40
46
|
names: Errachidia
|
@@ -44,6 +50,9 @@ ESI:
|
|
44
50
|
ESM:
|
45
51
|
name: "Es Smara (EH)"
|
46
52
|
names: "Es Smara (EH)"
|
53
|
+
FAH:
|
54
|
+
name: "Fahs-Beni Makada"
|
55
|
+
names: "Fahs-Beni Makada"
|
47
56
|
FES:
|
48
57
|
name: Fès*
|
49
58
|
names: Fès*
|
@@ -95,15 +104,24 @@ LAR:
|
|
95
104
|
MAR:
|
96
105
|
name: Marrakech*
|
97
106
|
names: Marrakech*
|
107
|
+
MED:
|
108
|
+
name: Médiouna
|
109
|
+
names: Médiouna
|
98
110
|
MEK:
|
99
111
|
name: Meknès*
|
100
112
|
names: Meknès*
|
101
113
|
MEL:
|
102
114
|
name: "Aït Melloul"
|
103
115
|
names: "Aït Melloul"
|
116
|
+
MOU:
|
117
|
+
name: "Moulay Yacoub"
|
118
|
+
names: "Moulay Yacoub"
|
104
119
|
NAD:
|
105
120
|
name: Nador
|
106
121
|
names: Nador
|
122
|
+
NOU:
|
123
|
+
name: Nouaceur
|
124
|
+
names: Nouaceur
|
107
125
|
OUA:
|
108
126
|
name: Ouarzazate
|
109
127
|
names: Ouarzazate
|
@@ -119,6 +137,9 @@ RBA:
|
|
119
137
|
SAF:
|
120
138
|
name: Safi
|
121
139
|
names: Safi
|
140
|
+
SAL:
|
141
|
+
name: Salé
|
142
|
+
names: Salé
|
122
143
|
SEF:
|
123
144
|
name: Sefrou
|
124
145
|
names: Sefrou
|
@@ -128,6 +149,15 @@ SET:
|
|
128
149
|
SIK:
|
129
150
|
name: "Sidi Kacem"
|
130
151
|
names: "Sidi Kacem"
|
152
|
+
SKH:
|
153
|
+
name: "Skhirate-Témara"
|
154
|
+
names: "Skhirate-Témara"
|
155
|
+
SYB:
|
156
|
+
name: "Sidi Youssef Ben Ali"
|
157
|
+
names: "Sidi Youssef Ben Ali"
|
158
|
+
TAI:
|
159
|
+
name: Taourirt
|
160
|
+
names: Taourirt
|
131
161
|
TAO:
|
132
162
|
name: Taounate
|
133
163
|
names: Taounate
|
@@ -155,3 +185,6 @@ TNT:
|
|
155
185
|
X1~:
|
156
186
|
name: "Laayoune-Boujdour-Sakia El Hamra"
|
157
187
|
names: "Laayoune-Boujdour-Sakia El Hamra"
|
188
|
+
ZAG:
|
189
|
+
name: Zagora
|
190
|
+
names: Zagora
|
@@ -0,0 +1,287 @@
|
|
1
|
+
---
|
2
|
+
? "01"
|
3
|
+
:
|
4
|
+
name: "Attard"
|
5
|
+
names: "Attard"
|
6
|
+
? "02"
|
7
|
+
:
|
8
|
+
name: "Balzan"
|
9
|
+
names: "Balzan"
|
10
|
+
? "03"
|
11
|
+
:
|
12
|
+
name: "Birgu"
|
13
|
+
names: "Birgu"
|
14
|
+
? "04"
|
15
|
+
:
|
16
|
+
name: "Birkirkara"
|
17
|
+
names: "Birkirkara"
|
18
|
+
? "05"
|
19
|
+
:
|
20
|
+
name: "Birżebbuġa"
|
21
|
+
names: "Birżebbuġa"
|
22
|
+
? "06"
|
23
|
+
:
|
24
|
+
name: "Bormla"
|
25
|
+
names: "Bormla"
|
26
|
+
? "07"
|
27
|
+
:
|
28
|
+
name: "Dingli"
|
29
|
+
names: "Dingli"
|
30
|
+
? "08"
|
31
|
+
:
|
32
|
+
name: "Fgura"
|
33
|
+
names: "Fgura"
|
34
|
+
? "09"
|
35
|
+
:
|
36
|
+
name: "Floriana"
|
37
|
+
names: "Floriana"
|
38
|
+
? "10"
|
39
|
+
:
|
40
|
+
name: "Fontana"
|
41
|
+
names: "Fontana"
|
42
|
+
? "11"
|
43
|
+
:
|
44
|
+
name: "Gudja"
|
45
|
+
names: "Gudja"
|
46
|
+
? "12"
|
47
|
+
:
|
48
|
+
name: "Gżira"
|
49
|
+
names: "Gżira"
|
50
|
+
? "13"
|
51
|
+
:
|
52
|
+
name: "Għajnsielem"
|
53
|
+
names: "Għajnsielem"
|
54
|
+
? "14"
|
55
|
+
:
|
56
|
+
name: "Għarb"
|
57
|
+
names: "Għarb"
|
58
|
+
? "15"
|
59
|
+
:
|
60
|
+
name: "Għargħur"
|
61
|
+
names: "Għargħur"
|
62
|
+
? "16"
|
63
|
+
:
|
64
|
+
name: "Għasri"
|
65
|
+
names: "Għasri"
|
66
|
+
? "17"
|
67
|
+
:
|
68
|
+
name: "Għaxaq"
|
69
|
+
names: "Għaxaq"
|
70
|
+
? "18"
|
71
|
+
:
|
72
|
+
name: "Ħamrun"
|
73
|
+
names: "Ħamrun"
|
74
|
+
? "19"
|
75
|
+
:
|
76
|
+
name: "Iklin"
|
77
|
+
names: "Iklin"
|
78
|
+
? "20"
|
79
|
+
:
|
80
|
+
name: "Isla"
|
81
|
+
names: "Isla"
|
82
|
+
? "21"
|
83
|
+
:
|
84
|
+
name: "Kalkara"
|
85
|
+
names: "Kalkara"
|
86
|
+
? "22"
|
87
|
+
:
|
88
|
+
name: "Kerċem"
|
89
|
+
names: "Kerċem"
|
90
|
+
? "23"
|
91
|
+
:
|
92
|
+
name: "Kirkop"
|
93
|
+
names: "Kirkop"
|
94
|
+
? "24"
|
95
|
+
:
|
96
|
+
name: "Lija"
|
97
|
+
names: "Lija"
|
98
|
+
? "25"
|
99
|
+
:
|
100
|
+
name: "Luqa"
|
101
|
+
names: "Luqa"
|
102
|
+
? "26"
|
103
|
+
:
|
104
|
+
name: "Marsa"
|
105
|
+
names: "Marsa"
|
106
|
+
? "27"
|
107
|
+
:
|
108
|
+
name: "Marsaskala"
|
109
|
+
names: "Marsaskala"
|
110
|
+
? "28"
|
111
|
+
:
|
112
|
+
name: "Marsaxlokk"
|
113
|
+
names: "Marsaxlokk"
|
114
|
+
? "29"
|
115
|
+
:
|
116
|
+
name: "Mdina"
|
117
|
+
names: "Mdina"
|
118
|
+
? "30"
|
119
|
+
:
|
120
|
+
name: "Mellieħa"
|
121
|
+
names: "Mellieħa"
|
122
|
+
? "31"
|
123
|
+
:
|
124
|
+
name: "Mġarr"
|
125
|
+
names: "Mġarr"
|
126
|
+
? "32"
|
127
|
+
:
|
128
|
+
name: "Mosta"
|
129
|
+
names: "Mosta"
|
130
|
+
? "33"
|
131
|
+
:
|
132
|
+
name: "Mqabba"
|
133
|
+
names: "Mqabba"
|
134
|
+
? "34"
|
135
|
+
:
|
136
|
+
name: "Msida"
|
137
|
+
names: "Msida"
|
138
|
+
? "35"
|
139
|
+
:
|
140
|
+
name: "Mtarfa"
|
141
|
+
names: "Mtarfa"
|
142
|
+
? "36"
|
143
|
+
:
|
144
|
+
name: "Munxar"
|
145
|
+
names: "Munxar"
|
146
|
+
? "37"
|
147
|
+
:
|
148
|
+
name: "Nadur"
|
149
|
+
names: "Nadur"
|
150
|
+
? "38"
|
151
|
+
:
|
152
|
+
name: "Naxxar"
|
153
|
+
names: "Naxxar"
|
154
|
+
? "39"
|
155
|
+
:
|
156
|
+
name: "Paola"
|
157
|
+
names: "Paola"
|
158
|
+
? "40"
|
159
|
+
:
|
160
|
+
name: "Pembroke"
|
161
|
+
names: "Pembroke"
|
162
|
+
? "41"
|
163
|
+
:
|
164
|
+
name: "Pietà"
|
165
|
+
names: "Pietà"
|
166
|
+
? "42"
|
167
|
+
:
|
168
|
+
name: "Qala"
|
169
|
+
names: "Qala"
|
170
|
+
? "43"
|
171
|
+
:
|
172
|
+
name: "Qormi"
|
173
|
+
names: "Qormi"
|
174
|
+
? "44"
|
175
|
+
:
|
176
|
+
name: "Qrendi"
|
177
|
+
names: "Qrendi"
|
178
|
+
? "45"
|
179
|
+
:
|
180
|
+
name: "Rabat Gozo"
|
181
|
+
names:
|
182
|
+
- "Rabat Gozo"
|
183
|
+
- "Rabat Għawdex"
|
184
|
+
? "46"
|
185
|
+
:
|
186
|
+
name: "Rabat Malta"
|
187
|
+
names: "Rabat Malta"
|
188
|
+
? "47"
|
189
|
+
:
|
190
|
+
name: "Safi"
|
191
|
+
names: "Safi"
|
192
|
+
? "48"
|
193
|
+
:
|
194
|
+
name: "Saint Julian's"
|
195
|
+
names:
|
196
|
+
- "Saint Julian's"
|
197
|
+
- "San Ġiljan"
|
198
|
+
? "49"
|
199
|
+
:
|
200
|
+
name: "Saint John"
|
201
|
+
names:
|
202
|
+
- "Saint John"
|
203
|
+
- "San Ġwann"
|
204
|
+
? "50"
|
205
|
+
:
|
206
|
+
name: "Saint Lawrence"
|
207
|
+
names:
|
208
|
+
- "Saint Lawrence"
|
209
|
+
- "San Lawrenz"
|
210
|
+
? "51"
|
211
|
+
:
|
212
|
+
name: "Saint Paul's Bay"
|
213
|
+
names:
|
214
|
+
- "Saint Paul's Bay"
|
215
|
+
- "San Pawl il-Baħar"
|
216
|
+
? "52"
|
217
|
+
:
|
218
|
+
name: "Sannat"
|
219
|
+
names: "Sannat"
|
220
|
+
? "53"
|
221
|
+
:
|
222
|
+
name: "Saint Lucia's"
|
223
|
+
names:
|
224
|
+
- "Saint Lucia's"
|
225
|
+
- "Santa Luċija"
|
226
|
+
? "54"
|
227
|
+
:
|
228
|
+
name: "Santa Venera"
|
229
|
+
names: "Santa Venera"
|
230
|
+
? "55"
|
231
|
+
:
|
232
|
+
name: "Siġġiewi"
|
233
|
+
names: "Siġġiewi"
|
234
|
+
? "56"
|
235
|
+
:
|
236
|
+
name: "Sliema"
|
237
|
+
names: "Sliema"
|
238
|
+
? "57"
|
239
|
+
:
|
240
|
+
name: "Swieqi"
|
241
|
+
names: "Swieqi"
|
242
|
+
? "58"
|
243
|
+
:
|
244
|
+
name: "Ta' Xbiex"
|
245
|
+
names: "Ta' Xbiex"
|
246
|
+
? "59"
|
247
|
+
:
|
248
|
+
name: "Tarxien"
|
249
|
+
names: "Tarxien"
|
250
|
+
? "60"
|
251
|
+
:
|
252
|
+
name: "Valletta"
|
253
|
+
names: "Valletta"
|
254
|
+
? "61"
|
255
|
+
:
|
256
|
+
name: "Xagħra"
|
257
|
+
names: "Xagħra"
|
258
|
+
? "62"
|
259
|
+
:
|
260
|
+
name: "Xewkija"
|
261
|
+
names: "Xewkija"
|
262
|
+
? "63"
|
263
|
+
:
|
264
|
+
name: "Xgħajra"
|
265
|
+
names: "Xgħajra"
|
266
|
+
? "64"
|
267
|
+
:
|
268
|
+
name: "Żabbar"
|
269
|
+
names: "Żabbar"
|
270
|
+
? "65"
|
271
|
+
:
|
272
|
+
name: "Żebbuġ Gozo"
|
273
|
+
names:
|
274
|
+
- "Żebbuġ Gozo"
|
275
|
+
- "Żebbuġ Għawdex"
|
276
|
+
? "66"
|
277
|
+
:
|
278
|
+
name: "Żebbuġ Malta"
|
279
|
+
names: "Żebbuġ Malta"
|
280
|
+
? "67"
|
281
|
+
:
|
282
|
+
name: "Żejtun"
|
283
|
+
names: "Żejtun"
|
284
|
+
? "68"
|
285
|
+
:
|
286
|
+
name: "Żurrieq"
|
287
|
+
names: "Żurrieq"
|