tzinfo-data 1.2014.5 → 1.2014.6
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/tzinfo/data/definitions/Africa/Accra.rb +32 -0
- data/lib/tzinfo/data/definitions/Africa/Bamako.rb +1 -9
- data/lib/tzinfo/data/definitions/Africa/Banjul.rb +1 -10
- data/lib/tzinfo/data/definitions/Africa/Conakry.rb +1 -9
- data/lib/tzinfo/data/definitions/Africa/Dakar.rb +1 -8
- data/lib/tzinfo/data/definitions/Africa/Freetown.rb +1 -41
- data/lib/tzinfo/data/definitions/Africa/Lome.rb +1 -6
- data/lib/tzinfo/data/definitions/Africa/Nouakchott.rb +1 -9
- data/lib/tzinfo/data/definitions/Africa/Ouagadougou.rb +1 -6
- data/lib/tzinfo/data/definitions/Africa/Sao_Tome.rb +1 -8
- data/lib/tzinfo/data/definitions/Africa/Timbuktu.rb +1 -1
- data/lib/tzinfo/data/definitions/America/Metlakatla.rb +1 -2
- data/lib/tzinfo/data/definitions/Antarctica/Casey.rb +1 -1
- data/lib/tzinfo/data/definitions/Antarctica/Macquarie.rb +2 -2
- data/lib/tzinfo/data/definitions/Asia/Chita.rb +92 -0
- data/lib/tzinfo/data/definitions/Asia/Chongqing.rb +1 -21
- data/lib/tzinfo/data/definitions/Asia/Chungking.rb +1 -1
- data/lib/tzinfo/data/definitions/Asia/Harbin.rb +1 -25
- data/lib/tzinfo/data/definitions/Asia/Irkutsk.rb +5 -4
- data/lib/tzinfo/data/definitions/Asia/Jayapura.rb +1 -1
- data/lib/tzinfo/data/definitions/Asia/Kashgar.rb +1 -23
- data/lib/tzinfo/data/definitions/Asia/Khandyga.rb +1 -0
- data/lib/tzinfo/data/definitions/Asia/Krasnoyarsk.rb +1 -0
- data/lib/tzinfo/data/definitions/Asia/Magadan.rb +1 -0
- data/lib/tzinfo/data/definitions/Asia/Novokuznetsk.rb +1 -0
- data/lib/tzinfo/data/definitions/Asia/Novosibirsk.rb +1 -0
- data/lib/tzinfo/data/definitions/Asia/Omsk.rb +1 -0
- data/lib/tzinfo/data/definitions/Asia/Pyongyang.rb +8 -4
- data/lib/tzinfo/data/definitions/Asia/Riyadh.rb +1 -1
- data/lib/tzinfo/data/definitions/Asia/Sakhalin.rb +3 -2
- data/lib/tzinfo/data/definitions/Asia/Seoul.rb +16 -12
- data/lib/tzinfo/data/definitions/Asia/Shanghai.rb +2 -2
- data/lib/tzinfo/data/definitions/Asia/Srednekolymsk.rb +92 -0
- data/lib/tzinfo/data/definitions/Asia/Taipei.rb +44 -42
- data/lib/tzinfo/data/definitions/Asia/Tashkent.rb +2 -2
- data/lib/tzinfo/data/definitions/Asia/Tbilisi.rb +4 -4
- data/lib/tzinfo/data/definitions/Asia/Tokyo.rb +2 -2
- data/lib/tzinfo/data/definitions/Asia/Urumqi.rb +1 -16
- data/lib/tzinfo/data/definitions/Asia/Ust__m__Nera.rb +2 -0
- data/lib/tzinfo/data/definitions/Asia/Vladivostok.rb +3 -2
- data/lib/tzinfo/data/definitions/Asia/Yakutsk.rb +1 -0
- data/lib/tzinfo/data/definitions/Asia/Yekaterinburg.rb +3 -2
- data/lib/tzinfo/data/definitions/Atlantic/St_Helena.rb +1 -8
- data/lib/tzinfo/data/definitions/Australia/Adelaide.rb +3 -3
- data/lib/tzinfo/data/definitions/Australia/Brisbane.rb +2 -2
- data/lib/tzinfo/data/definitions/Australia/Broken_Hill.rb +4 -4
- data/lib/tzinfo/data/definitions/Australia/Currie.rb +2 -2
- data/lib/tzinfo/data/definitions/Australia/Darwin.rb +3 -3
- data/lib/tzinfo/data/definitions/Australia/Eucla.rb +2 -2
- data/lib/tzinfo/data/definitions/Australia/Hobart.rb +2 -2
- data/lib/tzinfo/data/definitions/Australia/Lindeman.rb +2 -2
- data/lib/tzinfo/data/definitions/Australia/Lord_Howe.rb +3 -3
- data/lib/tzinfo/data/definitions/Australia/Melbourne.rb +2 -2
- data/lib/tzinfo/data/definitions/Australia/Perth.rb +2 -2
- data/lib/tzinfo/data/definitions/Australia/Sydney.rb +2 -2
- data/lib/tzinfo/data/definitions/Europe/Budapest.rb +4 -6
- data/lib/tzinfo/data/definitions/Europe/Helsinki.rb +5 -5
- data/lib/tzinfo/data/definitions/Europe/Kaliningrad.rb +1 -0
- data/lib/tzinfo/data/definitions/Europe/Moscow.rb +14 -13
- data/lib/tzinfo/data/definitions/Europe/Riga.rb +9 -9
- data/lib/tzinfo/data/definitions/Europe/Samara.rb +26 -25
- data/lib/tzinfo/data/definitions/Europe/Simferopol.rb +1 -0
- data/lib/tzinfo/data/definitions/Europe/Volgograd.rb +43 -39
- data/lib/tzinfo/data/definitions/Pacific/Apia.rb +4 -4
- data/lib/tzinfo/data/definitions/Pacific/Chatham.rb +185 -183
- data/lib/tzinfo/data/definitions/Pacific/Pago_Pago.rb +5 -7
- data/lib/tzinfo/data/indexes/countries.rb +116 -116
- data/lib/tzinfo/data/indexes/timezones.rb +15 -13
- data/lib/tzinfo/data/tzdataparser.rb +44 -33
- data/lib/tzinfo/data/version.rb +1 -1
- metadata +4 -2
- metadata.gz.sig +0 -0
|
@@ -15,9 +15,9 @@ module TZInfo
|
|
|
15
15
|
timezone 'Africa/Algiers'
|
|
16
16
|
timezone 'Africa/Asmara'
|
|
17
17
|
linked_timezone 'Africa/Asmera'
|
|
18
|
-
|
|
18
|
+
linked_timezone 'Africa/Bamako'
|
|
19
19
|
timezone 'Africa/Bangui'
|
|
20
|
-
|
|
20
|
+
linked_timezone 'Africa/Banjul'
|
|
21
21
|
timezone 'Africa/Bissau'
|
|
22
22
|
timezone 'Africa/Blantyre'
|
|
23
23
|
timezone 'Africa/Brazzaville'
|
|
@@ -25,13 +25,13 @@ module TZInfo
|
|
|
25
25
|
timezone 'Africa/Cairo'
|
|
26
26
|
timezone 'Africa/Casablanca'
|
|
27
27
|
timezone 'Africa/Ceuta'
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
linked_timezone 'Africa/Conakry'
|
|
29
|
+
linked_timezone 'Africa/Dakar'
|
|
30
30
|
timezone 'Africa/Dar_es_Salaam'
|
|
31
31
|
timezone 'Africa/Djibouti'
|
|
32
32
|
timezone 'Africa/Douala'
|
|
33
33
|
timezone 'Africa/El_Aaiun'
|
|
34
|
-
|
|
34
|
+
linked_timezone 'Africa/Freetown'
|
|
35
35
|
timezone 'Africa/Gaborone'
|
|
36
36
|
timezone 'Africa/Harare'
|
|
37
37
|
timezone 'Africa/Johannesburg'
|
|
@@ -42,7 +42,7 @@ module TZInfo
|
|
|
42
42
|
timezone 'Africa/Kinshasa'
|
|
43
43
|
timezone 'Africa/Lagos'
|
|
44
44
|
timezone 'Africa/Libreville'
|
|
45
|
-
|
|
45
|
+
linked_timezone 'Africa/Lome'
|
|
46
46
|
timezone 'Africa/Luanda'
|
|
47
47
|
timezone 'Africa/Lubumbashi'
|
|
48
48
|
timezone 'Africa/Lusaka'
|
|
@@ -55,10 +55,10 @@ module TZInfo
|
|
|
55
55
|
timezone 'Africa/Nairobi'
|
|
56
56
|
timezone 'Africa/Ndjamena'
|
|
57
57
|
timezone 'Africa/Niamey'
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
linked_timezone 'Africa/Nouakchott'
|
|
59
|
+
linked_timezone 'Africa/Ouagadougou'
|
|
60
60
|
timezone 'Africa/Porto-Novo'
|
|
61
|
-
|
|
61
|
+
linked_timezone 'Africa/Sao_Tome'
|
|
62
62
|
linked_timezone 'Africa/Timbuktu'
|
|
63
63
|
timezone 'Africa/Tripoli'
|
|
64
64
|
timezone 'Africa/Tunis'
|
|
@@ -256,8 +256,9 @@ module TZInfo
|
|
|
256
256
|
timezone 'Asia/Bishkek'
|
|
257
257
|
timezone 'Asia/Brunei'
|
|
258
258
|
linked_timezone 'Asia/Calcutta'
|
|
259
|
+
timezone 'Asia/Chita'
|
|
259
260
|
timezone 'Asia/Choibalsan'
|
|
260
|
-
|
|
261
|
+
linked_timezone 'Asia/Chongqing'
|
|
261
262
|
linked_timezone 'Asia/Chungking'
|
|
262
263
|
timezone 'Asia/Colombo'
|
|
263
264
|
linked_timezone 'Asia/Dacca'
|
|
@@ -267,7 +268,7 @@ module TZInfo
|
|
|
267
268
|
timezone 'Asia/Dubai'
|
|
268
269
|
timezone 'Asia/Dushanbe'
|
|
269
270
|
timezone 'Asia/Gaza'
|
|
270
|
-
|
|
271
|
+
linked_timezone 'Asia/Harbin'
|
|
271
272
|
timezone 'Asia/Hebron'
|
|
272
273
|
timezone 'Asia/Ho_Chi_Minh'
|
|
273
274
|
timezone 'Asia/Hong_Kong'
|
|
@@ -280,7 +281,7 @@ module TZInfo
|
|
|
280
281
|
timezone 'Asia/Kabul'
|
|
281
282
|
timezone 'Asia/Kamchatka'
|
|
282
283
|
timezone 'Asia/Karachi'
|
|
283
|
-
|
|
284
|
+
linked_timezone 'Asia/Kashgar'
|
|
284
285
|
timezone 'Asia/Kathmandu'
|
|
285
286
|
linked_timezone 'Asia/Katmandu'
|
|
286
287
|
timezone 'Asia/Khandyga'
|
|
@@ -313,6 +314,7 @@ module TZInfo
|
|
|
313
314
|
timezone 'Asia/Seoul'
|
|
314
315
|
timezone 'Asia/Shanghai'
|
|
315
316
|
timezone 'Asia/Singapore'
|
|
317
|
+
timezone 'Asia/Srednekolymsk'
|
|
316
318
|
timezone 'Asia/Taipei'
|
|
317
319
|
timezone 'Asia/Tashkent'
|
|
318
320
|
timezone 'Asia/Tbilisi'
|
|
@@ -341,7 +343,7 @@ module TZInfo
|
|
|
341
343
|
timezone 'Atlantic/Madeira'
|
|
342
344
|
timezone 'Atlantic/Reykjavik'
|
|
343
345
|
timezone 'Atlantic/South_Georgia'
|
|
344
|
-
|
|
346
|
+
linked_timezone 'Atlantic/St_Helena'
|
|
345
347
|
timezone 'Atlantic/Stanley'
|
|
346
348
|
linked_timezone 'Australia/ACT'
|
|
347
349
|
timezone 'Australia/Adelaide'
|
|
@@ -8,21 +8,16 @@ module TZInfo
|
|
|
8
8
|
#
|
|
9
9
|
# @private
|
|
10
10
|
module TZDataParserUtils #:nodoc:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
rescue NameError
|
|
16
|
-
SUPPORTS_ENCODING = false
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
if SUPPORTS_ENCODING
|
|
11
|
+
# Wrapper for File.open that supports passing hash options for specifying
|
|
12
|
+
# encodings on Ruby 1.9+. The options are ignored on earlier versions of
|
|
13
|
+
# Ruby.
|
|
14
|
+
if RUBY_VERSION =~ /\A1\.[0-8]\./
|
|
20
15
|
def open_file(file_name, mode, opts, &block)
|
|
21
|
-
File.open(file_name, mode,
|
|
16
|
+
File.open(file_name, mode, &block)
|
|
22
17
|
end
|
|
23
18
|
else
|
|
24
19
|
def open_file(file_name, mode, opts, &block)
|
|
25
|
-
File.open(file_name, mode, &block)
|
|
20
|
+
File.open(file_name, mode, opts, &block)
|
|
26
21
|
end
|
|
27
22
|
end
|
|
28
23
|
|
|
@@ -283,13 +278,13 @@ module TZInfo
|
|
|
283
278
|
end
|
|
284
279
|
end
|
|
285
280
|
|
|
286
|
-
# Loads countries from iso3166.tab and
|
|
287
|
-
# the countries instance variable.
|
|
281
|
+
# Loads countries from iso3166.tab and zone1970.tab and stores the
|
|
282
|
+
# result in the countries instance variable.
|
|
288
283
|
def load_countries
|
|
289
284
|
puts 'load_countries'
|
|
290
285
|
|
|
291
|
-
#
|
|
292
|
-
# in the future.
|
|
286
|
+
# iso3166.tab is ASCII encoded, but is planned to change to UTF-8 (a
|
|
287
|
+
# superset of ASCII) in the future.
|
|
293
288
|
open_file(File.join(@input_dir, 'iso3166.tab'), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
|
|
294
289
|
file.each_line do |line|
|
|
295
290
|
|
|
@@ -301,21 +296,20 @@ module TZInfo
|
|
|
301
296
|
end
|
|
302
297
|
end
|
|
303
298
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
299
|
+
primary_zones = {}
|
|
300
|
+
secondary_zones = {}
|
|
301
|
+
|
|
302
|
+
# zone1970.tab is UTF-8 encoded.
|
|
303
|
+
open_file(File.join(@input_dir, 'zone1970.tab'), 'r', :external_encoding => 'UTF-8', :internal_encoding => 'UTF-8') do |file|
|
|
307
304
|
file.each_line do |line|
|
|
308
305
|
|
|
309
306
|
line.chomp!
|
|
310
307
|
|
|
311
|
-
if line =~ /^([A-Z]{2})\t([^\t]+)\t([^\t]+)(\t(.*))?$/
|
|
312
|
-
|
|
308
|
+
if line =~ /^([A-Z]{2}(?:,[A-Z]{2})*)\t([^\t]+)\t([^\t]+)(\t(.*))?$/
|
|
309
|
+
codes = $1
|
|
313
310
|
location_str = $2
|
|
314
311
|
zone_name = $3
|
|
315
312
|
description = $5
|
|
316
|
-
|
|
317
|
-
country = @countries[code]
|
|
318
|
-
raise "Country not found: #{code}" if country.nil?
|
|
319
313
|
|
|
320
314
|
location = TZDataLocation.new(location_str)
|
|
321
315
|
|
|
@@ -324,7 +318,26 @@ module TZInfo
|
|
|
324
318
|
|
|
325
319
|
description = nil if description == ''
|
|
326
320
|
|
|
327
|
-
|
|
321
|
+
country_timezone = TZDataCountryTimezone.new(zone, description, location)
|
|
322
|
+
|
|
323
|
+
codes = codes.split(',')
|
|
324
|
+
|
|
325
|
+
(primary_zones[codes.first] ||= []) << country_timezone
|
|
326
|
+
|
|
327
|
+
codes[1..-1].each do |code|
|
|
328
|
+
(secondary_zones[code] ||= []) << country_timezone
|
|
329
|
+
end
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
[primary_zones, secondary_zones].each do |zones|
|
|
335
|
+
zones.each_pair do |code, country_timezones|
|
|
336
|
+
country = @countries[code]
|
|
337
|
+
raise "Country not found: #{code}" if country.nil?
|
|
338
|
+
|
|
339
|
+
country_timezones.each do |country_timezone|
|
|
340
|
+
country.add_zone(country_timezone)
|
|
328
341
|
end
|
|
329
342
|
end
|
|
330
343
|
end
|
|
@@ -563,19 +576,17 @@ module TZInfo
|
|
|
563
576
|
FileUtils.mkdir_p(dir)
|
|
564
577
|
|
|
565
578
|
open_file(File.join(output_dir, 'definitions', @name_elements.join(File::SEPARATOR)) + '.rb', 'w', :external_encoding => 'UTF-8', :universal_newline => true) do |file|
|
|
579
|
+
|
|
580
|
+
file.instance_variable_set(:@tz_indent, 0)
|
|
566
581
|
|
|
567
582
|
def file.indent(by)
|
|
568
|
-
|
|
569
|
-
@tz_indent += by
|
|
570
|
-
else
|
|
571
|
-
@tz_indent = by
|
|
572
|
-
end
|
|
583
|
+
@tz_indent += by
|
|
573
584
|
end
|
|
574
585
|
|
|
575
586
|
def file.puts(s)
|
|
576
|
-
super("#{' ' *
|
|
587
|
+
super("#{' ' * @tz_indent}#{s}")
|
|
577
588
|
end
|
|
578
|
-
|
|
589
|
+
|
|
579
590
|
file.puts('# encoding: UTF-8')
|
|
580
591
|
file.puts('')
|
|
581
592
|
file.puts('# This file contains data derived from the IANA Time Zone Database')
|
|
@@ -1072,7 +1083,7 @@ module TZInfo
|
|
|
1072
1083
|
attr_reader :operator
|
|
1073
1084
|
|
|
1074
1085
|
def initialize(spec)
|
|
1075
|
-
raise "Invalid on: #{spec}" if spec !~ /^([0-9]+)|(last([A-z]+))|(([A-z]+)([<>]=)([0-9]+))$/
|
|
1086
|
+
raise "Invalid on: #{spec}" if spec !~ /^([0-9]+)|(last([A-Za-z]+))|(([A-Za-z]+)([<>]=)([0-9]+))$/
|
|
1076
1087
|
|
|
1077
1088
|
if $1
|
|
1078
1089
|
@type = :absolute
|
|
@@ -1181,7 +1192,7 @@ module TZInfo
|
|
|
1181
1192
|
# @private
|
|
1182
1193
|
class TZDataFormat #:nodoc:
|
|
1183
1194
|
def initialize(spec)
|
|
1184
|
-
if spec =~ /([A-
|
|
1195
|
+
if spec =~ /([A-Z]+)\/([A-Z]+)/i
|
|
1185
1196
|
@type = :alternate
|
|
1186
1197
|
@standard_abbrev = $1
|
|
1187
1198
|
@daylight_abbrev = $2
|
data/lib/tzinfo/data/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tzinfo-data
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2014.
|
|
4
|
+
version: 1.2014.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Ross
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
fs7XSYlwQp0zY7PFSMwJeBpQFDBnShcweRQ+0QdUUS4FHrwfXex0QsXp9UROUX+4
|
|
31
31
|
6BVw9ZDNFnDH4PQjZGbdwanB7kzm+TEi
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2014-
|
|
33
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: tzinfo
|
|
@@ -306,6 +306,7 @@ files:
|
|
|
306
306
|
- lib/tzinfo/data/definitions/Asia/Bishkek.rb
|
|
307
307
|
- lib/tzinfo/data/definitions/Asia/Brunei.rb
|
|
308
308
|
- lib/tzinfo/data/definitions/Asia/Calcutta.rb
|
|
309
|
+
- lib/tzinfo/data/definitions/Asia/Chita.rb
|
|
309
310
|
- lib/tzinfo/data/definitions/Asia/Choibalsan.rb
|
|
310
311
|
- lib/tzinfo/data/definitions/Asia/Chongqing.rb
|
|
311
312
|
- lib/tzinfo/data/definitions/Asia/Chungking.rb
|
|
@@ -363,6 +364,7 @@ files:
|
|
|
363
364
|
- lib/tzinfo/data/definitions/Asia/Seoul.rb
|
|
364
365
|
- lib/tzinfo/data/definitions/Asia/Shanghai.rb
|
|
365
366
|
- lib/tzinfo/data/definitions/Asia/Singapore.rb
|
|
367
|
+
- lib/tzinfo/data/definitions/Asia/Srednekolymsk.rb
|
|
366
368
|
- lib/tzinfo/data/definitions/Asia/Taipei.rb
|
|
367
369
|
- lib/tzinfo/data/definitions/Asia/Tashkent.rb
|
|
368
370
|
- lib/tzinfo/data/definitions/Asia/Tbilisi.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|