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,183 @@
|
|
1
|
+
---
|
2
|
+
BP:
|
3
|
+
unofficial_names: Blowing Point
|
4
|
+
translations:
|
5
|
+
en: Blowing Point
|
6
|
+
geo:
|
7
|
+
latitude: 18.177
|
8
|
+
longitude: -63.09161
|
9
|
+
min_latitude:
|
10
|
+
min_longitude:
|
11
|
+
max_latitude:
|
12
|
+
max_longitude:
|
13
|
+
name: Blowing Point
|
14
|
+
comments:
|
15
|
+
EE:
|
16
|
+
unofficial_names: East End
|
17
|
+
translations:
|
18
|
+
en: East End
|
19
|
+
geo:
|
20
|
+
latitude: 18.234
|
21
|
+
longitude: -62.99728
|
22
|
+
min_latitude:
|
23
|
+
min_longitude:
|
24
|
+
max_latitude:
|
25
|
+
max_longitude:
|
26
|
+
name: East End
|
27
|
+
comments:
|
28
|
+
GH:
|
29
|
+
unofficial_names: George Hill
|
30
|
+
translations:
|
31
|
+
en: George Hill
|
32
|
+
geo:
|
33
|
+
latitude: 18.19943
|
34
|
+
longitude: -63.06517
|
35
|
+
min_latitude:
|
36
|
+
min_longitude:
|
37
|
+
max_latitude:
|
38
|
+
max_longitude:
|
39
|
+
name: George Hill
|
40
|
+
comments:
|
41
|
+
IH:
|
42
|
+
unofficial_names: Island Harbour
|
43
|
+
translations:
|
44
|
+
en: Island Harbour
|
45
|
+
geo:
|
46
|
+
latitude: 18.25617
|
47
|
+
longitude: -63.00724
|
48
|
+
min_latitude:
|
49
|
+
min_longitude:
|
50
|
+
max_latitude:
|
51
|
+
max_longitude:
|
52
|
+
name: Island Harbour
|
53
|
+
comments:
|
54
|
+
NH:
|
55
|
+
unofficial_names: North Hill
|
56
|
+
translations:
|
57
|
+
en: North Hill
|
58
|
+
geo:
|
59
|
+
latitude: 18.20603
|
60
|
+
longitude: -63.07607
|
61
|
+
min_latitude:
|
62
|
+
min_longitude:
|
63
|
+
max_latitude:
|
64
|
+
max_longitude:
|
65
|
+
name: North Hill
|
66
|
+
comments:
|
67
|
+
NS:
|
68
|
+
unofficial_names: North Side
|
69
|
+
translations:
|
70
|
+
en: North Side
|
71
|
+
geo:
|
72
|
+
latitude: 18.22931
|
73
|
+
longitude: -63.0468
|
74
|
+
min_latitude:
|
75
|
+
min_longitude:
|
76
|
+
max_latitude:
|
77
|
+
max_longitude:
|
78
|
+
name: North Side
|
79
|
+
comments:
|
80
|
+
SG:
|
81
|
+
unofficial_names: Sandy Ground
|
82
|
+
translations:
|
83
|
+
en: Sandy Ground
|
84
|
+
geo:
|
85
|
+
latitude: 18.20399
|
86
|
+
longitude: -63.08993
|
87
|
+
min_latitude:
|
88
|
+
min_longitude:
|
89
|
+
max_latitude:
|
90
|
+
max_longitude:
|
91
|
+
name: Sandy Ground
|
92
|
+
comments:
|
93
|
+
SH:
|
94
|
+
unofficial_names: Sandy Hill
|
95
|
+
translations:
|
96
|
+
en: Sandy Hill
|
97
|
+
geo:
|
98
|
+
latitude: 18.22066
|
99
|
+
longitude: -63.01178
|
100
|
+
min_latitude:
|
101
|
+
min_longitude:
|
102
|
+
max_latitude:
|
103
|
+
max_longitude:
|
104
|
+
name: Sandy Hill
|
105
|
+
comments:
|
106
|
+
SO:
|
107
|
+
unofficial_names: South Hill
|
108
|
+
translations:
|
109
|
+
en: South Hill
|
110
|
+
geo:
|
111
|
+
latitude: 18.19177
|
112
|
+
longitude: -63.0898
|
113
|
+
min_latitude:
|
114
|
+
min_longitude:
|
115
|
+
max_latitude:
|
116
|
+
max_longitude:
|
117
|
+
name: South Hill
|
118
|
+
comments:
|
119
|
+
ST:
|
120
|
+
unofficial_names: Stoney Ground
|
121
|
+
translations:
|
122
|
+
en: Stoney Ground
|
123
|
+
geo:
|
124
|
+
latitude: 18.22112
|
125
|
+
longitude: -63.04466
|
126
|
+
min_latitude:
|
127
|
+
min_longitude:
|
128
|
+
max_latitude:
|
129
|
+
max_longitude:
|
130
|
+
name: Stoney Ground
|
131
|
+
comments:
|
132
|
+
TF:
|
133
|
+
unofficial_names: The Farrington
|
134
|
+
translations:
|
135
|
+
en: The Farrington
|
136
|
+
geo:
|
137
|
+
latitude: 18.21533
|
138
|
+
longitude: -63.02123
|
139
|
+
min_latitude:
|
140
|
+
min_longitude:
|
141
|
+
max_latitude:
|
142
|
+
max_longitude:
|
143
|
+
name: The Farrington
|
144
|
+
comments:
|
145
|
+
TQ:
|
146
|
+
unofficial_names: The Quarter
|
147
|
+
translations:
|
148
|
+
en: The Quarter
|
149
|
+
geo:
|
150
|
+
latitude: 18.21158
|
151
|
+
longitude: -63.04504
|
152
|
+
min_latitude:
|
153
|
+
min_longitude:
|
154
|
+
max_latitude:
|
155
|
+
max_longitude:
|
156
|
+
name: The Quarter
|
157
|
+
comments:
|
158
|
+
TV:
|
159
|
+
unofficial_names: The Valley
|
160
|
+
translations:
|
161
|
+
en: The Valley
|
162
|
+
geo:
|
163
|
+
latitude: 18.21475
|
164
|
+
longitude: -63.05706
|
165
|
+
min_latitude:
|
166
|
+
min_longitude:
|
167
|
+
max_latitude:
|
168
|
+
max_longitude:
|
169
|
+
name: The Valley
|
170
|
+
comments:
|
171
|
+
WE:
|
172
|
+
unofficial_names: West End
|
173
|
+
translations:
|
174
|
+
en: West End
|
175
|
+
geo:
|
176
|
+
latitude: 18.17138
|
177
|
+
longitude: -63.15113
|
178
|
+
min_latitude:
|
179
|
+
min_longitude:
|
180
|
+
max_latitude:
|
181
|
+
max_longitude:
|
182
|
+
name: West End
|
183
|
+
comments:
|
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
'010':
|
3
|
+
unofficial_names: Eastern District
|
4
|
+
translations:
|
5
|
+
en: Eastern District
|
6
|
+
geo:
|
7
|
+
latitude: -14.26667
|
8
|
+
longitude: -170.65
|
9
|
+
min_latitude:
|
10
|
+
min_longitude:
|
11
|
+
max_latitude:
|
12
|
+
max_longitude:
|
13
|
+
name: Eastern District
|
14
|
+
comments:
|
15
|
+
'020':
|
16
|
+
unofficial_names: Manu'a District
|
17
|
+
translations:
|
18
|
+
en: Manu'a District
|
19
|
+
geo:
|
20
|
+
latitude: -14.23327
|
21
|
+
longitude: -169.47458
|
22
|
+
min_latitude:
|
23
|
+
min_longitude:
|
24
|
+
max_latitude:
|
25
|
+
max_longitude:
|
26
|
+
name: Manu'a District
|
27
|
+
comments:
|
28
|
+
'030':
|
29
|
+
unofficial_names: Rose Atoll
|
30
|
+
translations:
|
31
|
+
en: Rose Atoll
|
32
|
+
geo:
|
33
|
+
latitude: -14.54583
|
34
|
+
longitude: -168.15
|
35
|
+
min_latitude:
|
36
|
+
min_longitude:
|
37
|
+
max_latitude:
|
38
|
+
max_longitude:
|
39
|
+
name: Rose Atoll
|
40
|
+
comments:
|
41
|
+
'040':
|
42
|
+
unofficial_names: Swains Island
|
43
|
+
translations:
|
44
|
+
en: Swains Island
|
45
|
+
geo:
|
46
|
+
latitude: -11.056
|
47
|
+
longitude: -171.082
|
48
|
+
min_latitude:
|
49
|
+
min_longitude:
|
50
|
+
max_latitude:
|
51
|
+
max_longitude:
|
52
|
+
name: Swains Island
|
53
|
+
comments:
|
54
|
+
'050':
|
55
|
+
unofficial_names: Western District
|
56
|
+
translations:
|
57
|
+
en: Western District
|
58
|
+
geo:
|
59
|
+
latitude: -14.31667
|
60
|
+
longitude: -170.76667
|
61
|
+
min_latitude:
|
62
|
+
min_longitude:
|
63
|
+
max_latitude:
|
64
|
+
max_longitude:
|
65
|
+
name: Western District
|
66
|
+
comments:
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
'211':
|
3
|
+
unofficial_names: Mariehamn
|
4
|
+
translations:
|
5
|
+
en: Mariehamn
|
6
|
+
geo:
|
7
|
+
latitude: 60.08348
|
8
|
+
longitude: 19.94307
|
9
|
+
min_latitude:
|
10
|
+
min_longitude:
|
11
|
+
max_latitude:
|
12
|
+
max_longitude:
|
13
|
+
name: Mariehamn
|
14
|
+
comments:
|
15
|
+
'212':
|
16
|
+
unofficial_names: Alands landsbygd
|
17
|
+
translations:
|
18
|
+
en: Alands landsbygd
|
19
|
+
geo:
|
20
|
+
latitude: 60.22496
|
21
|
+
longitude: 19.93363
|
22
|
+
min_latitude:
|
23
|
+
min_longitude:
|
24
|
+
max_latitude:
|
25
|
+
max_longitude:
|
26
|
+
name: Alands landsbygd
|
27
|
+
comments:
|
28
|
+
'213':
|
29
|
+
unofficial_names: Alands skaergard
|
30
|
+
translations:
|
31
|
+
en: Alands skaergard
|
32
|
+
geo:
|
33
|
+
latitude: 60.17575
|
34
|
+
longitude: 20.71799
|
35
|
+
min_latitude:
|
36
|
+
min_longitude:
|
37
|
+
max_latitude:
|
38
|
+
max_longitude:
|
39
|
+
name: Alands skaergard
|
40
|
+
comments:
|
@@ -0,0 +1,144 @@
|
|
1
|
+
---
|
2
|
+
DS:
|
3
|
+
unofficial_names: Devonshire
|
4
|
+
translations:
|
5
|
+
en: Devonshire
|
6
|
+
geo:
|
7
|
+
latitude: 32.30278
|
8
|
+
longitude: -64.75583
|
9
|
+
min_latitude:
|
10
|
+
min_longitude:
|
11
|
+
max_latitude:
|
12
|
+
max_longitude:
|
13
|
+
name: Devonshire
|
14
|
+
comments:
|
15
|
+
GC:
|
16
|
+
unofficial_names: Saint George
|
17
|
+
translations:
|
18
|
+
en: Saint George
|
19
|
+
geo:
|
20
|
+
latitude: 32.38417
|
21
|
+
longitude: -64.67639
|
22
|
+
min_latitude:
|
23
|
+
min_longitude:
|
24
|
+
max_latitude:
|
25
|
+
max_longitude:
|
26
|
+
name: Saint George
|
27
|
+
comments:
|
28
|
+
HA:
|
29
|
+
unofficial_names: Hamilton
|
30
|
+
translations:
|
31
|
+
en: Hamilton
|
32
|
+
geo:
|
33
|
+
latitude: 32.34222
|
34
|
+
longitude: -64.72833
|
35
|
+
min_latitude:
|
36
|
+
min_longitude:
|
37
|
+
max_latitude:
|
38
|
+
max_longitude:
|
39
|
+
name: Hamilton
|
40
|
+
comments:
|
41
|
+
HC:
|
42
|
+
unofficial_names: Hamilton City
|
43
|
+
translations:
|
44
|
+
en: Hamilton City
|
45
|
+
geo:
|
46
|
+
latitude: 32.29326
|
47
|
+
longitude: -64.78063
|
48
|
+
min_latitude:
|
49
|
+
min_longitude:
|
50
|
+
max_latitude:
|
51
|
+
max_longitude:
|
52
|
+
name: Hamilton City
|
53
|
+
comments:
|
54
|
+
PB:
|
55
|
+
unofficial_names: Pembroke
|
56
|
+
translations:
|
57
|
+
en: Pembroke
|
58
|
+
geo:
|
59
|
+
latitude: 32.29944
|
60
|
+
longitude: -64.79278
|
61
|
+
min_latitude:
|
62
|
+
min_longitude:
|
63
|
+
max_latitude:
|
64
|
+
max_longitude:
|
65
|
+
name: Pembroke
|
66
|
+
comments:
|
67
|
+
PG:
|
68
|
+
unofficial_names: Paget
|
69
|
+
translations:
|
70
|
+
en: Paget
|
71
|
+
geo:
|
72
|
+
latitude: 32.27833
|
73
|
+
longitude: -64.78167
|
74
|
+
min_latitude:
|
75
|
+
min_longitude:
|
76
|
+
max_latitude:
|
77
|
+
max_longitude:
|
78
|
+
name: Paget
|
79
|
+
comments:
|
80
|
+
SA:
|
81
|
+
unofficial_names: Sandys
|
82
|
+
translations:
|
83
|
+
en: Sandys
|
84
|
+
geo:
|
85
|
+
latitude: 32.29345
|
86
|
+
longitude: -64.86828
|
87
|
+
min_latitude:
|
88
|
+
min_longitude:
|
89
|
+
max_latitude:
|
90
|
+
max_longitude:
|
91
|
+
name: Sandys
|
92
|
+
comments:
|
93
|
+
SG:
|
94
|
+
unofficial_names: Saint George's
|
95
|
+
translations:
|
96
|
+
en: Saint George's
|
97
|
+
geo:
|
98
|
+
latitude: 32.3726
|
99
|
+
longitude: -64.69437
|
100
|
+
min_latitude:
|
101
|
+
min_longitude:
|
102
|
+
max_latitude:
|
103
|
+
max_longitude:
|
104
|
+
name: Saint George's
|
105
|
+
comments:
|
106
|
+
SH:
|
107
|
+
unofficial_names: Southampton
|
108
|
+
translations:
|
109
|
+
en: Southampton
|
110
|
+
geo:
|
111
|
+
latitude: 32.25083
|
112
|
+
longitude: -64.85639
|
113
|
+
min_latitude:
|
114
|
+
min_longitude:
|
115
|
+
max_latitude:
|
116
|
+
max_longitude:
|
117
|
+
name: Southampton
|
118
|
+
comments:
|
119
|
+
SM:
|
120
|
+
unofficial_names: Smith's
|
121
|
+
translations:
|
122
|
+
en: Smith's
|
123
|
+
geo:
|
124
|
+
latitude: 32.31528
|
125
|
+
longitude: -64.73528
|
126
|
+
min_latitude:
|
127
|
+
min_longitude:
|
128
|
+
max_latitude:
|
129
|
+
max_longitude:
|
130
|
+
name: Smith's
|
131
|
+
comments:
|
132
|
+
WA:
|
133
|
+
unofficial_names: Warwick
|
134
|
+
translations:
|
135
|
+
en: Warwick
|
136
|
+
geo:
|
137
|
+
latitude: 32.26583
|
138
|
+
longitude: -64.80722
|
139
|
+
min_latitude:
|
140
|
+
min_longitude:
|
141
|
+
max_latitude:
|
142
|
+
max_longitude:
|
143
|
+
name: Warwick
|
144
|
+
comments:
|