ip2location_ruby 8.5.0 → 8.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +16 -0
- data/VERSION +1 -1
- data/example.rb +11 -1
- data/ip2location_ruby.gemspec +6 -2
- data/lib/ip2location_ruby/database_config.rb +24 -21
- data/lib/ip2location_ruby.rb +214 -24
- data/rb/data/IP2LOCATION-COUNTRY-INFORMATION-BASIC.CSV +250 -0
- data/rb/data/IP2LOCATION-ISO3166-2.CSV +3625 -0
- data/rb/data/IP2LOCATION-LITE-DB1.IPV6.BIN +0 -0
- data/spec/ip2location_ruby_country_spec.rb +21 -0
- data/spec/ip2location_ruby_database_spec.rb +18 -0
- data/spec/ip2location_ruby_region_spec.rb +9 -0
- metadata +7 -3
@@ -0,0 +1,250 @@
|
|
1
|
+
"country_code","capital","total_area"
|
2
|
+
"AD","Andorra la Vella","468"
|
3
|
+
"AE","Abu Dhabi","83600"
|
4
|
+
"AF","Kabul","652230"
|
5
|
+
"AG","Saint John's","442"
|
6
|
+
"AI","The Valley","91"
|
7
|
+
"AL","Tirana","28748"
|
8
|
+
"AM","Yerevan","29743"
|
9
|
+
"AO","Luanda","1246700"
|
10
|
+
"AQ","-","14000000"
|
11
|
+
"AR","Buenos Aires","2780400"
|
12
|
+
"AS","Pago Pago","199"
|
13
|
+
"AT","Vienna","83871"
|
14
|
+
"AU","Canberra","7741220"
|
15
|
+
"AW","Oranjestad","180"
|
16
|
+
"AX","Mariehamn","1552"
|
17
|
+
"AZ","Baku","86600"
|
18
|
+
"BA","Sarajevo","51197"
|
19
|
+
"BB","Bridgetown","430"
|
20
|
+
"BD","Dhaka","143998"
|
21
|
+
"BE","Brussels","30528"
|
22
|
+
"BF","Ouagadougou","274200"
|
23
|
+
"BG","Sofia","110879"
|
24
|
+
"BH","Manama","760"
|
25
|
+
"BI","Bujumbura","27830"
|
26
|
+
"BJ","Porto-Novo","112622"
|
27
|
+
"BL","Gustavia","21"
|
28
|
+
"BM","Hamilton","54"
|
29
|
+
"BN","Bandar Seri Begawan","5765"
|
30
|
+
"BO","Sucre","1098581"
|
31
|
+
"BQ","Kralendijk","328"
|
32
|
+
"BR","Brasilia","8514877"
|
33
|
+
"BS","Nassau","13880"
|
34
|
+
"BT","Thimphu","38394"
|
35
|
+
"BV","-","49"
|
36
|
+
"BW","Gaborone","581730"
|
37
|
+
"BY","Minsk","207600"
|
38
|
+
"BZ","Belmopan","22966"
|
39
|
+
"CA","Ottawa","9984670"
|
40
|
+
"CC","West Island","14"
|
41
|
+
"CD","Kinshasa","2344858"
|
42
|
+
"CF","Bangui","622984"
|
43
|
+
"CG","Brazzaville","342000"
|
44
|
+
"CH","Bern","41277"
|
45
|
+
"CI","Yamoussoukro","322463"
|
46
|
+
"CK","Avarua","236"
|
47
|
+
"CL","Santiago","756102"
|
48
|
+
"CM","Yaounde","475440"
|
49
|
+
"CN","Beijing","9596961"
|
50
|
+
"CO","Bogota","1138910"
|
51
|
+
"CR","San Jose","51100"
|
52
|
+
"CU","Havana","110860"
|
53
|
+
"CV","Praia","4033"
|
54
|
+
"CW","Willemstad","444"
|
55
|
+
"CX","Flying Fish Cove","135"
|
56
|
+
"CY","Nicosia","9251"
|
57
|
+
"CZ","Prague","78867"
|
58
|
+
"DE","Berlin","357022"
|
59
|
+
"DJ","Djibouti","23200"
|
60
|
+
"DK","Copenhagen","43094"
|
61
|
+
"DM","Roseau","751"
|
62
|
+
"DO","Santo Domingo","48670"
|
63
|
+
"DZ","Algiers","2381741"
|
64
|
+
"EC","Quito","283561"
|
65
|
+
"EE","Tallinn","45228"
|
66
|
+
"EG","Cairo","1001450"
|
67
|
+
"EH","Laayoune / El Aaiun","266000"
|
68
|
+
"ER","Asmara","117600"
|
69
|
+
"ES","Madrid","505370"
|
70
|
+
"ET","Addis Ababa","1104300"
|
71
|
+
"FI","Helsinki","338145"
|
72
|
+
"FJ","Suva","18274"
|
73
|
+
"FK","Stanley","12173"
|
74
|
+
"FM","Palikir","702"
|
75
|
+
"FO","Torshavn","1393"
|
76
|
+
"FR","Paris","643801"
|
77
|
+
"GA","Libreville","267667"
|
78
|
+
"GB","London","243610"
|
79
|
+
"GD","Saint George's","344"
|
80
|
+
"GE","Tbilisi","69700"
|
81
|
+
"GF","Cayenne","86504"
|
82
|
+
"GG","Saint Peter Port","78"
|
83
|
+
"GH","Accra","238533"
|
84
|
+
"GI","Gibraltar","6"
|
85
|
+
"GL","Nuuk","2166086"
|
86
|
+
"GM","Banjul","11295"
|
87
|
+
"GN","Conakry","245857"
|
88
|
+
"GP","Basse-terre","1630"
|
89
|
+
"GQ","Malabo","28051"
|
90
|
+
"GR","Athens","131957"
|
91
|
+
"GS","Grytviken","3903"
|
92
|
+
"GT","Guatemala City","108889"
|
93
|
+
"GU","Hagatna","544"
|
94
|
+
"GW","Bissau","36125"
|
95
|
+
"GY","Georgetown","214969"
|
96
|
+
"HK","-","1104"
|
97
|
+
"HM","-","412"
|
98
|
+
"HN","Tegucigalpa","112090"
|
99
|
+
"HR","Zagreb","56594"
|
100
|
+
"HT","Port-au-prince","27750"
|
101
|
+
"HU","Budapest","93028"
|
102
|
+
"ID","Jakarta","1904569"
|
103
|
+
"IE","Dublin","70273"
|
104
|
+
"IL","Jerusalem","20770"
|
105
|
+
"IM","Douglas","572"
|
106
|
+
"IN","New Delhi","3287263"
|
107
|
+
"IO","Diego Garcia","54400"
|
108
|
+
"IQ","Baghdad","438317"
|
109
|
+
"IR","Tehran","1648195"
|
110
|
+
"IS","Reykjavik","103000"
|
111
|
+
"IT","Roma","301340"
|
112
|
+
"JE","Saint Helier","116"
|
113
|
+
"JM","Kingston","10991"
|
114
|
+
"JO","Amman","89342"
|
115
|
+
"JP","Tokyo","377915"
|
116
|
+
"KE","Nairobi","580367"
|
117
|
+
"KG","Bishkek","199951"
|
118
|
+
"KH","Phnom Penh","181035"
|
119
|
+
"KI","Tarawa","811"
|
120
|
+
"KM","Moroni","2235"
|
121
|
+
"KN","Basseterre","261"
|
122
|
+
"KP","Pyongyang","120538"
|
123
|
+
"KR","Seoul","99720"
|
124
|
+
"KW","Kuwait","17818"
|
125
|
+
"KY","George Town","264"
|
126
|
+
"KZ","Astana","2724900"
|
127
|
+
"LA","Vientiane","236800"
|
128
|
+
"LB","Beirut","10400"
|
129
|
+
"LC","Castries","616"
|
130
|
+
"LI","Vaduz","160"
|
131
|
+
"LK","Sri Jayewardenepura Kotte","65610"
|
132
|
+
"LR","Monrovia","111369"
|
133
|
+
"LS","Maseru","30355"
|
134
|
+
"LT","Vilnius","65300"
|
135
|
+
"LU","Luxembourg","2586"
|
136
|
+
"LV","Riga","64589"
|
137
|
+
"LY","Tripoli","1759540"
|
138
|
+
"MA","Rabat","446550"
|
139
|
+
"MC","Monaco","2"
|
140
|
+
"MD","Chisinau","33851"
|
141
|
+
"ME","Podgorica","13812"
|
142
|
+
"MF","Marigot","54"
|
143
|
+
"MG","Antananarivo","587041"
|
144
|
+
"MH","Majuro","181"
|
145
|
+
"MK","Skopje","25713"
|
146
|
+
"ML","Bamako","1240192"
|
147
|
+
"MM","Pyinmana","676578"
|
148
|
+
"MN","Ulaanbaatar","1564116"
|
149
|
+
"MO","-","31.3"
|
150
|
+
"MP","Saipan","464"
|
151
|
+
"MQ","Fort-de-france","1128"
|
152
|
+
"MR","Nouakchott","1030700"
|
153
|
+
"MS","Plymouth","102"
|
154
|
+
"MT","Valletta","316"
|
155
|
+
"MU","Port Louis","2040"
|
156
|
+
"MV","Male","298"
|
157
|
+
"MW","Lilongwe","118484"
|
158
|
+
"MX","Mexico City","1964375"
|
159
|
+
"MY","Kuala Lumpur","329847"
|
160
|
+
"MZ","Maputo","799380"
|
161
|
+
"NA","Windhoek","824292"
|
162
|
+
"NC","Noumea","18575"
|
163
|
+
"NE","Niamey","1186408"
|
164
|
+
"NF","Kingston","36"
|
165
|
+
"NG","Abuja","923768"
|
166
|
+
"NI","Managua","130370"
|
167
|
+
"NL","Amsterdam","41543"
|
168
|
+
"NO","Oslo","323802"
|
169
|
+
"NP","Kathmandu","147181"
|
170
|
+
"NR","Yaren","21"
|
171
|
+
"NU","Alofi","260"
|
172
|
+
"NZ","Wellington","267710"
|
173
|
+
"OM","Muscat","309500"
|
174
|
+
"PA","Panama","75420"
|
175
|
+
"PE","Lima","1285216"
|
176
|
+
"PF","Papeete","4167"
|
177
|
+
"PG","Port Moresby","462840"
|
178
|
+
"PH","Manila","300000"
|
179
|
+
"PK","Islamabad","796095"
|
180
|
+
"PL","Warsaw","312685"
|
181
|
+
"PM","Saint-pierre","242"
|
182
|
+
"PN","Adamstown","47"
|
183
|
+
"PR","San Juan","13790"
|
184
|
+
"PS","-","5860"
|
185
|
+
"PT","Lisbon","92090"
|
186
|
+
"PW","Melekeok - Palau State Capital","459"
|
187
|
+
"PY","Asuncion","406752"
|
188
|
+
"QA","Doha","11586"
|
189
|
+
"RE","Saint-denis","2512"
|
190
|
+
"RO","Bucharest","238391"
|
191
|
+
"RS","Belgrade","77474"
|
192
|
+
"RU","Moscow","17098242"
|
193
|
+
"RW","Kigali","26338"
|
194
|
+
"SA","Riyadh","2149690"
|
195
|
+
"SB","Honiara","28896"
|
196
|
+
"SC","Victoria","455"
|
197
|
+
"SD","Khartoum","1861484"
|
198
|
+
"SE","Stockholm","450295"
|
199
|
+
"SG","Singapore","697"
|
200
|
+
"SH","Jamestown","122"
|
201
|
+
"SI","Ljubljana","20273"
|
202
|
+
"SJ","Longyearbyen","62045"
|
203
|
+
"SK","Bratislava","49035"
|
204
|
+
"SL","Freetown","71740"
|
205
|
+
"SM","San Marino","61"
|
206
|
+
"SN","Dakar","196722"
|
207
|
+
"SO","Mogadishu","637657"
|
208
|
+
"SR","Paramaribo","163820"
|
209
|
+
"SS","Juba","644329"
|
210
|
+
"ST","Sao Tome","964"
|
211
|
+
"SV","San Salvador","21041"
|
212
|
+
"SX","Philipsburg","34"
|
213
|
+
"SY","Damascus","185180"
|
214
|
+
"SZ","Mbabane","17364"
|
215
|
+
"TC","Cockburn Town","948"
|
216
|
+
"TD","N'djamena","1284000"
|
217
|
+
"TF","Port-aux-francais","439781"
|
218
|
+
"TG","Lome","56785"
|
219
|
+
"TH","Bangkok","513120"
|
220
|
+
"TJ","Dushanbe","143100"
|
221
|
+
"TK","-","12"
|
222
|
+
"TL","Dili","14874"
|
223
|
+
"TM","Ashgabat","488100"
|
224
|
+
"TN","Tunis","163610"
|
225
|
+
"TO","Nuku'alofa","747"
|
226
|
+
"TR","Ankara","783562"
|
227
|
+
"TT","Port of Spain","5128"
|
228
|
+
"TV","Funafuti","26"
|
229
|
+
"TW","Taipei","35980"
|
230
|
+
"TZ","Dodoma","947300"
|
231
|
+
"UA","Kiev","603550"
|
232
|
+
"UG","Kampala","241038"
|
233
|
+
"UM","-","34.2"
|
234
|
+
"US","Washington, D.C.","9826675"
|
235
|
+
"UY","Montevideo","176215"
|
236
|
+
"UZ","Tashkent","447400"
|
237
|
+
"VA","Vatican City","0.44"
|
238
|
+
"VC","Kingstown","389"
|
239
|
+
"VE","Caracas","912050"
|
240
|
+
"VG","Road Town","151"
|
241
|
+
"VI","Charlotte Amalie","1910"
|
242
|
+
"VN","Ha Noi","331210"
|
243
|
+
"VU","Port-vila","12189"
|
244
|
+
"WF","Mata'utu","142"
|
245
|
+
"WS","Apia","2831"
|
246
|
+
"YE","Sanaa","527968"
|
247
|
+
"YT","Mamoudzou","374"
|
248
|
+
"ZA","Cape Town","1219090"
|
249
|
+
"ZM","Lusaka","752618"
|
250
|
+
"ZW","Harare","390757"
|