tzinfo 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of tzinfo might be problematic. Click here for more details.

@@ -48,7 +48,7 @@ module TZInfo
48
48
  c.timezone 'America/Argentina/Buenos_Aires', -173, 5, -1169, 20, 'Buenos Aires (BA, CF)'
49
49
  c.timezone 'America/Argentina/Cordoba', -157, 5, -3851, 60, 'most locations (CB, CC, CN, ER, FM, LP, MN, NQ, RN, SA, SE, SF, SL)'
50
50
  c.timezone 'America/Argentina/Jujuy', -1451, 60, -653, 10, 'Jujuy (JY)'
51
- c.timezone 'America/Argentina/Tucuman', -157, 5, -3851, 60, 'Tucuman (TM)'
51
+ c.timezone 'America/Argentina/Tucuman', -1609, 60, -3913, 60, 'Tucuman (TM)'
52
52
  c.timezone 'America/Argentina/Catamarca', -427, 15, -3947, 60, 'Catamarca (CT), Chubut (CH)'
53
53
  c.timezone 'America/Argentina/La_Rioja', -883, 30, -1337, 20, 'La Rioja (LR)'
54
54
  c.timezone 'America/Argentina/San_Juan', -473, 15, -4111, 60, 'San Juan (SJ)'
@@ -154,27 +154,28 @@ module TZInfo
154
154
  c.timezone 'America/Belize', 35, 2, -441, 5
155
155
  end
156
156
  country 'CA', 'Canada' do |c|
157
- c.timezone 'America/St_Johns', 1427, 30, -3163, 60, 'Newfoundland Island'
158
- c.timezone 'America/Halifax', 893, 20, -318, 5, 'Atlantic Time - Nova Scotia (most places), W Labrador, E Quebec & PEI'
157
+ c.timezone 'America/St_Johns', 1427, 30, -3163, 60, 'Newfoundland Time, including SE Labrador'
158
+ c.timezone 'America/Halifax', 893, 20, -318, 5, 'Atlantic Time - Nova Scotia (most places), PEI'
159
159
  c.timezone 'America/Glace_Bay', 231, 5, -1199, 20, 'Atlantic Time - Nova Scotia - places that did not observe DST 1966-1971'
160
160
  c.timezone 'America/Moncton', 461, 10, -3887, 60, 'Atlantic Time - New Brunswick'
161
- c.timezone 'America/Goose_Bay', 160, 3, -725, 12, 'Atlantic Time - E Labrador'
161
+ c.timezone 'America/Goose_Bay', 160, 3, -725, 12, 'Atlantic Time - Labrador - most locations'
162
+ c.timezone 'America/Blanc-Sablon', 617, 12, -3427, 60, 'Atlantic Standard Time - Quebec - Lower North Shore'
162
163
  c.timezone 'America/Montreal', 2731, 60, -2207, 30, 'Eastern Time - Quebec - most locations'
163
164
  c.timezone 'America/Toronto', 873, 20, -4763, 60, 'Eastern Time - Ontario - most locations'
164
165
  c.timezone 'America/Nipigon', 2941, 60, -1324, 15, 'Eastern Time - Ontario & Quebec - places that did not observe DST 1967-1973'
165
166
  c.timezone 'America/Thunder_Bay', 2903, 60, -357, 4, 'Eastern Time - Thunder Bay, Ontario'
166
167
  c.timezone 'America/Pangnirtung', 992, 15, -986, 15, 'Eastern Time - Pangnirtung, Nunavut'
167
168
  c.timezone 'America/Iqaluit', 956, 15, -1027, 15, 'Eastern Time - east Nunavut'
168
- c.timezone 'America/Coral_Harbour', 962, 15, -499, 6, 'Eastern Standard Time - Southampton Island'
169
- c.timezone 'America/Rankin_Inlet', 251, 4, -553, 6, 'Central Time - central Nunavut'
169
+ c.timezone 'America/Atikokan', 175531, 3600, -54973, 600, 'Eastern Standard Time - Atikokan, Ontario and Southampton I, Nunavut'
170
+ c.timezone 'America/Rankin_Inlet', 3769, 60, -331499, 3600, 'Central Time - central Nunavut'
170
171
  c.timezone 'America/Winnipeg', 2993, 60, -1943, 20, 'Central Time - Manitoba & west Ontario'
171
- c.timezone 'America/Rainy_River', 2923, 60, -5669, 60, 'Central Time - Rainy River & Fort Frances, Ontario'
172
+ c.timezone 'America/Rainy_River', 2923, 60, -2837, 30, 'Central Time - Rainy River & Fort Frances, Ontario'
172
173
  c.timezone 'America/Cambridge_Bay', 1381, 20, -1261, 12, 'Central Time - west Nunavut'
173
174
  c.timezone 'America/Regina', 252, 5, -2093, 20, 'Central Standard Time - Saskatchewan - most locations'
174
175
  c.timezone 'America/Swift_Current', 3017, 60, -647, 6, 'Central Standard Time - Saskatchewan - midwest'
175
176
  c.timezone 'America/Edmonton', 1071, 20, -1702, 15, 'Mountain Time - Alberta, east British Columbia & west Saskatchewan'
176
177
  c.timezone 'America/Yellowknife', 1249, 20, -2287, 20, 'Mountain Time - central Northwest Territories'
177
- c.timezone 'America/Inuvik', 821, 12, -227, 2, 'Mountain Time - west Northwest Territories'
178
+ c.timezone 'America/Inuvik', 246059, 3600, -8023, 60, 'Mountain Time - west Northwest Territories'
178
179
  c.timezone 'America/Dawson_Creek', 1793, 30, -3607, 30, 'Mountain Standard Time - Dawson Creek & Fort Saint John, British Columbia'
179
180
  c.timezone 'America/Vancouver', 739, 15, -7387, 60, 'Pacific Time - west British Columbia'
180
181
  c.timezone 'America/Whitehorse', 3643, 60, -2701, 20, 'Pacific Time - south Yukon'
@@ -211,10 +212,10 @@ module TZInfo
211
212
  end
212
213
  country 'CN', 'China' do |c|
213
214
  c.timezone 'Asia/Shanghai', 937, 30, 1822, 15, 'east China - Beijing, Guangdong, Shanghai, etc.'
214
- c.timezone 'Asia/Harbin', 183, 4, 7601, 60, 'Heilongjiang'
215
- c.timezone 'Asia/Chongqing', 887, 30, 1279, 12, 'central China - Gansu, Guizhou, Sichuan, Yunnan, etc.'
216
- c.timezone 'Asia/Urumqi', 219, 5, 1051, 12, 'Tibet & most of Xinjiang Uyghur'
217
- c.timezone 'Asia/Kashgar', 2369, 60, 4559, 60, 'southwest Xinjiang Uyghur'
215
+ c.timezone 'Asia/Harbin', 183, 4, 7601, 60, 'Heilongjiang (except Mohe), Jilin'
216
+ c.timezone 'Asia/Chongqing', 887, 30, 1279, 12, 'central China - Sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.'
217
+ c.timezone 'Asia/Urumqi', 219, 5, 1051, 12, 'most of Tibet & Xinjiang'
218
+ c.timezone 'Asia/Kashgar', 2369, 60, 4559, 60, 'west Tibet & Xinjiang'
218
219
  end
219
220
  country 'CO', 'Colombia' do |c|
220
221
  c.timezone 'America/Bogota', 23, 5, -889, 12
@@ -317,6 +318,9 @@ module TZInfo
317
318
  country 'GF', 'French Guiana' do |c|
318
319
  c.timezone 'America/Cayenne', 74, 15, -157, 3
319
320
  end
321
+ country 'GG', 'Guernsey' do |c|
322
+ c.timezone 'Europe/Guernsey', 989, 20, -38, 15
323
+ end
320
324
  country 'GH', 'Ghana' do |c|
321
325
  c.timezone 'Africa/Accra', 111, 20, -13, 60
322
326
  end
@@ -326,7 +330,7 @@ module TZInfo
326
330
  country 'GL', 'Greenland' do |c|
327
331
  c.timezone 'America/Godthab', 3851, 60, -776, 15, 'most locations'
328
332
  c.timezone 'America/Danmarkshavn', 2303, 30, -56, 3, 'east coast, north of Scoresbysund'
329
- c.timezone 'America/Scoresbysund', 141, 2, -89, 4, 'Scoresbysund / Ittoqqortoormiit'
333
+ c.timezone 'America/Scoresbysund', 4229, 60, -659, 30, 'Scoresbysund / Ittoqqortoormiit'
330
334
  c.timezone 'America/Thule', 2297, 30, -4127, 60, 'Thule / Pituffik'
331
335
  end
332
336
  country 'GM', 'Gambia' do |c|
@@ -387,6 +391,9 @@ module TZInfo
387
391
  country 'IL', 'Israel' do |c|
388
392
  c.timezone 'Asia/Jerusalem', 953, 30, 1057, 30
389
393
  end
394
+ country 'IM', 'Isle of Man' do |c|
395
+ c.timezone 'Europe/Isle_of_Man', 1083, 20, -67, 15
396
+ end
390
397
  country 'IN', 'India' do |c|
391
398
  c.timezone 'Asia/Calcutta', 338, 15, 2651, 30
392
399
  end
@@ -405,6 +412,9 @@ module TZInfo
405
412
  country 'IT', 'Italy' do |c|
406
413
  c.timezone 'Europe/Rome', 419, 10, 749, 60
407
414
  end
415
+ country 'JE', 'Jersey' do |c|
416
+ c.timezone 'Europe/Jersey', 246, 5, -157, 60
417
+ end
408
418
  country 'JM', 'Jamaica' do |c|
409
419
  c.timezone 'America/Jamaica', 18, 1, -384, 5
410
420
  end
@@ -658,7 +668,8 @@ module TZInfo
658
668
  country 'RU', 'Russia' do |c|
659
669
  c.timezone 'Europe/Kaliningrad', 3283, 60, 41, 2, 'Moscow-01 - Kaliningrad'
660
670
  c.timezone 'Europe/Moscow', 223, 4, 451, 12, 'Moscow+00 - west Russia'
661
- c.timezone 'Europe/Samara', 266, 5, 1003, 20, 'Moscow+01 - Caspian Sea'
671
+ c.timezone 'Europe/Volgograd', 731, 15, 533, 12, 'Moscow+00 - Caspian Sea'
672
+ c.timezone 'Europe/Samara', 266, 5, 1003, 20, 'Moscow+01 - Samara, Udmurtia'
662
673
  c.timezone 'Asia/Yekaterinburg', 1137, 20, 303, 5, 'Moscow+02 - Urals'
663
674
  c.timezone 'Asia/Omsk', 55, 1, 367, 5, 'Moscow+03 - west Siberia'
664
675
  c.timezone 'Asia/Novosibirsk', 1651, 30, 995, 12, 'Moscow+03 - Novosibirsk'
@@ -75,11 +75,13 @@ module TZInfo
75
75
  timezone 'America/Argentina/Ushuaia'
76
76
  timezone 'America/Aruba'
77
77
  timezone 'America/Asuncion'
78
+ timezone 'America/Atikokan'
78
79
  linked_timezone 'America/Atka'
79
80
  timezone 'America/Bahia'
80
81
  timezone 'America/Barbados'
81
82
  timezone 'America/Belem'
82
83
  timezone 'America/Belize'
84
+ timezone 'America/Blanc-Sablon'
83
85
  timezone 'America/Boa_Vista'
84
86
  timezone 'America/Bogota'
85
87
  timezone 'America/Boise'
@@ -93,7 +95,7 @@ module TZInfo
93
95
  timezone 'America/Cayman'
94
96
  timezone 'America/Chicago'
95
97
  timezone 'America/Chihuahua'
96
- timezone 'America/Coral_Harbour'
98
+ linked_timezone 'America/Coral_Harbour'
97
99
  linked_timezone 'America/Cordoba'
98
100
  timezone 'America/Costa_Rica'
99
101
  timezone 'America/Cuiaba'
@@ -404,8 +406,11 @@ module TZInfo
404
406
  timezone 'Europe/Copenhagen'
405
407
  timezone 'Europe/Dublin'
406
408
  timezone 'Europe/Gibraltar'
409
+ linked_timezone 'Europe/Guernsey'
407
410
  timezone 'Europe/Helsinki'
411
+ linked_timezone 'Europe/Isle_of_Man'
408
412
  timezone 'Europe/Istanbul'
413
+ linked_timezone 'Europe/Jersey'
409
414
  timezone 'Europe/Kaliningrad'
410
415
  timezone 'Europe/Kiev'
411
416
  timezone 'Europe/Lisbon'
@@ -439,6 +444,7 @@ module TZInfo
439
444
  linked_timezone 'Europe/Vatican'
440
445
  timezone 'Europe/Vienna'
441
446
  timezone 'Europe/Vilnius'
447
+ timezone 'Europe/Volgograd'
442
448
  timezone 'Europe/Warsaw'
443
449
  linked_timezone 'Europe/Zagreb'
444
450
  timezone 'Europe/Zaporozhye'
@@ -81,7 +81,9 @@ module TZInfo
81
81
  raise InvalidTimezoneIdentifier, 'Invalid identifier' if identifier !~ /^[A-z0-9\+\-_]+(\/[A-z0-9\+\-_]+)*$/
82
82
  identifier = identifier.gsub(/-/, '__m__').gsub(/\+/, '__p__')
83
83
  begin
84
- require "tzinfo/definitions/#{identifier}"
84
+ # Use a temporary variable to avoid an rdoc warning
85
+ file = "tzinfo/definitions/#{identifier}"
86
+ require file
85
87
 
86
88
  m = Definitions
87
89
  identifier.split(/\//).each {|part|
@@ -992,13 +992,13 @@ module TZInfo
992
992
 
993
993
  # Returns the absolute day of month for the given year and month.
994
994
  def to_absolute(year, month)
995
- case
996
- when @type == :last:
995
+ case @type
996
+ when :last
997
997
  last_day_in_month = (Date.new(year, month, 1) >> 1) - 1
998
998
  offset = last_day_in_month.wday - @day_of_week
999
999
  offset = offset + 7 if offset < 0
1000
1000
  (last_day_in_month - offset).day
1001
- when @type == :comparison:
1001
+ when :comparison
1002
1002
  pivot = Date.new(year, month, @day_of_month)
1003
1003
  offset = @day_of_week - pivot.wday
1004
1004
  offset = -offset if @operator == :less_equal
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: tzinfo
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
7
- date: 2006-07-17 00:00:00 +01:00
6
+ version: 0.3.1
7
+ date: 2006-08-21 00:00:00 +01:00
8
8
  summary: Daylight-savings aware timezone library
9
9
  require_paths:
10
10
  - lib
@@ -25,6 +25,7 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
+ post_install_message:
28
29
  authors:
29
30
  - Philip Ross
30
31
  files:
@@ -177,11 +178,13 @@ files:
177
178
  - lib/tzinfo/definitions/America/Argentina
178
179
  - lib/tzinfo/definitions/America/Aruba.rb
179
180
  - lib/tzinfo/definitions/America/Asuncion.rb
181
+ - lib/tzinfo/definitions/America/Atikokan.rb
180
182
  - lib/tzinfo/definitions/America/Atka.rb
181
183
  - lib/tzinfo/definitions/America/Bahia.rb
182
184
  - lib/tzinfo/definitions/America/Barbados.rb
183
185
  - lib/tzinfo/definitions/America/Belem.rb
184
186
  - lib/tzinfo/definitions/America/Belize.rb
187
+ - lib/tzinfo/definitions/America/Blanc__m__Sablon.rb
185
188
  - lib/tzinfo/definitions/America/Boa_Vista.rb
186
189
  - lib/tzinfo/definitions/America/Bogota.rb
187
190
  - lib/tzinfo/definitions/America/Boise.rb
@@ -512,8 +515,11 @@ files:
512
515
  - lib/tzinfo/definitions/Europe/Copenhagen.rb
513
516
  - lib/tzinfo/definitions/Europe/Dublin.rb
514
517
  - lib/tzinfo/definitions/Europe/Gibraltar.rb
518
+ - lib/tzinfo/definitions/Europe/Guernsey.rb
515
519
  - lib/tzinfo/definitions/Europe/Helsinki.rb
520
+ - lib/tzinfo/definitions/Europe/Isle_of_Man.rb
516
521
  - lib/tzinfo/definitions/Europe/Istanbul.rb
522
+ - lib/tzinfo/definitions/Europe/Jersey.rb
517
523
  - lib/tzinfo/definitions/Europe/Kaliningrad.rb
518
524
  - lib/tzinfo/definitions/Europe/Kiev.rb
519
525
  - lib/tzinfo/definitions/Europe/Lisbon.rb
@@ -547,6 +553,7 @@ files:
547
553
  - lib/tzinfo/definitions/Europe/Vatican.rb
548
554
  - lib/tzinfo/definitions/Europe/Vienna.rb
549
555
  - lib/tzinfo/definitions/Europe/Vilnius.rb
556
+ - lib/tzinfo/definitions/Europe/Volgograd.rb
550
557
  - lib/tzinfo/definitions/Europe/Warsaw.rb
551
558
  - lib/tzinfo/definitions/Europe/Zagreb.rb
552
559
  - lib/tzinfo/definitions/Europe/Zaporozhye.rb