countries 2.1.4 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -3
- data/CHANGELOG.md +43 -0
- data/Gemfile +1 -0
- data/README.markdown +25 -8
- data/countries.gemspec +0 -1
- data/lib/countries/cache/countries.json +1 -1
- data/lib/countries/cache/locales/sv.json +1 -1
- data/lib/countries/configuration.rb +5 -0
- data/lib/countries/country.rb +7 -23
- data/lib/countries/country/class_methods.rb +20 -0
- data/lib/countries/country/currency_methods.rb +10 -0
- data/lib/countries/data/countries/AE.yaml +5 -0
- data/lib/countries/data/countries/AU.yaml +5 -0
- data/lib/countries/data/countries/BR.yaml +7 -0
- data/lib/countries/data/countries/CZ.yaml +1 -1
- data/lib/countries/data/countries/GR.yaml +2 -2
- data/lib/countries/data/countries/HT.yaml +1 -1
- data/lib/countries/data/countries/IS.yaml +6 -0
- data/lib/countries/data/countries/LT.yaml +1 -0
- data/lib/countries/data/countries/NC.yaml +1 -1
- data/lib/countries/data/countries/NG.yaml +5 -0
- data/lib/countries/data/countries/NP.yaml +1 -1
- data/lib/countries/data/countries/NZ.yaml +6 -0
- data/lib/countries/data/countries/SG.yaml +1 -1
- data/lib/countries/data/countries/TH.yaml +5 -0
- data/lib/countries/data/countries/UA.yaml +6 -0
- data/lib/countries/data/countries/VE.yaml +1 -1
- data/lib/countries/data/subdivisions/AD.yaml +1 -1
- data/lib/countries/data/subdivisions/AI.yaml +183 -0
- data/lib/countries/data/subdivisions/AS.yaml +66 -0
- data/lib/countries/data/subdivisions/AX.yaml +40 -0
- data/lib/countries/data/subdivisions/BM.yaml +144 -0
- data/lib/countries/data/subdivisions/CK.yaml +144 -0
- data/lib/countries/data/subdivisions/CN.yaml +33 -0
- data/lib/countries/data/subdivisions/CU.yaml +0 -12
- data/lib/countries/data/subdivisions/EC.yaml +18 -24
- data/lib/countries/data/subdivisions/FO.yaml +79 -0
- data/lib/countries/data/subdivisions/GG.yaml +144 -0
- data/lib/countries/data/subdivisions/GU.yaml +248 -0
- data/lib/countries/data/subdivisions/HK.yaml +235 -0
- data/lib/countries/data/subdivisions/IM.yaml +313 -0
- data/lib/countries/data/subdivisions/JE.yaml +157 -0
- data/lib/countries/data/subdivisions/MP.yaml +53 -0
- data/lib/countries/data/subdivisions/MS.yaml +40 -0
- data/lib/countries/data/subdivisions/MX.yaml +0 -3
- data/lib/countries/data/subdivisions/NC.yaml +40 -0
- data/lib/countries/data/subdivisions/PA.yaml +50 -27
- data/lib/countries/data/subdivisions/PE.yaml +9 -12
- data/lib/countries/data/subdivisions/PF.yaml +66 -0
- data/lib/countries/data/subdivisions/PM.yaml +27 -0
- data/lib/countries/data/subdivisions/PR.yaml +1015 -0
- data/lib/countries/data/subdivisions/SD.yaml +40 -45
- data/lib/countries/data/subdivisions/SJ.yaml +27 -0
- data/lib/countries/data/subdivisions/TK.yaml +40 -0
- data/lib/countries/data/subdivisions/UY.yaml +1 -1
- data/lib/countries/data/subdivisions/VI.yaml +40 -0
- data/lib/countries/data/subdivisions/YT.yaml +222 -0
- data/lib/countries/data/translation_corrections.yaml +1 -1
- data/lib/countries/iso3166.rb +1 -1
- data/lib/countries/version.rb +1 -1
- data/spec/00_global_spec.rb +56 -0
- data/spec/configuration_spec.rb +1 -0
- data/spec/country_spec.rb +1 -0
- data/spec/perf_spec.rb +1 -1
- metadata +27 -19
- data/spec/global_spec.rb +0 -29
@@ -0,0 +1,79 @@
|
|
1
|
+
---
|
2
|
+
NO:
|
3
|
+
unofficial_names: Nordoyar
|
4
|
+
translations:
|
5
|
+
en: Nordoyar
|
6
|
+
geo:
|
7
|
+
latitude: 62.28333
|
8
|
+
longitude: -6.58333
|
9
|
+
min_latitude:
|
10
|
+
min_longitude:
|
11
|
+
max_latitude:
|
12
|
+
max_longitude:
|
13
|
+
name: Nordoyar
|
14
|
+
comments:
|
15
|
+
OS:
|
16
|
+
unofficial_names: Eysturoyar
|
17
|
+
translations:
|
18
|
+
en: Eysturoyar
|
19
|
+
geo:
|
20
|
+
latitude: 62.21667
|
21
|
+
longitude: -6.86667
|
22
|
+
min_latitude:
|
23
|
+
min_longitude:
|
24
|
+
max_latitude:
|
25
|
+
max_longitude:
|
26
|
+
name: Eysturoyar
|
27
|
+
comments:
|
28
|
+
SA:
|
29
|
+
unofficial_names: Sandoyar
|
30
|
+
translations:
|
31
|
+
en: Sandoyar
|
32
|
+
geo:
|
33
|
+
latitude: 61.83333
|
34
|
+
longitude: -6.75
|
35
|
+
min_latitude:
|
36
|
+
min_longitude:
|
37
|
+
max_latitude:
|
38
|
+
max_longitude:
|
39
|
+
name: Sandoyar
|
40
|
+
comments:
|
41
|
+
ST:
|
42
|
+
unofficial_names: Streymoyar
|
43
|
+
translations:
|
44
|
+
en: Streymoyar
|
45
|
+
geo:
|
46
|
+
latitude: 62.13333
|
47
|
+
longitude: -7
|
48
|
+
min_latitude:
|
49
|
+
min_longitude:
|
50
|
+
max_latitude:
|
51
|
+
max_longitude:
|
52
|
+
name: Streymoyar
|
53
|
+
comments:
|
54
|
+
SU:
|
55
|
+
unofficial_names: Suduroyar
|
56
|
+
translations:
|
57
|
+
en: Suduroyar
|
58
|
+
geo:
|
59
|
+
latitude: 61.48333
|
60
|
+
longitude: -6.81667
|
61
|
+
min_latitude:
|
62
|
+
min_longitude:
|
63
|
+
max_latitude:
|
64
|
+
max_longitude:
|
65
|
+
name: Suduroyar
|
66
|
+
comments:
|
67
|
+
VG:
|
68
|
+
unofficial_names: Vaga
|
69
|
+
translations:
|
70
|
+
en: Vaga
|
71
|
+
geo:
|
72
|
+
latitude: 62.08333
|
73
|
+
longitude: -7.25
|
74
|
+
min_latitude:
|
75
|
+
min_longitude:
|
76
|
+
max_latitude:
|
77
|
+
max_longitude:
|
78
|
+
name: Vaga
|
79
|
+
comments:
|
@@ -0,0 +1,144 @@
|
|
1
|
+
---
|
2
|
+
'1':
|
3
|
+
unofficial_names: Saint Pierre du Bois
|
4
|
+
translations:
|
5
|
+
en: Saint Pierre du Bois
|
6
|
+
geo:
|
7
|
+
latitude: 49.44556
|
8
|
+
longitude: -2.64361
|
9
|
+
min_latitude:
|
10
|
+
min_longitude:
|
11
|
+
max_latitude:
|
12
|
+
max_longitude:
|
13
|
+
name: Saint Pierre du Bois
|
14
|
+
comments:
|
15
|
+
'2':
|
16
|
+
unofficial_names: Torteval
|
17
|
+
translations:
|
18
|
+
en: Torteval
|
19
|
+
geo:
|
20
|
+
latitude: 49.43
|
21
|
+
longitude: -2.64889
|
22
|
+
min_latitude:
|
23
|
+
min_longitude:
|
24
|
+
max_latitude:
|
25
|
+
max_longitude:
|
26
|
+
name: Torteval
|
27
|
+
comments:
|
28
|
+
'3':
|
29
|
+
unofficial_names: Saint Saviour
|
30
|
+
translations:
|
31
|
+
en: Saint Saviour
|
32
|
+
geo:
|
33
|
+
latitude: 49.44972
|
34
|
+
longitude: -2.62389
|
35
|
+
min_latitude:
|
36
|
+
min_longitude:
|
37
|
+
max_latitude:
|
38
|
+
max_longitude:
|
39
|
+
name: Saint Saviour
|
40
|
+
comments:
|
41
|
+
'4':
|
42
|
+
unofficial_names: Forest
|
43
|
+
translations:
|
44
|
+
en: Forest
|
45
|
+
geo:
|
46
|
+
latitude: 49.42583
|
47
|
+
longitude: -2.59194
|
48
|
+
min_latitude:
|
49
|
+
min_longitude:
|
50
|
+
max_latitude:
|
51
|
+
max_longitude:
|
52
|
+
name: Forest
|
53
|
+
comments:
|
54
|
+
'5':
|
55
|
+
unofficial_names: Saint Martin
|
56
|
+
translations:
|
57
|
+
en: Saint Martin
|
58
|
+
geo:
|
59
|
+
latitude: 49.43333
|
60
|
+
longitude: -2.55722
|
61
|
+
min_latitude:
|
62
|
+
min_longitude:
|
63
|
+
max_latitude:
|
64
|
+
max_longitude:
|
65
|
+
name: Saint Martin
|
66
|
+
comments:
|
67
|
+
'6':
|
68
|
+
unofficial_names: Saint Andrew
|
69
|
+
translations:
|
70
|
+
en: Saint Andrew
|
71
|
+
geo:
|
72
|
+
latitude: 49.44778
|
73
|
+
longitude: -2.57361
|
74
|
+
min_latitude:
|
75
|
+
min_longitude:
|
76
|
+
max_latitude:
|
77
|
+
max_longitude:
|
78
|
+
name: Saint Andrew
|
79
|
+
comments:
|
80
|
+
'7':
|
81
|
+
unofficial_names: Saint Peter Port
|
82
|
+
translations:
|
83
|
+
en: Saint Peter Port
|
84
|
+
geo:
|
85
|
+
latitude: 49.46
|
86
|
+
longitude: -2.55194
|
87
|
+
min_latitude:
|
88
|
+
min_longitude:
|
89
|
+
max_latitude:
|
90
|
+
max_longitude:
|
91
|
+
name: Saint Peter Port
|
92
|
+
comments:
|
93
|
+
'8':
|
94
|
+
unofficial_names: Castel
|
95
|
+
translations:
|
96
|
+
en: Castel
|
97
|
+
geo:
|
98
|
+
latitude: 49.465
|
99
|
+
longitude: -2.59361
|
100
|
+
min_latitude:
|
101
|
+
min_longitude:
|
102
|
+
max_latitude:
|
103
|
+
max_longitude:
|
104
|
+
name: Castel
|
105
|
+
comments:
|
106
|
+
'9':
|
107
|
+
unofficial_names: Vale
|
108
|
+
translations:
|
109
|
+
en: Vale
|
110
|
+
geo:
|
111
|
+
latitude: 49.49361
|
112
|
+
longitude: -2.52833
|
113
|
+
min_latitude:
|
114
|
+
min_longitude:
|
115
|
+
max_latitude:
|
116
|
+
max_longitude:
|
117
|
+
name: Vale
|
118
|
+
comments:
|
119
|
+
'10':
|
120
|
+
unofficial_names: Saint Sampson
|
121
|
+
translations:
|
122
|
+
en: Saint Sampson
|
123
|
+
geo:
|
124
|
+
latitude: 49.48194
|
125
|
+
longitude: -2.53722
|
126
|
+
min_latitude:
|
127
|
+
min_longitude:
|
128
|
+
max_latitude:
|
129
|
+
max_longitude:
|
130
|
+
name: Saint Sampson
|
131
|
+
comments:
|
132
|
+
'11':
|
133
|
+
unofficial_names: Alderney
|
134
|
+
translations:
|
135
|
+
en: Alderney
|
136
|
+
geo:
|
137
|
+
latitude: 49.71677
|
138
|
+
longitude: -2.19851
|
139
|
+
min_latitude:
|
140
|
+
min_longitude:
|
141
|
+
max_latitude:
|
142
|
+
max_longitude:
|
143
|
+
name: Alderney
|
144
|
+
comments:
|
@@ -0,0 +1,248 @@
|
|
1
|
+
---
|
2
|
+
AH:
|
3
|
+
unofficial_names: Agana Heights
|
4
|
+
translations:
|
5
|
+
en: Agana Heights
|
6
|
+
geo:
|
7
|
+
latitude: 13.46559
|
8
|
+
longitude: 144.74773
|
9
|
+
min_latitude:
|
10
|
+
min_longitude:
|
11
|
+
max_latitude:
|
12
|
+
max_longitude:
|
13
|
+
name: Agana Heights
|
14
|
+
comments:
|
15
|
+
AN:
|
16
|
+
unofficial_names: Hagatna
|
17
|
+
translations:
|
18
|
+
en: Hagatna
|
19
|
+
geo:
|
20
|
+
latitude: 13.47279
|
21
|
+
longitude: 144.75788
|
22
|
+
min_latitude:
|
23
|
+
min_longitude:
|
24
|
+
max_latitude:
|
25
|
+
max_longitude:
|
26
|
+
name: Hagatna
|
27
|
+
comments:
|
28
|
+
AS:
|
29
|
+
unofficial_names: Asan-Maina
|
30
|
+
translations:
|
31
|
+
en: Asan-Maina
|
32
|
+
geo:
|
33
|
+
latitude: 13.47214
|
34
|
+
longitude: 144.7164
|
35
|
+
min_latitude:
|
36
|
+
min_longitude:
|
37
|
+
max_latitude:
|
38
|
+
max_longitude:
|
39
|
+
name: Asan-Maina
|
40
|
+
comments:
|
41
|
+
AT:
|
42
|
+
unofficial_names: Agat
|
43
|
+
translations:
|
44
|
+
en: Agat
|
45
|
+
geo:
|
46
|
+
latitude: 13.35619
|
47
|
+
longitude: 144.66938
|
48
|
+
min_latitude:
|
49
|
+
min_longitude:
|
50
|
+
max_latitude:
|
51
|
+
max_longitude:
|
52
|
+
name: Agat
|
53
|
+
comments:
|
54
|
+
BA:
|
55
|
+
unofficial_names: Barrigada
|
56
|
+
translations:
|
57
|
+
en: Barrigada
|
58
|
+
geo:
|
59
|
+
latitude: 13.46906
|
60
|
+
longitude: 144.7988
|
61
|
+
min_latitude:
|
62
|
+
min_longitude:
|
63
|
+
max_latitude:
|
64
|
+
max_longitude:
|
65
|
+
name: Barrigada
|
66
|
+
comments:
|
67
|
+
CP:
|
68
|
+
unofficial_names: Chalan Pago-Ordot
|
69
|
+
translations:
|
70
|
+
en: Chalan Pago-Ordot
|
71
|
+
geo:
|
72
|
+
latitude: 13.4474
|
73
|
+
longitude: 144.75888
|
74
|
+
min_latitude:
|
75
|
+
min_longitude:
|
76
|
+
max_latitude:
|
77
|
+
max_longitude:
|
78
|
+
name: Chalan Pago-Ordot
|
79
|
+
comments:
|
80
|
+
DD:
|
81
|
+
unofficial_names: Dededo
|
82
|
+
translations:
|
83
|
+
en: Dededo
|
84
|
+
geo:
|
85
|
+
latitude: 13.51776
|
86
|
+
longitude: 144.83898
|
87
|
+
min_latitude:
|
88
|
+
min_longitude:
|
89
|
+
max_latitude:
|
90
|
+
max_longitude:
|
91
|
+
name: Dededo
|
92
|
+
comments:
|
93
|
+
IN:
|
94
|
+
unofficial_names: Inarajan
|
95
|
+
translations:
|
96
|
+
en: Inarajan
|
97
|
+
geo:
|
98
|
+
latitude: 13.29414
|
99
|
+
longitude: 144.73479
|
100
|
+
min_latitude:
|
101
|
+
min_longitude:
|
102
|
+
max_latitude:
|
103
|
+
max_longitude:
|
104
|
+
name: Inarajan
|
105
|
+
comments:
|
106
|
+
MA:
|
107
|
+
unofficial_names: Mangilao
|
108
|
+
translations:
|
109
|
+
en: Mangilao
|
110
|
+
geo:
|
111
|
+
latitude: 13.44766
|
112
|
+
longitude: 144.80071
|
113
|
+
min_latitude:
|
114
|
+
min_longitude:
|
115
|
+
max_latitude:
|
116
|
+
max_longitude:
|
117
|
+
name: Mangilao
|
118
|
+
comments:
|
119
|
+
ME:
|
120
|
+
unofficial_names: Merizo
|
121
|
+
translations:
|
122
|
+
en: Merizo
|
123
|
+
geo:
|
124
|
+
latitude: 13.27125
|
125
|
+
longitude: 144.67464
|
126
|
+
min_latitude:
|
127
|
+
min_longitude:
|
128
|
+
max_latitude:
|
129
|
+
max_longitude:
|
130
|
+
name: Merizo
|
131
|
+
comments:
|
132
|
+
MT:
|
133
|
+
unofficial_names: Mongmong-Toto-Maite
|
134
|
+
translations:
|
135
|
+
en: Mongmong-Toto-Maite
|
136
|
+
geo:
|
137
|
+
latitude: 13.46857
|
138
|
+
longitude: 144.78191
|
139
|
+
min_latitude:
|
140
|
+
min_longitude:
|
141
|
+
max_latitude:
|
142
|
+
max_longitude:
|
143
|
+
name: Mongmong-Toto-Maite
|
144
|
+
comments:
|
145
|
+
PI:
|
146
|
+
unofficial_names: Piti
|
147
|
+
translations:
|
148
|
+
en: Piti
|
149
|
+
geo:
|
150
|
+
latitude: 13.46256
|
151
|
+
longitude: 144.69282
|
152
|
+
min_latitude:
|
153
|
+
min_longitude:
|
154
|
+
max_latitude:
|
155
|
+
max_longitude:
|
156
|
+
name: Piti
|
157
|
+
comments:
|
158
|
+
SJ:
|
159
|
+
unofficial_names: Sinajana
|
160
|
+
translations:
|
161
|
+
en: Sinajana
|
162
|
+
geo:
|
163
|
+
latitude: 13.46334
|
164
|
+
longitude: 144.75381
|
165
|
+
min_latitude:
|
166
|
+
min_longitude:
|
167
|
+
max_latitude:
|
168
|
+
max_longitude:
|
169
|
+
name: Sinajana
|
170
|
+
comments:
|
171
|
+
SR:
|
172
|
+
unofficial_names: Santa Rita
|
173
|
+
translations:
|
174
|
+
en: Santa Rita
|
175
|
+
geo:
|
176
|
+
latitude: 13.38609
|
177
|
+
longitude: 144.67208
|
178
|
+
min_latitude:
|
179
|
+
min_longitude:
|
180
|
+
max_latitude:
|
181
|
+
max_longitude:
|
182
|
+
name: Santa Rita
|
183
|
+
comments:
|
184
|
+
TF:
|
185
|
+
unofficial_names: Talofofo
|
186
|
+
translations:
|
187
|
+
en: Talofofo
|
188
|
+
geo:
|
189
|
+
latitude: 13.35522
|
190
|
+
longitude: 144.7588
|
191
|
+
min_latitude:
|
192
|
+
min_longitude:
|
193
|
+
max_latitude:
|
194
|
+
max_longitude:
|
195
|
+
name: Talofofo
|
196
|
+
comments:
|
197
|
+
TM:
|
198
|
+
unofficial_names: Tamuning
|
199
|
+
translations:
|
200
|
+
en: Tamuning
|
201
|
+
geo:
|
202
|
+
latitude: 13.48759
|
203
|
+
longitude: 144.78094
|
204
|
+
min_latitude:
|
205
|
+
min_longitude:
|
206
|
+
max_latitude:
|
207
|
+
max_longitude:
|
208
|
+
name: Tamuning
|
209
|
+
comments:
|
210
|
+
UM:
|
211
|
+
unofficial_names: Umatac
|
212
|
+
translations:
|
213
|
+
en: Umatac
|
214
|
+
geo:
|
215
|
+
latitude: 13.30739
|
216
|
+
longitude: 144.66909
|
217
|
+
min_latitude:
|
218
|
+
min_longitude:
|
219
|
+
max_latitude:
|
220
|
+
max_longitude:
|
221
|
+
name: Umatac
|
222
|
+
comments:
|
223
|
+
YG:
|
224
|
+
unofficial_names: Yigo
|
225
|
+
translations:
|
226
|
+
en: Yigo
|
227
|
+
geo:
|
228
|
+
latitude: 13.53603
|
229
|
+
longitude: 144.88913
|
230
|
+
min_latitude:
|
231
|
+
min_longitude:
|
232
|
+
max_latitude:
|
233
|
+
max_longitude:
|
234
|
+
name: Yigo
|
235
|
+
comments:
|
236
|
+
YN:
|
237
|
+
unofficial_names: Yona
|
238
|
+
translations:
|
239
|
+
en: Yona
|
240
|
+
geo:
|
241
|
+
latitude: 13.40972
|
242
|
+
longitude: 144.77714
|
243
|
+
min_latitude:
|
244
|
+
min_longitude:
|
245
|
+
max_latitude:
|
246
|
+
max_longitude:
|
247
|
+
name: Yona
|
248
|
+
comments:
|