activesupport 2.1.1 → 2.1.2

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

Potentially problematic release.


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

Files changed (149) hide show
  1. data/CHANGELOG +5 -0
  2. data/lib/active_support/core_ext/hash/except.rb +1 -1
  3. data/lib/active_support/core_ext/hash/slice.rb +1 -1
  4. data/lib/active_support/core_ext/object/extending.rb +8 -9
  5. data/lib/active_support/core_ext/rexml.rb +3 -2
  6. data/lib/active_support/deprecation.rb +1 -1
  7. data/lib/active_support/time_with_zone.rb +3 -3
  8. data/lib/active_support/values/time_zone.rb +1 -1
  9. data/lib/active_support/vendor.rb +2 -2
  10. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo.rb +0 -0
  11. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/data_timezone.rb +0 -0
  12. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/data_timezone_info.rb +0 -0
  13. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Algiers.rb +0 -0
  14. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Cairo.rb +0 -0
  15. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Casablanca.rb +1 -1
  16. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Harare.rb +0 -0
  17. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Johannesburg.rb +0 -0
  18. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Monrovia.rb +0 -0
  19. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Nairobi.rb +0 -0
  20. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +42 -42
  21. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Argentina/San_Juan.rb +42 -42
  22. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Bogota.rb +0 -0
  23. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Caracas.rb +0 -0
  24. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Chicago.rb +0 -0
  25. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Chihuahua.rb +0 -0
  26. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Denver.rb +0 -0
  27. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Godthab.rb +0 -0
  28. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Guatemala.rb +0 -0
  29. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Halifax.rb +0 -0
  30. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Indiana/Indianapolis.rb +0 -0
  31. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Juneau.rb +0 -0
  32. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/La_Paz.rb +0 -0
  33. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Lima.rb +0 -0
  34. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Los_Angeles.rb +0 -0
  35. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Mazatlan.rb +0 -0
  36. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Mexico_City.rb +0 -0
  37. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Monterrey.rb +0 -0
  38. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/New_York.rb +0 -0
  39. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Phoenix.rb +0 -0
  40. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Regina.rb +0 -0
  41. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Santiago.rb +0 -0
  42. data/lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
  43. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/St_Johns.rb +0 -0
  44. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Tijuana.rb +0 -0
  45. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Almaty.rb +0 -0
  46. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Baghdad.rb +0 -0
  47. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Baku.rb +0 -0
  48. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Bangkok.rb +0 -0
  49. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Chongqing.rb +0 -0
  50. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Dhaka.rb +0 -0
  51. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Hong_Kong.rb +0 -0
  52. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Irkutsk.rb +0 -0
  53. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Jakarta.rb +0 -0
  54. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Jerusalem.rb +0 -0
  55. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kabul.rb +0 -0
  56. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kamchatka.rb +0 -0
  57. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Karachi.rb +1 -1
  58. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Katmandu.rb +0 -0
  59. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kolkata.rb +0 -0
  60. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Krasnoyarsk.rb +0 -0
  61. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kuala_Lumpur.rb +0 -0
  62. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kuwait.rb +0 -0
  63. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Magadan.rb +0 -0
  64. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Muscat.rb +0 -0
  65. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Novosibirsk.rb +0 -0
  66. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Rangoon.rb +0 -0
  67. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Riyadh.rb +0 -0
  68. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Seoul.rb +0 -0
  69. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Shanghai.rb +0 -0
  70. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Singapore.rb +0 -0
  71. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Taipei.rb +0 -0
  72. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tashkent.rb +0 -0
  73. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tbilisi.rb +0 -0
  74. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tehran.rb +0 -0
  75. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tokyo.rb +0 -0
  76. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Ulaanbaatar.rb +0 -0
  77. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Urumqi.rb +0 -0
  78. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Vladivostok.rb +0 -0
  79. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Yakutsk.rb +0 -0
  80. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Yekaterinburg.rb +0 -0
  81. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Yerevan.rb +0 -0
  82. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Atlantic/Azores.rb +0 -0
  83. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Atlantic/Cape_Verde.rb +0 -0
  84. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Atlantic/South_Georgia.rb +0 -0
  85. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Adelaide.rb +0 -0
  86. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Brisbane.rb +0 -0
  87. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Darwin.rb +0 -0
  88. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Hobart.rb +0 -0
  89. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Melbourne.rb +0 -0
  90. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Perth.rb +0 -0
  91. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Sydney.rb +0 -0
  92. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Etc/UTC.rb +0 -0
  93. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Amsterdam.rb +0 -0
  94. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Athens.rb +0 -0
  95. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Belgrade.rb +0 -0
  96. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Berlin.rb +1 -1
  97. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Bratislava.rb +0 -0
  98. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Brussels.rb +0 -0
  99. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Bucharest.rb +0 -0
  100. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Budapest.rb +0 -0
  101. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Copenhagen.rb +0 -0
  102. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Dublin.rb +0 -0
  103. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Helsinki.rb +0 -0
  104. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Istanbul.rb +0 -0
  105. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Kiev.rb +0 -0
  106. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Lisbon.rb +0 -0
  107. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Ljubljana.rb +0 -0
  108. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/London.rb +0 -0
  109. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Madrid.rb +0 -0
  110. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Minsk.rb +0 -0
  111. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Moscow.rb +0 -0
  112. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Paris.rb +0 -0
  113. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Prague.rb +0 -0
  114. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Riga.rb +0 -0
  115. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Rome.rb +0 -0
  116. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Sarajevo.rb +0 -0
  117. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Skopje.rb +0 -0
  118. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Sofia.rb +0 -0
  119. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Stockholm.rb +0 -0
  120. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Tallinn.rb +0 -0
  121. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Vienna.rb +0 -0
  122. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Vilnius.rb +0 -0
  123. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Warsaw.rb +0 -0
  124. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Zagreb.rb +0 -0
  125. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Auckland.rb +0 -0
  126. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Fiji.rb +0 -0
  127. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Guam.rb +0 -0
  128. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Honolulu.rb +0 -0
  129. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Majuro.rb +0 -0
  130. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Midway.rb +0 -0
  131. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Noumea.rb +0 -0
  132. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Pago_Pago.rb +0 -0
  133. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Port_Moresby.rb +0 -0
  134. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Tongatapu.rb +0 -0
  135. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/info_timezone.rb +0 -0
  136. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/linked_timezone.rb +0 -0
  137. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/linked_timezone_info.rb +0 -0
  138. data/lib/active_support/vendor/tzinfo-0.3.11/tzinfo/offset_rationals.rb +98 -0
  139. data/lib/active_support/vendor/tzinfo-0.3.11/tzinfo/ruby_core_support.rb +56 -0
  140. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/time_or_datetime.rb +0 -0
  141. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone.rb +0 -0
  142. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_definition.rb +0 -0
  143. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_info.rb +0 -0
  144. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_offset_info.rb +0 -0
  145. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_period.rb +0 -0
  146. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_transition_info.rb +2 -11
  147. data/lib/active_support/version.rb +1 -1
  148. metadata +153 -151
  149. data/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/offset_rationals.rb +0 -95
@@ -0,0 +1,171 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module America
6
+ module Sao_Paulo
7
+ include TimezoneDefinition
8
+
9
+ timezone 'America/Sao_Paulo' do |tz|
10
+ tz.offset :o0, -11188, 0, :LMT
11
+ tz.offset :o1, -10800, 0, :BRT
12
+ tz.offset :o2, -10800, 3600, :BRST
13
+
14
+ tz.transition 1914, 1, :o1, 52274886397, 21600
15
+ tz.transition 1931, 10, :o2, 29119417, 12
16
+ tz.transition 1932, 4, :o1, 29121583, 12
17
+ tz.transition 1932, 10, :o2, 19415869, 8
18
+ tz.transition 1933, 4, :o1, 29125963, 12
19
+ tz.transition 1949, 12, :o2, 19466013, 8
20
+ tz.transition 1950, 4, :o1, 19467101, 8
21
+ tz.transition 1950, 12, :o2, 19468933, 8
22
+ tz.transition 1951, 4, :o1, 29204851, 12
23
+ tz.transition 1951, 12, :o2, 19471853, 8
24
+ tz.transition 1952, 4, :o1, 29209243, 12
25
+ tz.transition 1952, 12, :o2, 19474781, 8
26
+ tz.transition 1953, 3, :o1, 29213251, 12
27
+ tz.transition 1963, 10, :o2, 19506605, 8
28
+ tz.transition 1964, 3, :o1, 29261467, 12
29
+ tz.transition 1965, 1, :o2, 19510333, 8
30
+ tz.transition 1965, 3, :o1, 29266207, 12
31
+ tz.transition 1965, 12, :o2, 19512765, 8
32
+ tz.transition 1966, 3, :o1, 29270227, 12
33
+ tz.transition 1966, 11, :o2, 19515445, 8
34
+ tz.transition 1967, 3, :o1, 29274607, 12
35
+ tz.transition 1967, 11, :o2, 19518365, 8
36
+ tz.transition 1968, 3, :o1, 29278999, 12
37
+ tz.transition 1985, 11, :o2, 499748400
38
+ tz.transition 1986, 3, :o1, 511236000
39
+ tz.transition 1986, 10, :o2, 530593200
40
+ tz.transition 1987, 2, :o1, 540266400
41
+ tz.transition 1987, 10, :o2, 562129200
42
+ tz.transition 1988, 2, :o1, 571197600
43
+ tz.transition 1988, 10, :o2, 592974000
44
+ tz.transition 1989, 1, :o1, 602042400
45
+ tz.transition 1989, 10, :o2, 624423600
46
+ tz.transition 1990, 2, :o1, 634701600
47
+ tz.transition 1990, 10, :o2, 656478000
48
+ tz.transition 1991, 2, :o1, 666756000
49
+ tz.transition 1991, 10, :o2, 687927600
50
+ tz.transition 1992, 2, :o1, 697600800
51
+ tz.transition 1992, 10, :o2, 719982000
52
+ tz.transition 1993, 1, :o1, 728445600
53
+ tz.transition 1993, 10, :o2, 750826800
54
+ tz.transition 1994, 2, :o1, 761709600
55
+ tz.transition 1994, 10, :o2, 782276400
56
+ tz.transition 1995, 2, :o1, 793159200
57
+ tz.transition 1995, 10, :o2, 813726000
58
+ tz.transition 1996, 2, :o1, 824004000
59
+ tz.transition 1996, 10, :o2, 844570800
60
+ tz.transition 1997, 2, :o1, 856058400
61
+ tz.transition 1997, 10, :o2, 876106800
62
+ tz.transition 1998, 3, :o1, 888717600
63
+ tz.transition 1998, 10, :o2, 908074800
64
+ tz.transition 1999, 2, :o1, 919562400
65
+ tz.transition 1999, 10, :o2, 938919600
66
+ tz.transition 2000, 2, :o1, 951616800
67
+ tz.transition 2000, 10, :o2, 970974000
68
+ tz.transition 2001, 2, :o1, 982461600
69
+ tz.transition 2001, 10, :o2, 1003028400
70
+ tz.transition 2002, 2, :o1, 1013911200
71
+ tz.transition 2002, 11, :o2, 1036292400
72
+ tz.transition 2003, 2, :o1, 1045360800
73
+ tz.transition 2003, 10, :o2, 1066532400
74
+ tz.transition 2004, 2, :o1, 1076810400
75
+ tz.transition 2004, 11, :o2, 1099364400
76
+ tz.transition 2005, 2, :o1, 1108864800
77
+ tz.transition 2005, 10, :o2, 1129431600
78
+ tz.transition 2006, 2, :o1, 1140314400
79
+ tz.transition 2006, 11, :o2, 1162695600
80
+ tz.transition 2007, 2, :o1, 1172368800
81
+ tz.transition 2007, 10, :o2, 1192330800
82
+ tz.transition 2008, 2, :o1, 1203213600
83
+ tz.transition 2008, 10, :o2, 1224385200
84
+ tz.transition 2009, 2, :o1, 1234663200
85
+ tz.transition 2009, 10, :o2, 1255834800
86
+ tz.transition 2010, 2, :o1, 1266717600
87
+ tz.transition 2010, 10, :o2, 1287284400
88
+ tz.transition 2011, 2, :o1, 1298167200
89
+ tz.transition 2011, 10, :o2, 1318734000
90
+ tz.transition 2012, 2, :o1, 1330221600
91
+ tz.transition 2012, 10, :o2, 1350788400
92
+ tz.transition 2013, 2, :o1, 1361066400
93
+ tz.transition 2013, 10, :o2, 1382238000
94
+ tz.transition 2014, 2, :o1, 1392516000
95
+ tz.transition 2014, 10, :o2, 1413687600
96
+ tz.transition 2015, 2, :o1, 1424570400
97
+ tz.transition 2015, 10, :o2, 1445137200
98
+ tz.transition 2016, 2, :o1, 1456020000
99
+ tz.transition 2016, 10, :o2, 1476586800
100
+ tz.transition 2017, 2, :o1, 1487469600
101
+ tz.transition 2017, 10, :o2, 1508036400
102
+ tz.transition 2018, 2, :o1, 1518919200
103
+ tz.transition 2018, 10, :o2, 1540090800
104
+ tz.transition 2019, 2, :o1, 1550368800
105
+ tz.transition 2019, 10, :o2, 1571540400
106
+ tz.transition 2020, 2, :o1, 1581818400
107
+ tz.transition 2020, 10, :o2, 1602990000
108
+ tz.transition 2021, 2, :o1, 1613872800
109
+ tz.transition 2021, 10, :o2, 1634439600
110
+ tz.transition 2022, 2, :o1, 1645322400
111
+ tz.transition 2022, 10, :o2, 1665889200
112
+ tz.transition 2023, 2, :o1, 1677376800
113
+ tz.transition 2023, 10, :o2, 1697338800
114
+ tz.transition 2024, 2, :o1, 1708221600
115
+ tz.transition 2024, 10, :o2, 1729393200
116
+ tz.transition 2025, 2, :o1, 1739671200
117
+ tz.transition 2025, 10, :o2, 1760842800
118
+ tz.transition 2026, 2, :o1, 1771725600
119
+ tz.transition 2026, 10, :o2, 1792292400
120
+ tz.transition 2027, 2, :o1, 1803175200
121
+ tz.transition 2027, 10, :o2, 1823742000
122
+ tz.transition 2028, 2, :o1, 1834624800
123
+ tz.transition 2028, 10, :o2, 1855191600
124
+ tz.transition 2029, 2, :o1, 1866074400
125
+ tz.transition 2029, 10, :o2, 1887246000
126
+ tz.transition 2030, 2, :o1, 1897524000
127
+ tz.transition 2030, 10, :o2, 1918695600
128
+ tz.transition 2031, 2, :o1, 1928973600
129
+ tz.transition 2031, 10, :o2, 1950145200
130
+ tz.transition 2032, 2, :o1, 1960423200
131
+ tz.transition 2032, 10, :o2, 1981594800
132
+ tz.transition 2033, 2, :o1, 1992477600
133
+ tz.transition 2033, 10, :o2, 2013044400
134
+ tz.transition 2034, 2, :o1, 2024532000
135
+ tz.transition 2034, 10, :o2, 2044494000
136
+ tz.transition 2035, 2, :o1, 2055376800
137
+ tz.transition 2035, 10, :o2, 2076548400
138
+ tz.transition 2036, 2, :o1, 2086826400
139
+ tz.transition 2036, 10, :o2, 2107998000
140
+ tz.transition 2037, 2, :o1, 2118880800
141
+ tz.transition 2037, 10, :o2, 2139447600
142
+ tz.transition 2038, 2, :o1, 29585707, 12
143
+ tz.transition 2038, 10, :o2, 19725709, 8
144
+ tz.transition 2039, 2, :o1, 29590075, 12
145
+ tz.transition 2039, 10, :o2, 19728621, 8
146
+ tz.transition 2040, 2, :o1, 29594443, 12
147
+ tz.transition 2040, 10, :o2, 19731589, 8
148
+ tz.transition 2041, 2, :o1, 29598811, 12
149
+ tz.transition 2041, 10, :o2, 19734501, 8
150
+ tz.transition 2042, 2, :o1, 29603179, 12
151
+ tz.transition 2042, 10, :o2, 19737413, 8
152
+ tz.transition 2043, 2, :o1, 29607547, 12
153
+ tz.transition 2043, 10, :o2, 19740325, 8
154
+ tz.transition 2044, 2, :o1, 29611999, 12
155
+ tz.transition 2044, 10, :o2, 19743237, 8
156
+ tz.transition 2045, 2, :o1, 29616367, 12
157
+ tz.transition 2045, 10, :o2, 19746149, 8
158
+ tz.transition 2046, 2, :o1, 29620735, 12
159
+ tz.transition 2046, 10, :o2, 19749117, 8
160
+ tz.transition 2047, 2, :o1, 29625103, 12
161
+ tz.transition 2047, 10, :o2, 19752029, 8
162
+ tz.transition 2048, 2, :o1, 29629471, 12
163
+ tz.transition 2048, 10, :o2, 19754941, 8
164
+ tz.transition 2049, 2, :o1, 29633923, 12
165
+ tz.transition 2049, 10, :o2, 19757853, 8
166
+ tz.transition 2050, 2, :o1, 29638291, 12
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
@@ -22,7 +22,7 @@ module TZInfo
22
22
  tz.transition 2002, 4, :o5, 1018119660
23
23
  tz.transition 2002, 10, :o4, 1033840860
24
24
  tz.transition 2008, 5, :o5, 1212260400
25
- tz.transition 2008, 8, :o4, 1220205600
25
+ tz.transition 2008, 10, :o4, 1225476000
26
26
  end
27
27
  end
28
28
  end
@@ -31,7 +31,7 @@ module TZInfo
31
31
  tz.transition 1945, 11, :o1, 58362661, 24
32
32
  tz.transition 1946, 4, :o2, 58366189, 24
33
33
  tz.transition 1946, 10, :o1, 58370413, 24
34
- tz.transition 1947, 4, :o2, 58374757, 24
34
+ tz.transition 1947, 4, :o2, 29187379, 12
35
35
  tz.transition 1947, 5, :o3, 58375597, 24
36
36
  tz.transition 1947, 6, :o2, 4864731, 2
37
37
  tz.transition 1947, 10, :o1, 58379125, 24
@@ -0,0 +1,98 @@
1
+ #--
2
+ # Copyright (c) 2006 Philip Ross
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
21
+ #++
22
+
23
+ require 'rational'
24
+ require 'tzinfo/ruby_core_support'
25
+
26
+ module TZInfo
27
+
28
+ # Provides a method for getting Rationals for a timezone offset in seconds.
29
+ # Pre-reduced rationals are returned for all the half-hour intervals between
30
+ # -14 and +14 hours to avoid having to call gcd at runtime.
31
+ module OffsetRationals #:nodoc:
32
+ @@rational_cache = {
33
+ -50400 => RubyCoreSupport.rational_new!(-7,12),
34
+ -48600 => RubyCoreSupport.rational_new!(-9,16),
35
+ -46800 => RubyCoreSupport.rational_new!(-13,24),
36
+ -45000 => RubyCoreSupport.rational_new!(-25,48),
37
+ -43200 => RubyCoreSupport.rational_new!(-1,2),
38
+ -41400 => RubyCoreSupport.rational_new!(-23,48),
39
+ -39600 => RubyCoreSupport.rational_new!(-11,24),
40
+ -37800 => RubyCoreSupport.rational_new!(-7,16),
41
+ -36000 => RubyCoreSupport.rational_new!(-5,12),
42
+ -34200 => RubyCoreSupport.rational_new!(-19,48),
43
+ -32400 => RubyCoreSupport.rational_new!(-3,8),
44
+ -30600 => RubyCoreSupport.rational_new!(-17,48),
45
+ -28800 => RubyCoreSupport.rational_new!(-1,3),
46
+ -27000 => RubyCoreSupport.rational_new!(-5,16),
47
+ -25200 => RubyCoreSupport.rational_new!(-7,24),
48
+ -23400 => RubyCoreSupport.rational_new!(-13,48),
49
+ -21600 => RubyCoreSupport.rational_new!(-1,4),
50
+ -19800 => RubyCoreSupport.rational_new!(-11,48),
51
+ -18000 => RubyCoreSupport.rational_new!(-5,24),
52
+ -16200 => RubyCoreSupport.rational_new!(-3,16),
53
+ -14400 => RubyCoreSupport.rational_new!(-1,6),
54
+ -12600 => RubyCoreSupport.rational_new!(-7,48),
55
+ -10800 => RubyCoreSupport.rational_new!(-1,8),
56
+ -9000 => RubyCoreSupport.rational_new!(-5,48),
57
+ -7200 => RubyCoreSupport.rational_new!(-1,12),
58
+ -5400 => RubyCoreSupport.rational_new!(-1,16),
59
+ -3600 => RubyCoreSupport.rational_new!(-1,24),
60
+ -1800 => RubyCoreSupport.rational_new!(-1,48),
61
+ 0 => RubyCoreSupport.rational_new!(0,1),
62
+ 1800 => RubyCoreSupport.rational_new!(1,48),
63
+ 3600 => RubyCoreSupport.rational_new!(1,24),
64
+ 5400 => RubyCoreSupport.rational_new!(1,16),
65
+ 7200 => RubyCoreSupport.rational_new!(1,12),
66
+ 9000 => RubyCoreSupport.rational_new!(5,48),
67
+ 10800 => RubyCoreSupport.rational_new!(1,8),
68
+ 12600 => RubyCoreSupport.rational_new!(7,48),
69
+ 14400 => RubyCoreSupport.rational_new!(1,6),
70
+ 16200 => RubyCoreSupport.rational_new!(3,16),
71
+ 18000 => RubyCoreSupport.rational_new!(5,24),
72
+ 19800 => RubyCoreSupport.rational_new!(11,48),
73
+ 21600 => RubyCoreSupport.rational_new!(1,4),
74
+ 23400 => RubyCoreSupport.rational_new!(13,48),
75
+ 25200 => RubyCoreSupport.rational_new!(7,24),
76
+ 27000 => RubyCoreSupport.rational_new!(5,16),
77
+ 28800 => RubyCoreSupport.rational_new!(1,3),
78
+ 30600 => RubyCoreSupport.rational_new!(17,48),
79
+ 32400 => RubyCoreSupport.rational_new!(3,8),
80
+ 34200 => RubyCoreSupport.rational_new!(19,48),
81
+ 36000 => RubyCoreSupport.rational_new!(5,12),
82
+ 37800 => RubyCoreSupport.rational_new!(7,16),
83
+ 39600 => RubyCoreSupport.rational_new!(11,24),
84
+ 41400 => RubyCoreSupport.rational_new!(23,48),
85
+ 43200 => RubyCoreSupport.rational_new!(1,2),
86
+ 45000 => RubyCoreSupport.rational_new!(25,48),
87
+ 46800 => RubyCoreSupport.rational_new!(13,24),
88
+ 48600 => RubyCoreSupport.rational_new!(9,16),
89
+ 50400 => RubyCoreSupport.rational_new!(7,12)}
90
+
91
+ # Returns a Rational expressing the fraction of a day that offset in
92
+ # seconds represents (i.e. equivalent to Rational(offset, 86400)).
93
+ def rational_for_offset(offset)
94
+ @@rational_cache[offset] || Rational(offset, 86400)
95
+ end
96
+ module_function :rational_for_offset
97
+ end
98
+ end