timezone_finder 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,420 @@
1
+ module TimezoneFinder
2
+ TIMEZONE_NAMES = [
3
+ 'Africa/Abidjan',
4
+ 'Africa/Accra',
5
+ 'Africa/Addis_Ababa',
6
+ 'Africa/Algiers',
7
+ 'Africa/Asmara',
8
+ 'Africa/Bamako',
9
+ 'Africa/Bangui',
10
+ 'Africa/Banjul',
11
+ 'Africa/Bissau',
12
+ 'Africa/Blantyre',
13
+ 'Africa/Brazzaville',
14
+ 'Africa/Bujumbura',
15
+ 'Africa/Cairo',
16
+ 'Africa/Casablanca',
17
+ 'Africa/Ceuta',
18
+ 'Africa/Conakry',
19
+ 'Africa/Dakar',
20
+ 'Africa/Dar_es_Salaam',
21
+ 'Africa/Djibouti',
22
+ 'Africa/Douala',
23
+ 'Africa/El_Aaiun',
24
+ 'Africa/Freetown',
25
+ 'Africa/Gaborone',
26
+ 'Africa/Harare',
27
+ 'Africa/Johannesburg',
28
+ 'Africa/Juba',
29
+ 'Africa/Kampala',
30
+ 'Africa/Khartoum',
31
+ 'Africa/Kigali',
32
+ 'Africa/Kinshasa',
33
+ 'Africa/Lagos',
34
+ 'Africa/Libreville',
35
+ 'Africa/Lome',
36
+ 'Africa/Luanda',
37
+ 'Africa/Lubumbashi',
38
+ 'Africa/Lusaka',
39
+ 'Africa/Malabo',
40
+ 'Africa/Maputo',
41
+ 'Africa/Maseru',
42
+ 'Africa/Mbabane',
43
+ 'Africa/Mogadishu',
44
+ 'Africa/Monrovia',
45
+ 'Africa/Nairobi',
46
+ 'Africa/Ndjamena',
47
+ 'Africa/Niamey',
48
+ 'Africa/Nouakchott',
49
+ 'Africa/Ouagadougou',
50
+ 'Africa/Porto-Novo',
51
+ 'Africa/Sao_Tome',
52
+ 'Africa/Tripoli',
53
+ 'Africa/Tunis',
54
+ 'Africa/Windhoek',
55
+ 'America/Adak',
56
+ 'America/Anchorage',
57
+ 'America/Anguilla',
58
+ 'America/Antigua',
59
+ 'America/Araguaina',
60
+ 'America/Argentina/Buenos_Aires',
61
+ 'America/Argentina/Catamarca',
62
+ 'America/Argentina/Cordoba',
63
+ 'America/Argentina/Jujuy',
64
+ 'America/Argentina/La_Rioja',
65
+ 'America/Argentina/Mendoza',
66
+ 'America/Argentina/Rio_Gallegos',
67
+ 'America/Argentina/Salta',
68
+ 'America/Argentina/San_Juan',
69
+ 'America/Argentina/San_Luis',
70
+ 'America/Argentina/Tucuman',
71
+ 'America/Argentina/Ushuaia',
72
+ 'America/Aruba',
73
+ 'America/Asuncion',
74
+ 'America/Atikokan',
75
+ 'America/Bahia',
76
+ 'America/Bahia_Banderas',
77
+ 'America/Barbados',
78
+ 'America/Belem',
79
+ 'America/Belize',
80
+ 'America/Blanc-Sablon',
81
+ 'America/Boa_Vista',
82
+ 'America/Bogota',
83
+ 'America/Boise',
84
+ 'America/Cambridge_Bay',
85
+ 'America/Campo_Grande',
86
+ 'America/Cancun',
87
+ 'America/Caracas',
88
+ 'America/Cayenne',
89
+ 'America/Cayman',
90
+ 'America/Chicago',
91
+ 'America/Chihuahua',
92
+ 'America/Coral_Harbour',
93
+ 'America/Costa_Rica',
94
+ 'America/Creston',
95
+ 'America/Cuiaba',
96
+ 'America/Curacao',
97
+ 'America/Danmarkshavn',
98
+ 'America/Dawson',
99
+ 'America/Dawson_Creek',
100
+ 'America/Denver',
101
+ 'America/Detroit',
102
+ 'America/Dominica',
103
+ 'America/Edmonton',
104
+ 'America/Eirunepe',
105
+ 'America/El_Salvador',
106
+ 'America/Fort_Nelson',
107
+ 'America/Fortaleza',
108
+ 'America/Glace_Bay',
109
+ 'America/Godthab',
110
+ 'America/Goose_Bay',
111
+ 'America/Grand_Turk',
112
+ 'America/Grenada',
113
+ 'America/Guadeloupe',
114
+ 'America/Guatemala',
115
+ 'America/Guayaquil',
116
+ 'America/Guyana',
117
+ 'America/Halifax',
118
+ 'America/Havana',
119
+ 'America/Hermosillo',
120
+ 'America/Indiana/Indianapolis',
121
+ 'America/Indiana/Knox',
122
+ 'America/Indiana/Marengo',
123
+ 'America/Indiana/Petersburg',
124
+ 'America/Indiana/Tell_City',
125
+ 'America/Indiana/Vevay',
126
+ 'America/Indiana/Vincennes',
127
+ 'America/Indiana/Winamac',
128
+ 'America/Inuvik',
129
+ 'America/Iqaluit',
130
+ 'America/Jamaica',
131
+ 'America/Juneau',
132
+ 'America/Kentucky/Louisville',
133
+ 'America/Kentucky/Monticello',
134
+ 'America/Kralendijk',
135
+ 'America/La_Paz',
136
+ 'America/Lima',
137
+ 'America/Los_Angeles',
138
+ 'America/Lower_Princes',
139
+ 'America/Maceio',
140
+ 'America/Managua',
141
+ 'America/Manaus',
142
+ 'America/Marigot',
143
+ 'America/Martinique',
144
+ 'America/Matamoros',
145
+ 'America/Mazatlan',
146
+ 'America/Menominee',
147
+ 'America/Merida',
148
+ 'America/Metlakatla',
149
+ 'America/Mexico_City',
150
+ 'America/Miquelon',
151
+ 'America/Moncton',
152
+ 'America/Monterrey',
153
+ 'America/Montevideo',
154
+ 'America/Montreal',
155
+ 'America/Montserrat',
156
+ 'America/Nassau',
157
+ 'America/New_York',
158
+ 'America/Nipigon',
159
+ 'America/Nome',
160
+ 'America/Noronha',
161
+ 'America/North_Dakota/Beulah',
162
+ 'America/North_Dakota/Center',
163
+ 'America/North_Dakota/New_Salem',
164
+ 'America/Ojinaga',
165
+ 'America/Panama',
166
+ 'America/Pangnirtung',
167
+ 'America/Paramaribo',
168
+ 'America/Phoenix',
169
+ 'America/Port-au-Prince',
170
+ 'America/Port_of_Spain',
171
+ 'America/Porto_Velho',
172
+ 'America/Puerto_Rico',
173
+ 'America/Rainy_River',
174
+ 'America/Rankin_Inlet',
175
+ 'America/Recife',
176
+ 'America/Regina',
177
+ 'America/Resolute',
178
+ 'America/Rio_Branco',
179
+ 'America/Santarem',
180
+ 'America/Santiago',
181
+ 'America/Santo_Domingo',
182
+ 'America/Sao_Paulo',
183
+ 'America/Scoresbysund',
184
+ 'America/Sitka',
185
+ 'America/St_Barthelemy',
186
+ 'America/St_Johns',
187
+ 'America/St_Kitts',
188
+ 'America/St_Lucia',
189
+ 'America/St_Thomas',
190
+ 'America/St_Vincent',
191
+ 'America/Swift_Current',
192
+ 'America/Tegucigalpa',
193
+ 'America/Thule',
194
+ 'America/Thunder_Bay',
195
+ 'America/Tijuana',
196
+ 'America/Toronto',
197
+ 'America/Tortola',
198
+ 'America/Vancouver',
199
+ 'America/Whitehorse',
200
+ 'America/Winnipeg',
201
+ 'America/Yakutat',
202
+ 'America/Yellowknife',
203
+ 'Antarctica/Macquarie',
204
+ 'Arctic/Longyearbyen',
205
+ 'Asia/Aden',
206
+ 'Asia/Almaty',
207
+ 'Asia/Amman',
208
+ 'Asia/Anadyr',
209
+ 'Asia/Aqtau',
210
+ 'Asia/Aqtobe',
211
+ 'Asia/Ashgabat',
212
+ 'Asia/Baghdad',
213
+ 'Asia/Bahrain',
214
+ 'Asia/Baku',
215
+ 'Asia/Bangkok',
216
+ 'Asia/Barnaul',
217
+ 'Asia/Beirut',
218
+ 'Asia/Bishkek',
219
+ 'Asia/Brunei',
220
+ 'Asia/Chita',
221
+ 'Asia/Choibalsan',
222
+ 'Asia/Chongqing',
223
+ 'Asia/Colombo',
224
+ 'Asia/Damascus',
225
+ 'Asia/Dhaka',
226
+ 'Asia/Dili',
227
+ 'Asia/Dubai',
228
+ 'Asia/Dushanbe',
229
+ 'Asia/Gaza',
230
+ 'Asia/Harbin',
231
+ 'Asia/Hebron',
232
+ 'Asia/Ho_Chi_Minh',
233
+ 'Asia/Hong_Kong',
234
+ 'Asia/Hovd',
235
+ 'Asia/Irkutsk',
236
+ 'Asia/Jakarta',
237
+ 'Asia/Jayapura',
238
+ 'Asia/Jerusalem',
239
+ 'Asia/Kabul',
240
+ 'Asia/Kamchatka',
241
+ 'Asia/Karachi',
242
+ 'Asia/Kashgar',
243
+ 'Asia/Kathmandu',
244
+ 'Asia/Khandyga',
245
+ 'Asia/Kolkata',
246
+ 'Asia/Krasnoyarsk',
247
+ 'Asia/Kuala_Lumpur',
248
+ 'Asia/Kuching',
249
+ 'Asia/Kuwait',
250
+ 'Asia/Macau',
251
+ 'Asia/Magadan',
252
+ 'Asia/Makassar',
253
+ 'Asia/Manila',
254
+ 'Asia/Muscat',
255
+ 'Asia/Nicosia',
256
+ 'Asia/Novokuznetsk',
257
+ 'Asia/Novosibirsk',
258
+ 'Asia/Omsk',
259
+ 'Asia/Oral',
260
+ 'Asia/Phnom_Penh',
261
+ 'Asia/Pontianak',
262
+ 'Asia/Pyongyang',
263
+ 'Asia/Qatar',
264
+ 'Asia/Qyzylorda',
265
+ 'Asia/Rangoon',
266
+ 'Asia/Riyadh',
267
+ 'Asia/Sakhalin',
268
+ 'Asia/Samarkand',
269
+ 'Asia/Seoul',
270
+ 'Asia/Shanghai',
271
+ 'Asia/Singapore',
272
+ 'Asia/Srednekolymsk',
273
+ 'Asia/Taipei',
274
+ 'Asia/Tashkent',
275
+ 'Asia/Tbilisi',
276
+ 'Asia/Tehran',
277
+ 'Asia/Thimphu',
278
+ 'Asia/Tokyo',
279
+ 'Asia/Ulaanbaatar',
280
+ 'Asia/Urumqi',
281
+ 'Asia/Ust-Nera',
282
+ 'Asia/Vientiane',
283
+ 'Asia/Vladivostok',
284
+ 'Asia/Yakutsk',
285
+ 'Asia/Yekaterinburg',
286
+ 'Asia/Yerevan',
287
+ 'Atlantic/Azores',
288
+ 'Atlantic/Bermuda',
289
+ 'Atlantic/Canary',
290
+ 'Atlantic/Cape_Verde',
291
+ 'Atlantic/Faroe',
292
+ 'Atlantic/Madeira',
293
+ 'Atlantic/Reykjavik',
294
+ 'Atlantic/South_Georgia',
295
+ 'Atlantic/St_Helena',
296
+ 'Atlantic/Stanley',
297
+ 'Australia/Adelaide',
298
+ 'Australia/Brisbane',
299
+ 'Australia/Broken_Hill',
300
+ 'Australia/Currie',
301
+ 'Australia/Darwin',
302
+ 'Australia/Eucla',
303
+ 'Australia/Hobart',
304
+ 'Australia/Lindeman',
305
+ 'Australia/Lord_Howe',
306
+ 'Australia/Melbourne',
307
+ 'Australia/Perth',
308
+ 'Australia/Sydney',
309
+ 'Europe/Amsterdam',
310
+ 'Europe/Andorra',
311
+ 'Europe/Astrakhan',
312
+ 'Europe/Athens',
313
+ 'Europe/Belgrade',
314
+ 'Europe/Berlin',
315
+ 'Europe/Bratislava',
316
+ 'Europe/Brussels',
317
+ 'Europe/Bucharest',
318
+ 'Europe/Budapest',
319
+ 'Europe/Busingen',
320
+ 'Europe/Chisinau',
321
+ 'Europe/Copenhagen',
322
+ 'Europe/Dublin',
323
+ 'Europe/Gibraltar',
324
+ 'Europe/Guernsey',
325
+ 'Europe/Helsinki',
326
+ 'Europe/Isle_of_Man',
327
+ 'Europe/Istanbul',
328
+ 'Europe/Jersey',
329
+ 'Europe/Kaliningrad',
330
+ 'Europe/Kiev',
331
+ 'Europe/Lisbon',
332
+ 'Europe/Ljubljana',
333
+ 'Europe/London',
334
+ 'Europe/Luxembourg',
335
+ 'Europe/Madrid',
336
+ 'Europe/Malta',
337
+ 'Europe/Mariehamn',
338
+ 'Europe/Minsk',
339
+ 'Europe/Monaco',
340
+ 'Europe/Moscow',
341
+ 'Europe/Oslo',
342
+ 'Europe/Paris',
343
+ 'Europe/Podgorica',
344
+ 'Europe/Prague',
345
+ 'Europe/Riga',
346
+ 'Europe/Rome',
347
+ 'Europe/Samara',
348
+ 'Europe/San_Marino',
349
+ 'Europe/Sarajevo',
350
+ 'Europe/Simferopol',
351
+ 'Europe/Skopje',
352
+ 'Europe/Sofia',
353
+ 'Europe/Stockholm',
354
+ 'Europe/Tallinn',
355
+ 'Europe/Tirane',
356
+ 'Europe/Ulyanovsk',
357
+ 'Europe/Uzhgorod',
358
+ 'Europe/Vaduz',
359
+ 'Europe/Vatican',
360
+ 'Europe/Vienna',
361
+ 'Europe/Vilnius',
362
+ 'Europe/Volgograd',
363
+ 'Europe/Warsaw',
364
+ 'Europe/Zagreb',
365
+ 'Europe/Zaporozhye',
366
+ 'Europe/Zurich',
367
+ 'Indian/Antananarivo',
368
+ 'Indian/Chagos',
369
+ 'Indian/Christmas',
370
+ 'Indian/Cocos',
371
+ 'Indian/Comoro',
372
+ 'Indian/Kerguelen',
373
+ 'Indian/Mahe',
374
+ 'Indian/Maldives',
375
+ 'Indian/Mauritius',
376
+ 'Indian/Mayotte',
377
+ 'Indian/Reunion',
378
+ 'Pacific/Apia',
379
+ 'Pacific/Auckland',
380
+ 'Pacific/Bougainville',
381
+ 'Pacific/Chatham',
382
+ 'Pacific/Chuuk',
383
+ 'Pacific/Easter',
384
+ 'Pacific/Efate',
385
+ 'Pacific/Enderbury',
386
+ 'Pacific/Fakaofo',
387
+ 'Pacific/Fiji',
388
+ 'Pacific/Funafuti',
389
+ 'Pacific/Galapagos',
390
+ 'Pacific/Gambier',
391
+ 'Pacific/Guadalcanal',
392
+ 'Pacific/Guam',
393
+ 'Pacific/Honolulu',
394
+ 'Pacific/Johnston',
395
+ 'Pacific/Kiritimati',
396
+ 'Pacific/Kosrae',
397
+ 'Pacific/Kwajalein',
398
+ 'Pacific/Majuro',
399
+ 'Pacific/Marquesas',
400
+ 'Pacific/Midway',
401
+ 'Pacific/Nauru',
402
+ 'Pacific/Niue',
403
+ 'Pacific/Norfolk',
404
+ 'Pacific/Noumea',
405
+ 'Pacific/Pago_Pago',
406
+ 'Pacific/Palau',
407
+ 'Pacific/Pitcairn',
408
+ 'Pacific/Pohnpei',
409
+ 'Pacific/Port_Moresby',
410
+ 'Pacific/Rarotonga',
411
+ 'Pacific/Saipan',
412
+ 'Pacific/Tahiti',
413
+ 'Pacific/Tarawa',
414
+ 'Pacific/Tongatapu',
415
+ 'Pacific/Wake',
416
+ 'Pacific/Wallis',
417
+ 'Pacific/Yap',
418
+ 'uninhabited'
419
+ ].freeze
420
+ end
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'timezone_finder/gem_version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'timezone_finder'
8
+ spec.version = TimezoneFinder::VERSION
9
+ spec.authors = ['Tasuku SUENAGA a.k.a. gunyarakun']
10
+ spec.email = ['tasuku-s-github@titech.ac']
11
+
12
+ spec.summary = 'Look up timezone from lat / long offline.'
13
+ spec.description = %(
14
+ Python library to look up timezone from lat / long offline.
15
+ Ported version of 'timezonefinder' on PyPI.
16
+ ).strip.gsub(/\s+/, ' ')
17
+ spec.homepage = 'https://github.com/gunyarakun/timezone_finder'
18
+ spec.license = 'MIT'
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
21
+ f.match(%r{^test/})
22
+ end
23
+ spec.require_paths = ['lib']
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.11'
26
+ spec.add_development_dependency 'rake', '~> 10.0'
27
+ spec.add_development_dependency 'minitest', '~> 5.0'
28
+ spec.add_development_dependency 'simplecov', '~> 0.11'
29
+ spec.add_development_dependency 'rubocop', '~> 0.40'
30
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: timezone_finder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Tasuku SUENAGA a.k.a. gunyarakun
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-26 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.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
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: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.11'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.11'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.40'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.40'
83
+ description: Python library to look up timezone from lat / long offline. Ported version
84
+ of 'timezonefinder' on PyPI.
85
+ email:
86
+ - tasuku-s-github@titech.ac
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".editorconfig"
92
+ - ".gitignore"
93
+ - ".rubocop.yml"
94
+ - ".rubocop_todo.yml"
95
+ - ".travis.yml"
96
+ - Gemfile
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - lib/timezone_finder.rb
101
+ - lib/timezone_finder/file_converter.rb
102
+ - lib/timezone_finder/gem_version.rb
103
+ - lib/timezone_finder/helpers.rb
104
+ - lib/timezone_finder/timezone_data.bin
105
+ - lib/timezone_finder/timezone_finder.rb
106
+ - lib/timezone_finder/timezone_names.rb
107
+ - timezone_finder.gemspec
108
+ homepage: https://github.com/gunyarakun/timezone_finder
109
+ licenses:
110
+ - MIT
111
+ metadata: {}
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ requirements: []
127
+ rubyforge_project:
128
+ rubygems_version: 2.4.5
129
+ signing_key:
130
+ specification_version: 4
131
+ summary: Look up timezone from lat / long offline.
132
+ test_files: []