activesupport 2.0.5 → 2.1.0

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 (236) hide show
  1. data/CHANGELOG +183 -5
  2. data/lib/active_support.rb +6 -2
  3. data/lib/active_support/base64.rb +5 -0
  4. data/lib/active_support/basic_object.rb +23 -4
  5. data/lib/active_support/buffered_logger.rb +17 -3
  6. data/lib/active_support/cache.rb +145 -0
  7. data/lib/active_support/cache/compressed_mem_cache_store.rb +15 -0
  8. data/lib/active_support/cache/drb_store.rb +15 -0
  9. data/lib/active_support/cache/file_store.rb +70 -0
  10. data/lib/active_support/cache/mem_cache_store.rb +100 -0
  11. data/lib/active_support/cache/memory_store.rb +38 -0
  12. data/lib/active_support/callbacks.rb +275 -0
  13. data/lib/active_support/core_ext/array/access.rb +2 -4
  14. data/lib/active_support/core_ext/array/conversions.rb +89 -5
  15. data/lib/active_support/core_ext/array/extract_options.rb +2 -1
  16. data/lib/active_support/core_ext/array/grouping.rb +3 -8
  17. data/lib/active_support/core_ext/array/random_access.rb +1 -1
  18. data/lib/active_support/core_ext/base64.rb +4 -0
  19. data/lib/active_support/core_ext/base64/encoding.rb +13 -0
  20. data/lib/active_support/core_ext/benchmark.rb +12 -0
  21. data/lib/active_support/core_ext/bigdecimal.rb +4 -0
  22. data/lib/active_support/core_ext/bigdecimal/conversions.rb +39 -4
  23. data/lib/active_support/core_ext/blank.rb +5 -2
  24. data/lib/active_support/core_ext/class/attribute_accessors.rb +7 -1
  25. data/lib/active_support/core_ext/class/delegating_attributes.rb +7 -1
  26. data/lib/active_support/core_ext/class/inheritable_attributes.rb +1 -1
  27. data/lib/active_support/core_ext/class/removal.rb +26 -0
  28. data/lib/active_support/core_ext/date/calculations.rb +28 -1
  29. data/lib/active_support/core_ext/date/conversions.rb +1 -0
  30. data/lib/active_support/core_ext/date_time.rb +2 -0
  31. data/lib/active_support/core_ext/date_time/calculations.rb +37 -2
  32. data/lib/active_support/core_ext/date_time/conversions.rb +27 -14
  33. data/lib/active_support/core_ext/enumerable.rb +16 -9
  34. data/lib/active_support/core_ext/exception.rb +8 -0
  35. data/lib/active_support/core_ext/file.rb +6 -6
  36. data/lib/active_support/core_ext/hash/conversions.rb +26 -8
  37. data/lib/active_support/core_ext/hash/indifferent_access.rb +35 -0
  38. data/lib/active_support/core_ext/hash/reverse_merge.rb +4 -1
  39. data/lib/active_support/core_ext/integer/even_odd.rb +10 -5
  40. data/lib/active_support/core_ext/integer/inflections.rb +0 -1
  41. data/lib/active_support/core_ext/kernel/daemonizing.rb +2 -10
  42. data/lib/active_support/core_ext/kernel/reporting.rb +8 -0
  43. data/lib/active_support/core_ext/module/attr_internal.rb +4 -3
  44. data/lib/active_support/core_ext/module/attribute_accessors.rb +11 -1
  45. data/lib/active_support/core_ext/module/delegation.rb +5 -3
  46. data/lib/active_support/core_ext/module/inclusion.rb +19 -0
  47. data/lib/active_support/core_ext/module/introspection.rb +50 -16
  48. data/lib/active_support/core_ext/module/loading.rb +10 -0
  49. data/lib/active_support/core_ext/numeric.rb +3 -1
  50. data/lib/active_support/core_ext/numeric/conversions.rb +19 -0
  51. data/lib/active_support/core_ext/object/instance_variables.rb +52 -0
  52. data/lib/active_support/core_ext/object/misc.rb +1 -1
  53. data/lib/active_support/core_ext/process.rb +1 -0
  54. data/lib/active_support/core_ext/process/daemon.rb +25 -0
  55. data/lib/active_support/core_ext/range/conversions.rb +5 -1
  56. data/lib/active_support/core_ext/range/include_range.rb +8 -0
  57. data/lib/active_support/core_ext/range/overlaps.rb +3 -0
  58. data/lib/active_support/core_ext/string.rb +5 -10
  59. data/lib/active_support/core_ext/string/access.rb +72 -48
  60. data/lib/active_support/core_ext/string/conversions.rb +4 -4
  61. data/lib/active_support/core_ext/string/filters.rb +26 -0
  62. data/lib/active_support/core_ext/string/inflections.rb +56 -64
  63. data/lib/active_support/core_ext/string/iterators.rb +4 -0
  64. data/lib/active_support/core_ext/string/starts_ends_with.rb +12 -4
  65. data/lib/active_support/core_ext/string/unicode.rb +14 -7
  66. data/lib/active_support/core_ext/symbol.rb +1 -1
  67. data/lib/active_support/core_ext/time.rb +2 -0
  68. data/lib/active_support/core_ext/time/calculations.rb +75 -23
  69. data/lib/active_support/core_ext/time/conversions.rb +22 -35
  70. data/lib/active_support/core_ext/time/zones.rb +86 -0
  71. data/lib/active_support/dependencies.rb +92 -80
  72. data/lib/active_support/deprecation.rb +2 -16
  73. data/lib/active_support/duration.rb +4 -4
  74. data/lib/active_support/gzip.rb +25 -0
  75. data/lib/active_support/inflector.rb +92 -69
  76. data/lib/active_support/json.rb +17 -25
  77. data/lib/active_support/json/decoding.rb +1 -1
  78. data/lib/active_support/json/encoders/date.rb +11 -2
  79. data/lib/active_support/json/encoders/date_time.rb +11 -2
  80. data/lib/active_support/json/encoders/enumerable.rb +2 -2
  81. data/lib/active_support/json/encoders/hash.rb +3 -6
  82. data/lib/active_support/json/encoders/object.rb +1 -1
  83. data/lib/active_support/json/encoders/string.rb +8 -2
  84. data/lib/active_support/json/encoders/time.rb +11 -2
  85. data/lib/active_support/json/encoding.rb +0 -1
  86. data/lib/active_support/multibyte/chars.rb +8 -6
  87. data/lib/active_support/multibyte/handlers/utf8_handler.rb +11 -11
  88. data/lib/active_support/ordered_hash.rb +43 -0
  89. data/lib/active_support/ordered_options.rb +0 -38
  90. data/lib/active_support/test_case.rb +10 -2
  91. data/lib/active_support/testing/default.rb +3 -6
  92. data/lib/active_support/testing/setup_and_teardown.rb +93 -0
  93. data/lib/active_support/time_with_zone.rb +283 -0
  94. data/lib/active_support/values/time_zone.rb +336 -123
  95. data/lib/active_support/vendor.rb +12 -0
  96. data/lib/active_support/vendor/memcache-client-1.5.0/memcache.rb +849 -0
  97. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo.rb +33 -0
  98. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/data_timezone.rb +47 -0
  99. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/data_timezone_info.rb +226 -0
  100. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Algiers.rb +55 -0
  101. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Cairo.rb +219 -0
  102. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Casablanca.rb +38 -0
  103. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Harare.rb +18 -0
  104. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Johannesburg.rb +25 -0
  105. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Monrovia.rb +22 -0
  106. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Nairobi.rb +23 -0
  107. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +166 -0
  108. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Argentina/San_Juan.rb +170 -0
  109. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Bogota.rb +23 -0
  110. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Caracas.rb +23 -0
  111. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Chicago.rb +283 -0
  112. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Chihuahua.rb +136 -0
  113. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Denver.rb +204 -0
  114. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Godthab.rb +161 -0
  115. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Guatemala.rb +27 -0
  116. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Halifax.rb +274 -0
  117. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Indiana/Indianapolis.rb +149 -0
  118. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Juneau.rb +194 -0
  119. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/La_Paz.rb +22 -0
  120. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Lima.rb +35 -0
  121. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Los_Angeles.rb +232 -0
  122. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Mazatlan.rb +139 -0
  123. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Mexico_City.rb +144 -0
  124. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Monterrey.rb +131 -0
  125. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/New_York.rb +282 -0
  126. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Phoenix.rb +30 -0
  127. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Regina.rb +74 -0
  128. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Santiago.rb +205 -0
  129. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/St_Johns.rb +288 -0
  130. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Tijuana.rb +196 -0
  131. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Almaty.rb +67 -0
  132. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Baghdad.rb +73 -0
  133. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Baku.rb +161 -0
  134. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Bangkok.rb +20 -0
  135. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Chongqing.rb +33 -0
  136. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Dhaka.rb +27 -0
  137. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Hong_Kong.rb +87 -0
  138. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Irkutsk.rb +165 -0
  139. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Jakarta.rb +30 -0
  140. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Jerusalem.rb +163 -0
  141. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kabul.rb +20 -0
  142. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kamchatka.rb +163 -0
  143. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Karachi.rb +28 -0
  144. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Katmandu.rb +20 -0
  145. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kolkata.rb +25 -0
  146. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Krasnoyarsk.rb +163 -0
  147. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kuala_Lumpur.rb +31 -0
  148. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kuwait.rb +18 -0
  149. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Magadan.rb +163 -0
  150. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Muscat.rb +18 -0
  151. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Novosibirsk.rb +164 -0
  152. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Rangoon.rb +24 -0
  153. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Riyadh.rb +18 -0
  154. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Seoul.rb +34 -0
  155. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Shanghai.rb +35 -0
  156. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Singapore.rb +33 -0
  157. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Taipei.rb +59 -0
  158. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tashkent.rb +47 -0
  159. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tbilisi.rb +78 -0
  160. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tehran.rb +121 -0
  161. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tokyo.rb +30 -0
  162. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Ulaanbaatar.rb +65 -0
  163. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Urumqi.rb +33 -0
  164. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Vladivostok.rb +164 -0
  165. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Yakutsk.rb +163 -0
  166. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Yekaterinburg.rb +165 -0
  167. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Yerevan.rb +165 -0
  168. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Atlantic/Azores.rb +270 -0
  169. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Atlantic/Cape_Verde.rb +23 -0
  170. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Atlantic/South_Georgia.rb +18 -0
  171. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Adelaide.rb +187 -0
  172. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Brisbane.rb +35 -0
  173. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Darwin.rb +29 -0
  174. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Hobart.rb +193 -0
  175. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Melbourne.rb +185 -0
  176. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Perth.rb +37 -0
  177. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Sydney.rb +185 -0
  178. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Etc/UTC.rb +16 -0
  179. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Amsterdam.rb +228 -0
  180. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Athens.rb +185 -0
  181. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Belgrade.rb +163 -0
  182. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Berlin.rb +188 -0
  183. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Bratislava.rb +13 -0
  184. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Brussels.rb +232 -0
  185. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Bucharest.rb +181 -0
  186. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Budapest.rb +197 -0
  187. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Copenhagen.rb +179 -0
  188. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Dublin.rb +276 -0
  189. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Helsinki.rb +163 -0
  190. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Istanbul.rb +218 -0
  191. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Kiev.rb +168 -0
  192. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Lisbon.rb +268 -0
  193. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Ljubljana.rb +13 -0
  194. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/London.rb +288 -0
  195. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Madrid.rb +211 -0
  196. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Minsk.rb +170 -0
  197. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Moscow.rb +181 -0
  198. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Paris.rb +232 -0
  199. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Prague.rb +187 -0
  200. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Riga.rb +176 -0
  201. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Rome.rb +215 -0
  202. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Sarajevo.rb +13 -0
  203. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Skopje.rb +13 -0
  204. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Sofia.rb +173 -0
  205. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Stockholm.rb +165 -0
  206. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Tallinn.rb +172 -0
  207. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Vienna.rb +183 -0
  208. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Vilnius.rb +170 -0
  209. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Warsaw.rb +212 -0
  210. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Zagreb.rb +13 -0
  211. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Auckland.rb +202 -0
  212. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Fiji.rb +23 -0
  213. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Guam.rb +22 -0
  214. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Honolulu.rb +28 -0
  215. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Majuro.rb +20 -0
  216. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Midway.rb +25 -0
  217. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Noumea.rb +25 -0
  218. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Pago_Pago.rb +26 -0
  219. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Port_Moresby.rb +20 -0
  220. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Pacific/Tongatapu.rb +27 -0
  221. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/info_timezone.rb +52 -0
  222. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/linked_timezone.rb +51 -0
  223. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/linked_timezone_info.rb +44 -0
  224. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/offset_rationals.rb +95 -0
  225. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/time_or_datetime.rb +292 -0
  226. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/timezone.rb +508 -0
  227. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/timezone_definition.rb +56 -0
  228. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/timezone_info.rb +40 -0
  229. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/timezone_offset_info.rb +94 -0
  230. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/timezone_period.rb +198 -0
  231. data/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/timezone_transition_info.rb +138 -0
  232. data/lib/active_support/version.rb +2 -2
  233. data/lib/active_support/whiny_nil.rb +30 -10
  234. metadata +175 -5
  235. data/lib/active_support/core_ext/rexml.rb +0 -38
  236. data/lib/active_support/testing.rb +0 -1
@@ -0,0 +1,139 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module America
6
+ module Mazatlan
7
+ include TimezoneDefinition
8
+
9
+ timezone 'America/Mazatlan' do |tz|
10
+ tz.offset :o0, -25540, 0, :LMT
11
+ tz.offset :o1, -25200, 0, :MST
12
+ tz.offset :o2, -21600, 0, :CST
13
+ tz.offset :o3, -28800, 0, :PST
14
+ tz.offset :o4, -25200, 3600, :MDT
15
+
16
+ tz.transition 1922, 1, :o1, 58153339, 24
17
+ tz.transition 1927, 6, :o2, 9700171, 4
18
+ tz.transition 1930, 11, :o1, 9705183, 4
19
+ tz.transition 1931, 5, :o2, 9705855, 4
20
+ tz.transition 1931, 10, :o1, 9706463, 4
21
+ tz.transition 1932, 4, :o2, 58243171, 24
22
+ tz.transition 1942, 4, :o1, 9721895, 4
23
+ tz.transition 1949, 1, :o3, 58390339, 24
24
+ tz.transition 1970, 1, :o1, 28800
25
+ tz.transition 1996, 4, :o4, 828867600
26
+ tz.transition 1996, 10, :o1, 846403200
27
+ tz.transition 1997, 4, :o4, 860317200
28
+ tz.transition 1997, 10, :o1, 877852800
29
+ tz.transition 1998, 4, :o4, 891766800
30
+ tz.transition 1998, 10, :o1, 909302400
31
+ tz.transition 1999, 4, :o4, 923216400
32
+ tz.transition 1999, 10, :o1, 941356800
33
+ tz.transition 2000, 4, :o4, 954666000
34
+ tz.transition 2000, 10, :o1, 972806400
35
+ tz.transition 2001, 5, :o4, 989139600
36
+ tz.transition 2001, 9, :o1, 1001836800
37
+ tz.transition 2002, 4, :o4, 1018170000
38
+ tz.transition 2002, 10, :o1, 1035705600
39
+ tz.transition 2003, 4, :o4, 1049619600
40
+ tz.transition 2003, 10, :o1, 1067155200
41
+ tz.transition 2004, 4, :o4, 1081069200
42
+ tz.transition 2004, 10, :o1, 1099209600
43
+ tz.transition 2005, 4, :o4, 1112518800
44
+ tz.transition 2005, 10, :o1, 1130659200
45
+ tz.transition 2006, 4, :o4, 1143968400
46
+ tz.transition 2006, 10, :o1, 1162108800
47
+ tz.transition 2007, 4, :o4, 1175418000
48
+ tz.transition 2007, 10, :o1, 1193558400
49
+ tz.transition 2008, 4, :o4, 1207472400
50
+ tz.transition 2008, 10, :o1, 1225008000
51
+ tz.transition 2009, 4, :o4, 1238922000
52
+ tz.transition 2009, 10, :o1, 1256457600
53
+ tz.transition 2010, 4, :o4, 1270371600
54
+ tz.transition 2010, 10, :o1, 1288512000
55
+ tz.transition 2011, 4, :o4, 1301821200
56
+ tz.transition 2011, 10, :o1, 1319961600
57
+ tz.transition 2012, 4, :o4, 1333270800
58
+ tz.transition 2012, 10, :o1, 1351411200
59
+ tz.transition 2013, 4, :o4, 1365325200
60
+ tz.transition 2013, 10, :o1, 1382860800
61
+ tz.transition 2014, 4, :o4, 1396774800
62
+ tz.transition 2014, 10, :o1, 1414310400
63
+ tz.transition 2015, 4, :o4, 1428224400
64
+ tz.transition 2015, 10, :o1, 1445760000
65
+ tz.transition 2016, 4, :o4, 1459674000
66
+ tz.transition 2016, 10, :o1, 1477814400
67
+ tz.transition 2017, 4, :o4, 1491123600
68
+ tz.transition 2017, 10, :o1, 1509264000
69
+ tz.transition 2018, 4, :o4, 1522573200
70
+ tz.transition 2018, 10, :o1, 1540713600
71
+ tz.transition 2019, 4, :o4, 1554627600
72
+ tz.transition 2019, 10, :o1, 1572163200
73
+ tz.transition 2020, 4, :o4, 1586077200
74
+ tz.transition 2020, 10, :o1, 1603612800
75
+ tz.transition 2021, 4, :o4, 1617526800
76
+ tz.transition 2021, 10, :o1, 1635667200
77
+ tz.transition 2022, 4, :o4, 1648976400
78
+ tz.transition 2022, 10, :o1, 1667116800
79
+ tz.transition 2023, 4, :o4, 1680426000
80
+ tz.transition 2023, 10, :o1, 1698566400
81
+ tz.transition 2024, 4, :o4, 1712480400
82
+ tz.transition 2024, 10, :o1, 1730016000
83
+ tz.transition 2025, 4, :o4, 1743930000
84
+ tz.transition 2025, 10, :o1, 1761465600
85
+ tz.transition 2026, 4, :o4, 1775379600
86
+ tz.transition 2026, 10, :o1, 1792915200
87
+ tz.transition 2027, 4, :o4, 1806829200
88
+ tz.transition 2027, 10, :o1, 1824969600
89
+ tz.transition 2028, 4, :o4, 1838278800
90
+ tz.transition 2028, 10, :o1, 1856419200
91
+ tz.transition 2029, 4, :o4, 1869728400
92
+ tz.transition 2029, 10, :o1, 1887868800
93
+ tz.transition 2030, 4, :o4, 1901782800
94
+ tz.transition 2030, 10, :o1, 1919318400
95
+ tz.transition 2031, 4, :o4, 1933232400
96
+ tz.transition 2031, 10, :o1, 1950768000
97
+ tz.transition 2032, 4, :o4, 1964682000
98
+ tz.transition 2032, 10, :o1, 1982822400
99
+ tz.transition 2033, 4, :o4, 1996131600
100
+ tz.transition 2033, 10, :o1, 2014272000
101
+ tz.transition 2034, 4, :o4, 2027581200
102
+ tz.transition 2034, 10, :o1, 2045721600
103
+ tz.transition 2035, 4, :o4, 2059030800
104
+ tz.transition 2035, 10, :o1, 2077171200
105
+ tz.transition 2036, 4, :o4, 2091085200
106
+ tz.transition 2036, 10, :o1, 2108620800
107
+ tz.transition 2037, 4, :o4, 2122534800
108
+ tz.transition 2037, 10, :o1, 2140070400
109
+ tz.transition 2038, 4, :o4, 19724143, 8
110
+ tz.transition 2038, 10, :o1, 14794367, 6
111
+ tz.transition 2039, 4, :o4, 19727055, 8
112
+ tz.transition 2039, 10, :o1, 14796551, 6
113
+ tz.transition 2040, 4, :o4, 19729967, 8
114
+ tz.transition 2040, 10, :o1, 14798735, 6
115
+ tz.transition 2041, 4, :o4, 19732935, 8
116
+ tz.transition 2041, 10, :o1, 14800919, 6
117
+ tz.transition 2042, 4, :o4, 19735847, 8
118
+ tz.transition 2042, 10, :o1, 14803103, 6
119
+ tz.transition 2043, 4, :o4, 19738759, 8
120
+ tz.transition 2043, 10, :o1, 14805287, 6
121
+ tz.transition 2044, 4, :o4, 19741671, 8
122
+ tz.transition 2044, 10, :o1, 14807513, 6
123
+ tz.transition 2045, 4, :o4, 19744583, 8
124
+ tz.transition 2045, 10, :o1, 14809697, 6
125
+ tz.transition 2046, 4, :o4, 19747495, 8
126
+ tz.transition 2046, 10, :o1, 14811881, 6
127
+ tz.transition 2047, 4, :o4, 19750463, 8
128
+ tz.transition 2047, 10, :o1, 14814065, 6
129
+ tz.transition 2048, 4, :o4, 19753375, 8
130
+ tz.transition 2048, 10, :o1, 14816249, 6
131
+ tz.transition 2049, 4, :o4, 19756287, 8
132
+ tz.transition 2049, 10, :o1, 14818475, 6
133
+ tz.transition 2050, 4, :o4, 19759199, 8
134
+ tz.transition 2050, 10, :o1, 14820659, 6
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,144 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module America
6
+ module Mexico_City
7
+ include TimezoneDefinition
8
+
9
+ timezone 'America/Mexico_City' do |tz|
10
+ tz.offset :o0, -23796, 0, :LMT
11
+ tz.offset :o1, -25200, 0, :MST
12
+ tz.offset :o2, -21600, 0, :CST
13
+ tz.offset :o3, -21600, 3600, :CDT
14
+ tz.offset :o4, -21600, 3600, :CWT
15
+
16
+ tz.transition 1922, 1, :o1, 58153339, 24
17
+ tz.transition 1927, 6, :o2, 9700171, 4
18
+ tz.transition 1930, 11, :o1, 9705183, 4
19
+ tz.transition 1931, 5, :o2, 9705855, 4
20
+ tz.transition 1931, 10, :o1, 9706463, 4
21
+ tz.transition 1932, 4, :o2, 58243171, 24
22
+ tz.transition 1939, 2, :o3, 9717199, 4
23
+ tz.transition 1939, 6, :o2, 58306553, 24
24
+ tz.transition 1940, 12, :o3, 9719891, 4
25
+ tz.transition 1941, 4, :o2, 58322057, 24
26
+ tz.transition 1943, 12, :o4, 9724299, 4
27
+ tz.transition 1944, 5, :o2, 58349081, 24
28
+ tz.transition 1950, 2, :o3, 9733299, 4
29
+ tz.transition 1950, 7, :o2, 58403825, 24
30
+ tz.transition 1996, 4, :o3, 828864000
31
+ tz.transition 1996, 10, :o2, 846399600
32
+ tz.transition 1997, 4, :o3, 860313600
33
+ tz.transition 1997, 10, :o2, 877849200
34
+ tz.transition 1998, 4, :o3, 891763200
35
+ tz.transition 1998, 10, :o2, 909298800
36
+ tz.transition 1999, 4, :o3, 923212800
37
+ tz.transition 1999, 10, :o2, 941353200
38
+ tz.transition 2000, 4, :o3, 954662400
39
+ tz.transition 2000, 10, :o2, 972802800
40
+ tz.transition 2001, 5, :o3, 989136000
41
+ tz.transition 2001, 9, :o2, 1001833200
42
+ tz.transition 2002, 4, :o3, 1018166400
43
+ tz.transition 2002, 10, :o2, 1035702000
44
+ tz.transition 2003, 4, :o3, 1049616000
45
+ tz.transition 2003, 10, :o2, 1067151600
46
+ tz.transition 2004, 4, :o3, 1081065600
47
+ tz.transition 2004, 10, :o2, 1099206000
48
+ tz.transition 2005, 4, :o3, 1112515200
49
+ tz.transition 2005, 10, :o2, 1130655600
50
+ tz.transition 2006, 4, :o3, 1143964800
51
+ tz.transition 2006, 10, :o2, 1162105200
52
+ tz.transition 2007, 4, :o3, 1175414400
53
+ tz.transition 2007, 10, :o2, 1193554800
54
+ tz.transition 2008, 4, :o3, 1207468800
55
+ tz.transition 2008, 10, :o2, 1225004400
56
+ tz.transition 2009, 4, :o3, 1238918400
57
+ tz.transition 2009, 10, :o2, 1256454000
58
+ tz.transition 2010, 4, :o3, 1270368000
59
+ tz.transition 2010, 10, :o2, 1288508400
60
+ tz.transition 2011, 4, :o3, 1301817600
61
+ tz.transition 2011, 10, :o2, 1319958000
62
+ tz.transition 2012, 4, :o3, 1333267200
63
+ tz.transition 2012, 10, :o2, 1351407600
64
+ tz.transition 2013, 4, :o3, 1365321600
65
+ tz.transition 2013, 10, :o2, 1382857200
66
+ tz.transition 2014, 4, :o3, 1396771200
67
+ tz.transition 2014, 10, :o2, 1414306800
68
+ tz.transition 2015, 4, :o3, 1428220800
69
+ tz.transition 2015, 10, :o2, 1445756400
70
+ tz.transition 2016, 4, :o3, 1459670400
71
+ tz.transition 2016, 10, :o2, 1477810800
72
+ tz.transition 2017, 4, :o3, 1491120000
73
+ tz.transition 2017, 10, :o2, 1509260400
74
+ tz.transition 2018, 4, :o3, 1522569600
75
+ tz.transition 2018, 10, :o2, 1540710000
76
+ tz.transition 2019, 4, :o3, 1554624000
77
+ tz.transition 2019, 10, :o2, 1572159600
78
+ tz.transition 2020, 4, :o3, 1586073600
79
+ tz.transition 2020, 10, :o2, 1603609200
80
+ tz.transition 2021, 4, :o3, 1617523200
81
+ tz.transition 2021, 10, :o2, 1635663600
82
+ tz.transition 2022, 4, :o3, 1648972800
83
+ tz.transition 2022, 10, :o2, 1667113200
84
+ tz.transition 2023, 4, :o3, 1680422400
85
+ tz.transition 2023, 10, :o2, 1698562800
86
+ tz.transition 2024, 4, :o3, 1712476800
87
+ tz.transition 2024, 10, :o2, 1730012400
88
+ tz.transition 2025, 4, :o3, 1743926400
89
+ tz.transition 2025, 10, :o2, 1761462000
90
+ tz.transition 2026, 4, :o3, 1775376000
91
+ tz.transition 2026, 10, :o2, 1792911600
92
+ tz.transition 2027, 4, :o3, 1806825600
93
+ tz.transition 2027, 10, :o2, 1824966000
94
+ tz.transition 2028, 4, :o3, 1838275200
95
+ tz.transition 2028, 10, :o2, 1856415600
96
+ tz.transition 2029, 4, :o3, 1869724800
97
+ tz.transition 2029, 10, :o2, 1887865200
98
+ tz.transition 2030, 4, :o3, 1901779200
99
+ tz.transition 2030, 10, :o2, 1919314800
100
+ tz.transition 2031, 4, :o3, 1933228800
101
+ tz.transition 2031, 10, :o2, 1950764400
102
+ tz.transition 2032, 4, :o3, 1964678400
103
+ tz.transition 2032, 10, :o2, 1982818800
104
+ tz.transition 2033, 4, :o3, 1996128000
105
+ tz.transition 2033, 10, :o2, 2014268400
106
+ tz.transition 2034, 4, :o3, 2027577600
107
+ tz.transition 2034, 10, :o2, 2045718000
108
+ tz.transition 2035, 4, :o3, 2059027200
109
+ tz.transition 2035, 10, :o2, 2077167600
110
+ tz.transition 2036, 4, :o3, 2091081600
111
+ tz.transition 2036, 10, :o2, 2108617200
112
+ tz.transition 2037, 4, :o3, 2122531200
113
+ tz.transition 2037, 10, :o2, 2140066800
114
+ tz.transition 2038, 4, :o3, 14793107, 6
115
+ tz.transition 2038, 10, :o2, 59177467, 24
116
+ tz.transition 2039, 4, :o3, 14795291, 6
117
+ tz.transition 2039, 10, :o2, 59186203, 24
118
+ tz.transition 2040, 4, :o3, 14797475, 6
119
+ tz.transition 2040, 10, :o2, 59194939, 24
120
+ tz.transition 2041, 4, :o3, 14799701, 6
121
+ tz.transition 2041, 10, :o2, 59203675, 24
122
+ tz.transition 2042, 4, :o3, 14801885, 6
123
+ tz.transition 2042, 10, :o2, 59212411, 24
124
+ tz.transition 2043, 4, :o3, 14804069, 6
125
+ tz.transition 2043, 10, :o2, 59221147, 24
126
+ tz.transition 2044, 4, :o3, 14806253, 6
127
+ tz.transition 2044, 10, :o2, 59230051, 24
128
+ tz.transition 2045, 4, :o3, 14808437, 6
129
+ tz.transition 2045, 10, :o2, 59238787, 24
130
+ tz.transition 2046, 4, :o3, 14810621, 6
131
+ tz.transition 2046, 10, :o2, 59247523, 24
132
+ tz.transition 2047, 4, :o3, 14812847, 6
133
+ tz.transition 2047, 10, :o2, 59256259, 24
134
+ tz.transition 2048, 4, :o3, 14815031, 6
135
+ tz.transition 2048, 10, :o2, 59264995, 24
136
+ tz.transition 2049, 4, :o3, 14817215, 6
137
+ tz.transition 2049, 10, :o2, 59273899, 24
138
+ tz.transition 2050, 4, :o3, 14819399, 6
139
+ tz.transition 2050, 10, :o2, 59282635, 24
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,131 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module America
6
+ module Monterrey
7
+ include TimezoneDefinition
8
+
9
+ timezone 'America/Monterrey' do |tz|
10
+ tz.offset :o0, -24076, 0, :LMT
11
+ tz.offset :o1, -21600, 0, :CST
12
+ tz.offset :o2, -21600, 3600, :CDT
13
+
14
+ tz.transition 1922, 1, :o1, 9692223, 4
15
+ tz.transition 1988, 4, :o2, 576057600
16
+ tz.transition 1988, 10, :o1, 594198000
17
+ tz.transition 1996, 4, :o2, 828864000
18
+ tz.transition 1996, 10, :o1, 846399600
19
+ tz.transition 1997, 4, :o2, 860313600
20
+ tz.transition 1997, 10, :o1, 877849200
21
+ tz.transition 1998, 4, :o2, 891763200
22
+ tz.transition 1998, 10, :o1, 909298800
23
+ tz.transition 1999, 4, :o2, 923212800
24
+ tz.transition 1999, 10, :o1, 941353200
25
+ tz.transition 2000, 4, :o2, 954662400
26
+ tz.transition 2000, 10, :o1, 972802800
27
+ tz.transition 2001, 5, :o2, 989136000
28
+ tz.transition 2001, 9, :o1, 1001833200
29
+ tz.transition 2002, 4, :o2, 1018166400
30
+ tz.transition 2002, 10, :o1, 1035702000
31
+ tz.transition 2003, 4, :o2, 1049616000
32
+ tz.transition 2003, 10, :o1, 1067151600
33
+ tz.transition 2004, 4, :o2, 1081065600
34
+ tz.transition 2004, 10, :o1, 1099206000
35
+ tz.transition 2005, 4, :o2, 1112515200
36
+ tz.transition 2005, 10, :o1, 1130655600
37
+ tz.transition 2006, 4, :o2, 1143964800
38
+ tz.transition 2006, 10, :o1, 1162105200
39
+ tz.transition 2007, 4, :o2, 1175414400
40
+ tz.transition 2007, 10, :o1, 1193554800
41
+ tz.transition 2008, 4, :o2, 1207468800
42
+ tz.transition 2008, 10, :o1, 1225004400
43
+ tz.transition 2009, 4, :o2, 1238918400
44
+ tz.transition 2009, 10, :o1, 1256454000
45
+ tz.transition 2010, 4, :o2, 1270368000
46
+ tz.transition 2010, 10, :o1, 1288508400
47
+ tz.transition 2011, 4, :o2, 1301817600
48
+ tz.transition 2011, 10, :o1, 1319958000
49
+ tz.transition 2012, 4, :o2, 1333267200
50
+ tz.transition 2012, 10, :o1, 1351407600
51
+ tz.transition 2013, 4, :o2, 1365321600
52
+ tz.transition 2013, 10, :o1, 1382857200
53
+ tz.transition 2014, 4, :o2, 1396771200
54
+ tz.transition 2014, 10, :o1, 1414306800
55
+ tz.transition 2015, 4, :o2, 1428220800
56
+ tz.transition 2015, 10, :o1, 1445756400
57
+ tz.transition 2016, 4, :o2, 1459670400
58
+ tz.transition 2016, 10, :o1, 1477810800
59
+ tz.transition 2017, 4, :o2, 1491120000
60
+ tz.transition 2017, 10, :o1, 1509260400
61
+ tz.transition 2018, 4, :o2, 1522569600
62
+ tz.transition 2018, 10, :o1, 1540710000
63
+ tz.transition 2019, 4, :o2, 1554624000
64
+ tz.transition 2019, 10, :o1, 1572159600
65
+ tz.transition 2020, 4, :o2, 1586073600
66
+ tz.transition 2020, 10, :o1, 1603609200
67
+ tz.transition 2021, 4, :o2, 1617523200
68
+ tz.transition 2021, 10, :o1, 1635663600
69
+ tz.transition 2022, 4, :o2, 1648972800
70
+ tz.transition 2022, 10, :o1, 1667113200
71
+ tz.transition 2023, 4, :o2, 1680422400
72
+ tz.transition 2023, 10, :o1, 1698562800
73
+ tz.transition 2024, 4, :o2, 1712476800
74
+ tz.transition 2024, 10, :o1, 1730012400
75
+ tz.transition 2025, 4, :o2, 1743926400
76
+ tz.transition 2025, 10, :o1, 1761462000
77
+ tz.transition 2026, 4, :o2, 1775376000
78
+ tz.transition 2026, 10, :o1, 1792911600
79
+ tz.transition 2027, 4, :o2, 1806825600
80
+ tz.transition 2027, 10, :o1, 1824966000
81
+ tz.transition 2028, 4, :o2, 1838275200
82
+ tz.transition 2028, 10, :o1, 1856415600
83
+ tz.transition 2029, 4, :o2, 1869724800
84
+ tz.transition 2029, 10, :o1, 1887865200
85
+ tz.transition 2030, 4, :o2, 1901779200
86
+ tz.transition 2030, 10, :o1, 1919314800
87
+ tz.transition 2031, 4, :o2, 1933228800
88
+ tz.transition 2031, 10, :o1, 1950764400
89
+ tz.transition 2032, 4, :o2, 1964678400
90
+ tz.transition 2032, 10, :o1, 1982818800
91
+ tz.transition 2033, 4, :o2, 1996128000
92
+ tz.transition 2033, 10, :o1, 2014268400
93
+ tz.transition 2034, 4, :o2, 2027577600
94
+ tz.transition 2034, 10, :o1, 2045718000
95
+ tz.transition 2035, 4, :o2, 2059027200
96
+ tz.transition 2035, 10, :o1, 2077167600
97
+ tz.transition 2036, 4, :o2, 2091081600
98
+ tz.transition 2036, 10, :o1, 2108617200
99
+ tz.transition 2037, 4, :o2, 2122531200
100
+ tz.transition 2037, 10, :o1, 2140066800
101
+ tz.transition 2038, 4, :o2, 14793107, 6
102
+ tz.transition 2038, 10, :o1, 59177467, 24
103
+ tz.transition 2039, 4, :o2, 14795291, 6
104
+ tz.transition 2039, 10, :o1, 59186203, 24
105
+ tz.transition 2040, 4, :o2, 14797475, 6
106
+ tz.transition 2040, 10, :o1, 59194939, 24
107
+ tz.transition 2041, 4, :o2, 14799701, 6
108
+ tz.transition 2041, 10, :o1, 59203675, 24
109
+ tz.transition 2042, 4, :o2, 14801885, 6
110
+ tz.transition 2042, 10, :o1, 59212411, 24
111
+ tz.transition 2043, 4, :o2, 14804069, 6
112
+ tz.transition 2043, 10, :o1, 59221147, 24
113
+ tz.transition 2044, 4, :o2, 14806253, 6
114
+ tz.transition 2044, 10, :o1, 59230051, 24
115
+ tz.transition 2045, 4, :o2, 14808437, 6
116
+ tz.transition 2045, 10, :o1, 59238787, 24
117
+ tz.transition 2046, 4, :o2, 14810621, 6
118
+ tz.transition 2046, 10, :o1, 59247523, 24
119
+ tz.transition 2047, 4, :o2, 14812847, 6
120
+ tz.transition 2047, 10, :o1, 59256259, 24
121
+ tz.transition 2048, 4, :o2, 14815031, 6
122
+ tz.transition 2048, 10, :o1, 59264995, 24
123
+ tz.transition 2049, 4, :o2, 14817215, 6
124
+ tz.transition 2049, 10, :o1, 59273899, 24
125
+ tz.transition 2050, 4, :o2, 14819399, 6
126
+ tz.transition 2050, 10, :o1, 59282635, 24
127
+ end
128
+ end
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,282 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module America
6
+ module New_York
7
+ include TimezoneDefinition
8
+
9
+ timezone 'America/New_York' do |tz|
10
+ tz.offset :o0, -17762, 0, :LMT
11
+ tz.offset :o1, -18000, 0, :EST
12
+ tz.offset :o2, -18000, 3600, :EDT
13
+ tz.offset :o3, -18000, 3600, :EWT
14
+ tz.offset :o4, -18000, 3600, :EPT
15
+
16
+ tz.transition 1883, 11, :o1, 57819197, 24
17
+ tz.transition 1918, 3, :o2, 58120411, 24
18
+ tz.transition 1918, 10, :o1, 9687575, 4
19
+ tz.transition 1919, 3, :o2, 58129147, 24
20
+ tz.transition 1919, 10, :o1, 9689031, 4
21
+ tz.transition 1920, 3, :o2, 58137883, 24
22
+ tz.transition 1920, 10, :o1, 9690515, 4
23
+ tz.transition 1921, 4, :o2, 58147291, 24
24
+ tz.transition 1921, 9, :o1, 9691831, 4
25
+ tz.transition 1922, 4, :o2, 58156195, 24
26
+ tz.transition 1922, 9, :o1, 9693287, 4
27
+ tz.transition 1923, 4, :o2, 58164931, 24
28
+ tz.transition 1923, 9, :o1, 9694771, 4
29
+ tz.transition 1924, 4, :o2, 58173667, 24
30
+ tz.transition 1924, 9, :o1, 9696227, 4
31
+ tz.transition 1925, 4, :o2, 58182403, 24
32
+ tz.transition 1925, 9, :o1, 9697683, 4
33
+ tz.transition 1926, 4, :o2, 58191139, 24
34
+ tz.transition 1926, 9, :o1, 9699139, 4
35
+ tz.transition 1927, 4, :o2, 58199875, 24
36
+ tz.transition 1927, 9, :o1, 9700595, 4
37
+ tz.transition 1928, 4, :o2, 58208779, 24
38
+ tz.transition 1928, 9, :o1, 9702079, 4
39
+ tz.transition 1929, 4, :o2, 58217515, 24
40
+ tz.transition 1929, 9, :o1, 9703535, 4
41
+ tz.transition 1930, 4, :o2, 58226251, 24
42
+ tz.transition 1930, 9, :o1, 9704991, 4
43
+ tz.transition 1931, 4, :o2, 58234987, 24
44
+ tz.transition 1931, 9, :o1, 9706447, 4
45
+ tz.transition 1932, 4, :o2, 58243723, 24
46
+ tz.transition 1932, 9, :o1, 9707903, 4
47
+ tz.transition 1933, 4, :o2, 58252627, 24
48
+ tz.transition 1933, 9, :o1, 9709359, 4
49
+ tz.transition 1934, 4, :o2, 58261363, 24
50
+ tz.transition 1934, 9, :o1, 9710843, 4
51
+ tz.transition 1935, 4, :o2, 58270099, 24
52
+ tz.transition 1935, 9, :o1, 9712299, 4
53
+ tz.transition 1936, 4, :o2, 58278835, 24
54
+ tz.transition 1936, 9, :o1, 9713755, 4
55
+ tz.transition 1937, 4, :o2, 58287571, 24
56
+ tz.transition 1937, 9, :o1, 9715211, 4
57
+ tz.transition 1938, 4, :o2, 58296307, 24
58
+ tz.transition 1938, 9, :o1, 9716667, 4
59
+ tz.transition 1939, 4, :o2, 58305211, 24
60
+ tz.transition 1939, 9, :o1, 9718123, 4
61
+ tz.transition 1940, 4, :o2, 58313947, 24
62
+ tz.transition 1940, 9, :o1, 9719607, 4
63
+ tz.transition 1941, 4, :o2, 58322683, 24
64
+ tz.transition 1941, 9, :o1, 9721063, 4
65
+ tz.transition 1942, 2, :o3, 58329595, 24
66
+ tz.transition 1945, 8, :o4, 58360379, 24
67
+ tz.transition 1945, 9, :o1, 9726915, 4
68
+ tz.transition 1946, 4, :o2, 58366531, 24
69
+ tz.transition 1946, 9, :o1, 9728371, 4
70
+ tz.transition 1947, 4, :o2, 58375267, 24
71
+ tz.transition 1947, 9, :o1, 9729827, 4
72
+ tz.transition 1948, 4, :o2, 58384003, 24
73
+ tz.transition 1948, 9, :o1, 9731283, 4
74
+ tz.transition 1949, 4, :o2, 58392739, 24
75
+ tz.transition 1949, 9, :o1, 9732739, 4
76
+ tz.transition 1950, 4, :o2, 58401643, 24
77
+ tz.transition 1950, 9, :o1, 9734195, 4
78
+ tz.transition 1951, 4, :o2, 58410379, 24
79
+ tz.transition 1951, 9, :o1, 9735679, 4
80
+ tz.transition 1952, 4, :o2, 58419115, 24
81
+ tz.transition 1952, 9, :o1, 9737135, 4
82
+ tz.transition 1953, 4, :o2, 58427851, 24
83
+ tz.transition 1953, 9, :o1, 9738591, 4
84
+ tz.transition 1954, 4, :o2, 58436587, 24
85
+ tz.transition 1954, 9, :o1, 9740047, 4
86
+ tz.transition 1955, 4, :o2, 58445323, 24
87
+ tz.transition 1955, 10, :o1, 9741643, 4
88
+ tz.transition 1956, 4, :o2, 58454227, 24
89
+ tz.transition 1956, 10, :o1, 9743099, 4
90
+ tz.transition 1957, 4, :o2, 58462963, 24
91
+ tz.transition 1957, 10, :o1, 9744555, 4
92
+ tz.transition 1958, 4, :o2, 58471699, 24
93
+ tz.transition 1958, 10, :o1, 9746011, 4
94
+ tz.transition 1959, 4, :o2, 58480435, 24
95
+ tz.transition 1959, 10, :o1, 9747467, 4
96
+ tz.transition 1960, 4, :o2, 58489171, 24
97
+ tz.transition 1960, 10, :o1, 9748951, 4
98
+ tz.transition 1961, 4, :o2, 58498075, 24
99
+ tz.transition 1961, 10, :o1, 9750407, 4
100
+ tz.transition 1962, 4, :o2, 58506811, 24
101
+ tz.transition 1962, 10, :o1, 9751863, 4
102
+ tz.transition 1963, 4, :o2, 58515547, 24
103
+ tz.transition 1963, 10, :o1, 9753319, 4
104
+ tz.transition 1964, 4, :o2, 58524283, 24
105
+ tz.transition 1964, 10, :o1, 9754775, 4
106
+ tz.transition 1965, 4, :o2, 58533019, 24
107
+ tz.transition 1965, 10, :o1, 9756259, 4
108
+ tz.transition 1966, 4, :o2, 58541755, 24
109
+ tz.transition 1966, 10, :o1, 9757715, 4
110
+ tz.transition 1967, 4, :o2, 58550659, 24
111
+ tz.transition 1967, 10, :o1, 9759171, 4
112
+ tz.transition 1968, 4, :o2, 58559395, 24
113
+ tz.transition 1968, 10, :o1, 9760627, 4
114
+ tz.transition 1969, 4, :o2, 58568131, 24
115
+ tz.transition 1969, 10, :o1, 9762083, 4
116
+ tz.transition 1970, 4, :o2, 9961200
117
+ tz.transition 1970, 10, :o1, 25682400
118
+ tz.transition 1971, 4, :o2, 41410800
119
+ tz.transition 1971, 10, :o1, 57736800
120
+ tz.transition 1972, 4, :o2, 73465200
121
+ tz.transition 1972, 10, :o1, 89186400
122
+ tz.transition 1973, 4, :o2, 104914800
123
+ tz.transition 1973, 10, :o1, 120636000
124
+ tz.transition 1974, 1, :o2, 126687600
125
+ tz.transition 1974, 10, :o1, 152085600
126
+ tz.transition 1975, 2, :o2, 162370800
127
+ tz.transition 1975, 10, :o1, 183535200
128
+ tz.transition 1976, 4, :o2, 199263600
129
+ tz.transition 1976, 10, :o1, 215589600
130
+ tz.transition 1977, 4, :o2, 230713200
131
+ tz.transition 1977, 10, :o1, 247039200
132
+ tz.transition 1978, 4, :o2, 262767600
133
+ tz.transition 1978, 10, :o1, 278488800
134
+ tz.transition 1979, 4, :o2, 294217200
135
+ tz.transition 1979, 10, :o1, 309938400
136
+ tz.transition 1980, 4, :o2, 325666800
137
+ tz.transition 1980, 10, :o1, 341388000
138
+ tz.transition 1981, 4, :o2, 357116400
139
+ tz.transition 1981, 10, :o1, 372837600
140
+ tz.transition 1982, 4, :o2, 388566000
141
+ tz.transition 1982, 10, :o1, 404892000
142
+ tz.transition 1983, 4, :o2, 420015600
143
+ tz.transition 1983, 10, :o1, 436341600
144
+ tz.transition 1984, 4, :o2, 452070000
145
+ tz.transition 1984, 10, :o1, 467791200
146
+ tz.transition 1985, 4, :o2, 483519600
147
+ tz.transition 1985, 10, :o1, 499240800
148
+ tz.transition 1986, 4, :o2, 514969200
149
+ tz.transition 1986, 10, :o1, 530690400
150
+ tz.transition 1987, 4, :o2, 544604400
151
+ tz.transition 1987, 10, :o1, 562140000
152
+ tz.transition 1988, 4, :o2, 576054000
153
+ tz.transition 1988, 10, :o1, 594194400
154
+ tz.transition 1989, 4, :o2, 607503600
155
+ tz.transition 1989, 10, :o1, 625644000
156
+ tz.transition 1990, 4, :o2, 638953200
157
+ tz.transition 1990, 10, :o1, 657093600
158
+ tz.transition 1991, 4, :o2, 671007600
159
+ tz.transition 1991, 10, :o1, 688543200
160
+ tz.transition 1992, 4, :o2, 702457200
161
+ tz.transition 1992, 10, :o1, 719992800
162
+ tz.transition 1993, 4, :o2, 733906800
163
+ tz.transition 1993, 10, :o1, 752047200
164
+ tz.transition 1994, 4, :o2, 765356400
165
+ tz.transition 1994, 10, :o1, 783496800
166
+ tz.transition 1995, 4, :o2, 796806000
167
+ tz.transition 1995, 10, :o1, 814946400
168
+ tz.transition 1996, 4, :o2, 828860400
169
+ tz.transition 1996, 10, :o1, 846396000
170
+ tz.transition 1997, 4, :o2, 860310000
171
+ tz.transition 1997, 10, :o1, 877845600
172
+ tz.transition 1998, 4, :o2, 891759600
173
+ tz.transition 1998, 10, :o1, 909295200
174
+ tz.transition 1999, 4, :o2, 923209200
175
+ tz.transition 1999, 10, :o1, 941349600
176
+ tz.transition 2000, 4, :o2, 954658800
177
+ tz.transition 2000, 10, :o1, 972799200
178
+ tz.transition 2001, 4, :o2, 986108400
179
+ tz.transition 2001, 10, :o1, 1004248800
180
+ tz.transition 2002, 4, :o2, 1018162800
181
+ tz.transition 2002, 10, :o1, 1035698400
182
+ tz.transition 2003, 4, :o2, 1049612400
183
+ tz.transition 2003, 10, :o1, 1067148000
184
+ tz.transition 2004, 4, :o2, 1081062000
185
+ tz.transition 2004, 10, :o1, 1099202400
186
+ tz.transition 2005, 4, :o2, 1112511600
187
+ tz.transition 2005, 10, :o1, 1130652000
188
+ tz.transition 2006, 4, :o2, 1143961200
189
+ tz.transition 2006, 10, :o1, 1162101600
190
+ tz.transition 2007, 3, :o2, 1173596400
191
+ tz.transition 2007, 11, :o1, 1194156000
192
+ tz.transition 2008, 3, :o2, 1205046000
193
+ tz.transition 2008, 11, :o1, 1225605600
194
+ tz.transition 2009, 3, :o2, 1236495600
195
+ tz.transition 2009, 11, :o1, 1257055200
196
+ tz.transition 2010, 3, :o2, 1268550000
197
+ tz.transition 2010, 11, :o1, 1289109600
198
+ tz.transition 2011, 3, :o2, 1299999600
199
+ tz.transition 2011, 11, :o1, 1320559200
200
+ tz.transition 2012, 3, :o2, 1331449200
201
+ tz.transition 2012, 11, :o1, 1352008800
202
+ tz.transition 2013, 3, :o2, 1362898800
203
+ tz.transition 2013, 11, :o1, 1383458400
204
+ tz.transition 2014, 3, :o2, 1394348400
205
+ tz.transition 2014, 11, :o1, 1414908000
206
+ tz.transition 2015, 3, :o2, 1425798000
207
+ tz.transition 2015, 11, :o1, 1446357600
208
+ tz.transition 2016, 3, :o2, 1457852400
209
+ tz.transition 2016, 11, :o1, 1478412000
210
+ tz.transition 2017, 3, :o2, 1489302000
211
+ tz.transition 2017, 11, :o1, 1509861600
212
+ tz.transition 2018, 3, :o2, 1520751600
213
+ tz.transition 2018, 11, :o1, 1541311200
214
+ tz.transition 2019, 3, :o2, 1552201200
215
+ tz.transition 2019, 11, :o1, 1572760800
216
+ tz.transition 2020, 3, :o2, 1583650800
217
+ tz.transition 2020, 11, :o1, 1604210400
218
+ tz.transition 2021, 3, :o2, 1615705200
219
+ tz.transition 2021, 11, :o1, 1636264800
220
+ tz.transition 2022, 3, :o2, 1647154800
221
+ tz.transition 2022, 11, :o1, 1667714400
222
+ tz.transition 2023, 3, :o2, 1678604400
223
+ tz.transition 2023, 11, :o1, 1699164000
224
+ tz.transition 2024, 3, :o2, 1710054000
225
+ tz.transition 2024, 11, :o1, 1730613600
226
+ tz.transition 2025, 3, :o2, 1741503600
227
+ tz.transition 2025, 11, :o1, 1762063200
228
+ tz.transition 2026, 3, :o2, 1772953200
229
+ tz.transition 2026, 11, :o1, 1793512800
230
+ tz.transition 2027, 3, :o2, 1805007600
231
+ tz.transition 2027, 11, :o1, 1825567200
232
+ tz.transition 2028, 3, :o2, 1836457200
233
+ tz.transition 2028, 11, :o1, 1857016800
234
+ tz.transition 2029, 3, :o2, 1867906800
235
+ tz.transition 2029, 11, :o1, 1888466400
236
+ tz.transition 2030, 3, :o2, 1899356400
237
+ tz.transition 2030, 11, :o1, 1919916000
238
+ tz.transition 2031, 3, :o2, 1930806000
239
+ tz.transition 2031, 11, :o1, 1951365600
240
+ tz.transition 2032, 3, :o2, 1962860400
241
+ tz.transition 2032, 11, :o1, 1983420000
242
+ tz.transition 2033, 3, :o2, 1994310000
243
+ tz.transition 2033, 11, :o1, 2014869600
244
+ tz.transition 2034, 3, :o2, 2025759600
245
+ tz.transition 2034, 11, :o1, 2046319200
246
+ tz.transition 2035, 3, :o2, 2057209200
247
+ tz.transition 2035, 11, :o1, 2077768800
248
+ tz.transition 2036, 3, :o2, 2088658800
249
+ tz.transition 2036, 11, :o1, 2109218400
250
+ tz.transition 2037, 3, :o2, 2120108400
251
+ tz.transition 2037, 11, :o1, 2140668000
252
+ tz.transition 2038, 3, :o2, 59171923, 24
253
+ tz.transition 2038, 11, :o1, 9862939, 4
254
+ tz.transition 2039, 3, :o2, 59180659, 24
255
+ tz.transition 2039, 11, :o1, 9864395, 4
256
+ tz.transition 2040, 3, :o2, 59189395, 24
257
+ tz.transition 2040, 11, :o1, 9865851, 4
258
+ tz.transition 2041, 3, :o2, 59198131, 24
259
+ tz.transition 2041, 11, :o1, 9867307, 4
260
+ tz.transition 2042, 3, :o2, 59206867, 24
261
+ tz.transition 2042, 11, :o1, 9868763, 4
262
+ tz.transition 2043, 3, :o2, 59215603, 24
263
+ tz.transition 2043, 11, :o1, 9870219, 4
264
+ tz.transition 2044, 3, :o2, 59224507, 24
265
+ tz.transition 2044, 11, :o1, 9871703, 4
266
+ tz.transition 2045, 3, :o2, 59233243, 24
267
+ tz.transition 2045, 11, :o1, 9873159, 4
268
+ tz.transition 2046, 3, :o2, 59241979, 24
269
+ tz.transition 2046, 11, :o1, 9874615, 4
270
+ tz.transition 2047, 3, :o2, 59250715, 24
271
+ tz.transition 2047, 11, :o1, 9876071, 4
272
+ tz.transition 2048, 3, :o2, 59259451, 24
273
+ tz.transition 2048, 11, :o1, 9877527, 4
274
+ tz.transition 2049, 3, :o2, 59268355, 24
275
+ tz.transition 2049, 11, :o1, 9879011, 4
276
+ tz.transition 2050, 3, :o2, 59277091, 24
277
+ tz.transition 2050, 11, :o1, 9880467, 4
278
+ end
279
+ end
280
+ end
281
+ end
282
+ end