cse 0.0.2
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 +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +41 -0
- data/Rakefile +2 -0
- data/cs.gemspec +23 -0
- data/lib/cs.rb +349 -0
- data/lib/db/GeoLite2-City-Locations-en.csv +119237 -0
- data/lib/db/countries.yml +249 -0
- data/lib/db/states-replace.yml +3 -0
- metadata +95 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
---
|
|
2
|
+
:AD: Andorra
|
|
3
|
+
:AE: United Arab Emirates
|
|
4
|
+
:AF: Afghanistan
|
|
5
|
+
:AG: Antigua and Barbuda
|
|
6
|
+
:AI: Anguilla
|
|
7
|
+
:AL: Albania
|
|
8
|
+
:AM: Armenia
|
|
9
|
+
:AO: Angola
|
|
10
|
+
:AQ: Antarctica
|
|
11
|
+
:AR: Argentina
|
|
12
|
+
:AS: American Samoa
|
|
13
|
+
:AT: Austria
|
|
14
|
+
:AU: Australia
|
|
15
|
+
:AW: Aruba
|
|
16
|
+
:AX: "Åland"
|
|
17
|
+
:AZ: Azerbaijan
|
|
18
|
+
:BA: Bosnia and Herzegovina
|
|
19
|
+
:BB: Barbados
|
|
20
|
+
:BD: Bangladesh
|
|
21
|
+
:BE: Belgium
|
|
22
|
+
:BF: Burkina Faso
|
|
23
|
+
:BG: Bulgaria
|
|
24
|
+
:BH: Bahrain
|
|
25
|
+
:BI: Burundi
|
|
26
|
+
:BJ: Benin
|
|
27
|
+
:BL: Saint-Barthélemy
|
|
28
|
+
:BM: Bermuda
|
|
29
|
+
:BN: Brunei
|
|
30
|
+
:BO: Bolivia
|
|
31
|
+
:BQ: Bonaire
|
|
32
|
+
:BR: Brazil
|
|
33
|
+
:BS: Bahamas
|
|
34
|
+
:BT: Bhutan
|
|
35
|
+
:BW: Botswana
|
|
36
|
+
:BY: Belarus
|
|
37
|
+
:BZ: Belize
|
|
38
|
+
:CA: Canada
|
|
39
|
+
:CC: Cocos [Keeling] Islands
|
|
40
|
+
:CD: Congo
|
|
41
|
+
:CF: Central African Republic
|
|
42
|
+
:CG: Republic of the Congo
|
|
43
|
+
:CH: Switzerland
|
|
44
|
+
:CI: Ivory Coast
|
|
45
|
+
:CK: Cook Islands
|
|
46
|
+
:CL: Chile
|
|
47
|
+
:CM: Cameroon
|
|
48
|
+
:CN: China
|
|
49
|
+
:CO: Colombia
|
|
50
|
+
:COUNTRY_ISO_CODE: country_name
|
|
51
|
+
:CR: Costa Rica
|
|
52
|
+
:CU: Cuba
|
|
53
|
+
:CV: Cape Verde
|
|
54
|
+
:CW: Curaçao
|
|
55
|
+
:CX: Christmas Island
|
|
56
|
+
:CY: Cyprus
|
|
57
|
+
:CZ: Czech Republic
|
|
58
|
+
:DE: Germany
|
|
59
|
+
:DJ: Djibouti
|
|
60
|
+
:DK: Denmark
|
|
61
|
+
:DM: Dominica
|
|
62
|
+
:DO: Dominican Republic
|
|
63
|
+
:DZ: Algeria
|
|
64
|
+
:EC: Ecuador
|
|
65
|
+
:EE: Estonia
|
|
66
|
+
:EG: Egypt
|
|
67
|
+
:ER: Eritrea
|
|
68
|
+
:ES: Spain
|
|
69
|
+
:ET: Ethiopia
|
|
70
|
+
:FI: Finland
|
|
71
|
+
:FJ: Fiji
|
|
72
|
+
:FK: Falkland Islands
|
|
73
|
+
:FM: Federated States of Micronesia
|
|
74
|
+
:FO: Faroe Islands
|
|
75
|
+
:FR: France
|
|
76
|
+
:GA: Gabon
|
|
77
|
+
:GB: United Kingdom
|
|
78
|
+
:GD: Grenada
|
|
79
|
+
:GE: Georgia
|
|
80
|
+
:GF: French Guiana
|
|
81
|
+
:GG: Guernsey
|
|
82
|
+
:GH: Ghana
|
|
83
|
+
:GI: Gibraltar
|
|
84
|
+
:GL: Greenland
|
|
85
|
+
:GM: Gambia
|
|
86
|
+
:GN: Guinea
|
|
87
|
+
:GP: Guadeloupe
|
|
88
|
+
:GQ: Equatorial Guinea
|
|
89
|
+
:GR: Greece
|
|
90
|
+
:GS: South Georgia and the South Sandwich Islands
|
|
91
|
+
:GT: Guatemala
|
|
92
|
+
:GU: Guam
|
|
93
|
+
:GW: Guinea-Bissau
|
|
94
|
+
:GY: Guyana
|
|
95
|
+
:HK: Hong Kong
|
|
96
|
+
:HN: Honduras
|
|
97
|
+
:HR: Croatia
|
|
98
|
+
:HT: Haiti
|
|
99
|
+
:HU: Hungary
|
|
100
|
+
:ID: Indonesia
|
|
101
|
+
:IE: Ireland
|
|
102
|
+
:IL: Israel
|
|
103
|
+
:IM: Isle of Man
|
|
104
|
+
:IN: India
|
|
105
|
+
:IO: British Indian Ocean Territory
|
|
106
|
+
:IQ: Iraq
|
|
107
|
+
:IR: Iran
|
|
108
|
+
:IS: Iceland
|
|
109
|
+
:IT: Italy
|
|
110
|
+
:JE: Jersey
|
|
111
|
+
:JM: Jamaica
|
|
112
|
+
:JO: Hashemite Kingdom of Jordan
|
|
113
|
+
:JP: Japan
|
|
114
|
+
:KE: Kenya
|
|
115
|
+
:KG: Kyrgyzstan
|
|
116
|
+
:KH: Cambodia
|
|
117
|
+
:KI: Kiribati
|
|
118
|
+
:KM: Comoros
|
|
119
|
+
:KN: Saint Kitts and Nevis
|
|
120
|
+
:KP: North Korea
|
|
121
|
+
:KR: Republic of Korea
|
|
122
|
+
:KW: Kuwait
|
|
123
|
+
:KY: Cayman Islands
|
|
124
|
+
:KZ: Kazakhstan
|
|
125
|
+
:LA: Laos
|
|
126
|
+
:LB: Lebanon
|
|
127
|
+
:LC: Saint Lucia
|
|
128
|
+
:LI: Liechtenstein
|
|
129
|
+
:LK: Sri Lanka
|
|
130
|
+
:LR: Liberia
|
|
131
|
+
:LS: Lesotho
|
|
132
|
+
:LT: Republic of Lithuania
|
|
133
|
+
:LU: Luxembourg
|
|
134
|
+
:LV: Latvia
|
|
135
|
+
:LY: Libya
|
|
136
|
+
:MA: Morocco
|
|
137
|
+
:MC: Monaco
|
|
138
|
+
:MD: Republic of Moldova
|
|
139
|
+
:ME: Montenegro
|
|
140
|
+
:MF: Saint Martin
|
|
141
|
+
:MG: Madagascar
|
|
142
|
+
:MH: Marshall Islands
|
|
143
|
+
:MK: Macedonia
|
|
144
|
+
:ML: Mali
|
|
145
|
+
:MM: Myanmar [Burma]
|
|
146
|
+
:MN: Mongolia
|
|
147
|
+
:MO: Macao
|
|
148
|
+
:MP: Northern Mariana Islands
|
|
149
|
+
:MQ: Martinique
|
|
150
|
+
:MR: Mauritania
|
|
151
|
+
:MS: Montserrat
|
|
152
|
+
:MT: Malta
|
|
153
|
+
:MU: Mauritius
|
|
154
|
+
:MV: Maldives
|
|
155
|
+
:MW: Malawi
|
|
156
|
+
:MX: Mexico
|
|
157
|
+
:MY: Malaysia
|
|
158
|
+
:MZ: Mozambique
|
|
159
|
+
:NA: Namibia
|
|
160
|
+
:NC: New Caledonia
|
|
161
|
+
:NE: Niger
|
|
162
|
+
:NF: Norfolk Island
|
|
163
|
+
:NG: Nigeria
|
|
164
|
+
:NI: Nicaragua
|
|
165
|
+
:NL: Netherlands
|
|
166
|
+
:NO: Norway
|
|
167
|
+
:NP: Nepal
|
|
168
|
+
:NR: Nauru
|
|
169
|
+
:NU: Niue
|
|
170
|
+
:NZ: New Zealand
|
|
171
|
+
:OM: Oman
|
|
172
|
+
:PA: Panama
|
|
173
|
+
:PE: Peru
|
|
174
|
+
:PF: French Polynesia
|
|
175
|
+
:PG: Papua New Guinea
|
|
176
|
+
:PH: Philippines
|
|
177
|
+
:PK: Pakistan
|
|
178
|
+
:PL: Poland
|
|
179
|
+
:PM: Saint Pierre and Miquelon
|
|
180
|
+
:PN: Pitcairn Islands
|
|
181
|
+
:PR: Puerto Rico
|
|
182
|
+
:PS: Palestine
|
|
183
|
+
:PT: Portugal
|
|
184
|
+
:PW: Palau
|
|
185
|
+
:PY: Paraguay
|
|
186
|
+
:QA: Qatar
|
|
187
|
+
:RE: Réunion
|
|
188
|
+
:RO: Romania
|
|
189
|
+
:RS: Serbia
|
|
190
|
+
:RU: Russia
|
|
191
|
+
:RW: Rwanda
|
|
192
|
+
:SA: Saudi Arabia
|
|
193
|
+
:SB: Solomon Islands
|
|
194
|
+
:SC: Seychelles
|
|
195
|
+
:SD: Sudan
|
|
196
|
+
:SE: Sweden
|
|
197
|
+
:SG: Singapore
|
|
198
|
+
:SH: Saint Helena
|
|
199
|
+
:SI: Slovenia
|
|
200
|
+
:SJ: Svalbard and Jan Mayen
|
|
201
|
+
:SK: Slovakia
|
|
202
|
+
:SL: Sierra Leone
|
|
203
|
+
:SM: San Marino
|
|
204
|
+
:SN: Senegal
|
|
205
|
+
:SO: Somalia
|
|
206
|
+
:SR: Suriname
|
|
207
|
+
:SS: South Sudan
|
|
208
|
+
:ST: São Tomé and Príncipe
|
|
209
|
+
:SV: El Salvador
|
|
210
|
+
:SX: Sint Maarten
|
|
211
|
+
:SY: Syria
|
|
212
|
+
:SZ: Swaziland
|
|
213
|
+
:TC: Turks and Caicos Islands
|
|
214
|
+
:TD: Chad
|
|
215
|
+
:TF: French Southern Territories
|
|
216
|
+
:TG: Togo
|
|
217
|
+
:TH: Thailand
|
|
218
|
+
:TJ: Tajikistan
|
|
219
|
+
:TK: Tokelau
|
|
220
|
+
:TL: East Timor
|
|
221
|
+
:TM: Turkmenistan
|
|
222
|
+
:TN: Tunisia
|
|
223
|
+
:TO: Tonga
|
|
224
|
+
:TR: Turkey
|
|
225
|
+
:TT: Trinidad and Tobago
|
|
226
|
+
:TV: Tuvalu
|
|
227
|
+
:TW: Taiwan
|
|
228
|
+
:TZ: Tanzania
|
|
229
|
+
:UA: Ukraine
|
|
230
|
+
:UG: Uganda
|
|
231
|
+
:UM: U.S. Minor Outlying Islands
|
|
232
|
+
:US: United States
|
|
233
|
+
:UY: Uruguay
|
|
234
|
+
:UZ: Uzbekistan
|
|
235
|
+
:VA: Vatican City
|
|
236
|
+
:VC: Saint Vincent and the Grenadines
|
|
237
|
+
:VE: Venezuela
|
|
238
|
+
:VG: British Virgin Islands
|
|
239
|
+
:VI: U.S. Virgin Islands
|
|
240
|
+
:VN: Vietnam
|
|
241
|
+
:VU: Vanuatu
|
|
242
|
+
:WF: Wallis and Futuna
|
|
243
|
+
:WS: Samoa
|
|
244
|
+
:XK: Kosovo
|
|
245
|
+
:YE: Yemen
|
|
246
|
+
:YT: Mayotte
|
|
247
|
+
:ZA: South Africa
|
|
248
|
+
:ZM: Zambia
|
|
249
|
+
:ZW: Zimbabwe
|
metadata
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cse
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Gaurav Deou
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.7'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.7'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rubyzip
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '1.1'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '1.1'
|
|
55
|
+
description: A simple gem for country, state and cities list
|
|
56
|
+
email:
|
|
57
|
+
- gauravdev720@gmail.com
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- ".gitignore"
|
|
63
|
+
- Gemfile
|
|
64
|
+
- LICENSE.txt
|
|
65
|
+
- README.md
|
|
66
|
+
- Rakefile
|
|
67
|
+
- cs.gemspec
|
|
68
|
+
- lib/cs.rb
|
|
69
|
+
- lib/db/GeoLite2-City-Locations-en.csv
|
|
70
|
+
- lib/db/countries.yml
|
|
71
|
+
- lib/db/states-replace.yml
|
|
72
|
+
homepage: https://github.com/garv720/cs
|
|
73
|
+
licenses:
|
|
74
|
+
- MIT
|
|
75
|
+
metadata: {}
|
|
76
|
+
post_install_message:
|
|
77
|
+
rdoc_options: []
|
|
78
|
+
require_paths:
|
|
79
|
+
- lib
|
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '0'
|
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
requirements: []
|
|
91
|
+
rubygems_version: 3.1.2
|
|
92
|
+
signing_key:
|
|
93
|
+
specification_version: 4
|
|
94
|
+
summary: Simple list of cities and states of the world with blank states.
|
|
95
|
+
test_files: []
|