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,13 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Europe
6
+ module Bratislava
7
+ include TimezoneDefinition
8
+
9
+ linked_timezone 'Europe/Bratislava', 'Europe/Prague'
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,232 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Europe
6
+ module Brussels
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Europe/Brussels' do |tz|
10
+ tz.offset :o0, 1050, 0, :LMT
11
+ tz.offset :o1, 1050, 0, :BMT
12
+ tz.offset :o2, 0, 0, :WET
13
+ tz.offset :o3, 3600, 0, :CET
14
+ tz.offset :o4, 3600, 3600, :CEST
15
+ tz.offset :o5, 0, 3600, :WEST
16
+
17
+ tz.transition 1879, 12, :o1, 1386844121, 576
18
+ tz.transition 1892, 5, :o2, 1389438713, 576
19
+ tz.transition 1914, 11, :o3, 4840889, 2
20
+ tz.transition 1916, 4, :o4, 58103627, 24
21
+ tz.transition 1916, 9, :o3, 58107299, 24
22
+ tz.transition 1917, 4, :o4, 58112029, 24
23
+ tz.transition 1917, 9, :o3, 58115725, 24
24
+ tz.transition 1918, 4, :o4, 58120765, 24
25
+ tz.transition 1918, 9, :o3, 58124461, 24
26
+ tz.transition 1918, 11, :o2, 58125815, 24
27
+ tz.transition 1919, 3, :o5, 58128467, 24
28
+ tz.transition 1919, 10, :o2, 58133675, 24
29
+ tz.transition 1920, 2, :o5, 58136867, 24
30
+ tz.transition 1920, 10, :o2, 58142915, 24
31
+ tz.transition 1921, 3, :o5, 58146323, 24
32
+ tz.transition 1921, 10, :o2, 58151723, 24
33
+ tz.transition 1922, 3, :o5, 58155347, 24
34
+ tz.transition 1922, 10, :o2, 58160051, 24
35
+ tz.transition 1923, 4, :o5, 58164755, 24
36
+ tz.transition 1923, 10, :o2, 58168787, 24
37
+ tz.transition 1924, 3, :o5, 58172987, 24
38
+ tz.transition 1924, 10, :o2, 58177523, 24
39
+ tz.transition 1925, 4, :o5, 58181891, 24
40
+ tz.transition 1925, 10, :o2, 58186259, 24
41
+ tz.transition 1926, 4, :o5, 58190963, 24
42
+ tz.transition 1926, 10, :o2, 58194995, 24
43
+ tz.transition 1927, 4, :o5, 58199531, 24
44
+ tz.transition 1927, 10, :o2, 58203731, 24
45
+ tz.transition 1928, 4, :o5, 58208435, 24
46
+ tz.transition 1928, 10, :o2, 29106319, 12
47
+ tz.transition 1929, 4, :o5, 29108671, 12
48
+ tz.transition 1929, 10, :o2, 29110687, 12
49
+ tz.transition 1930, 4, :o5, 29112955, 12
50
+ tz.transition 1930, 10, :o2, 29115055, 12
51
+ tz.transition 1931, 4, :o5, 29117407, 12
52
+ tz.transition 1931, 10, :o2, 29119423, 12
53
+ tz.transition 1932, 4, :o5, 29121607, 12
54
+ tz.transition 1932, 10, :o2, 29123791, 12
55
+ tz.transition 1933, 3, :o5, 29125891, 12
56
+ tz.transition 1933, 10, :o2, 29128243, 12
57
+ tz.transition 1934, 4, :o5, 29130427, 12
58
+ tz.transition 1934, 10, :o2, 29132611, 12
59
+ tz.transition 1935, 3, :o5, 29134711, 12
60
+ tz.transition 1935, 10, :o2, 29136979, 12
61
+ tz.transition 1936, 4, :o5, 29139331, 12
62
+ tz.transition 1936, 10, :o2, 29141347, 12
63
+ tz.transition 1937, 4, :o5, 29143531, 12
64
+ tz.transition 1937, 10, :o2, 29145715, 12
65
+ tz.transition 1938, 3, :o5, 29147815, 12
66
+ tz.transition 1938, 10, :o2, 29150083, 12
67
+ tz.transition 1939, 4, :o5, 29152435, 12
68
+ tz.transition 1939, 11, :o2, 29155039, 12
69
+ tz.transition 1940, 2, :o5, 29156215, 12
70
+ tz.transition 1940, 5, :o4, 29157235, 12
71
+ tz.transition 1942, 11, :o3, 58335973, 24
72
+ tz.transition 1943, 3, :o4, 58339501, 24
73
+ tz.transition 1943, 10, :o3, 58344037, 24
74
+ tz.transition 1944, 4, :o4, 58348405, 24
75
+ tz.transition 1944, 9, :o3, 58352413, 24
76
+ tz.transition 1945, 4, :o4, 58357141, 24
77
+ tz.transition 1945, 9, :o3, 58361149, 24
78
+ tz.transition 1946, 5, :o4, 58367029, 24
79
+ tz.transition 1946, 10, :o3, 58370413, 24
80
+ tz.transition 1977, 4, :o4, 228877200
81
+ tz.transition 1977, 9, :o3, 243997200
82
+ tz.transition 1978, 4, :o4, 260326800
83
+ tz.transition 1978, 10, :o3, 276051600
84
+ tz.transition 1979, 4, :o4, 291776400
85
+ tz.transition 1979, 9, :o3, 307501200
86
+ tz.transition 1980, 4, :o4, 323830800
87
+ tz.transition 1980, 9, :o3, 338950800
88
+ tz.transition 1981, 3, :o4, 354675600
89
+ tz.transition 1981, 9, :o3, 370400400
90
+ tz.transition 1982, 3, :o4, 386125200
91
+ tz.transition 1982, 9, :o3, 401850000
92
+ tz.transition 1983, 3, :o4, 417574800
93
+ tz.transition 1983, 9, :o3, 433299600
94
+ tz.transition 1984, 3, :o4, 449024400
95
+ tz.transition 1984, 9, :o3, 465354000
96
+ tz.transition 1985, 3, :o4, 481078800
97
+ tz.transition 1985, 9, :o3, 496803600
98
+ tz.transition 1986, 3, :o4, 512528400
99
+ tz.transition 1986, 9, :o3, 528253200
100
+ tz.transition 1987, 3, :o4, 543978000
101
+ tz.transition 1987, 9, :o3, 559702800
102
+ tz.transition 1988, 3, :o4, 575427600
103
+ tz.transition 1988, 9, :o3, 591152400
104
+ tz.transition 1989, 3, :o4, 606877200
105
+ tz.transition 1989, 9, :o3, 622602000
106
+ tz.transition 1990, 3, :o4, 638326800
107
+ tz.transition 1990, 9, :o3, 654656400
108
+ tz.transition 1991, 3, :o4, 670381200
109
+ tz.transition 1991, 9, :o3, 686106000
110
+ tz.transition 1992, 3, :o4, 701830800
111
+ tz.transition 1992, 9, :o3, 717555600
112
+ tz.transition 1993, 3, :o4, 733280400
113
+ tz.transition 1993, 9, :o3, 749005200
114
+ tz.transition 1994, 3, :o4, 764730000
115
+ tz.transition 1994, 9, :o3, 780454800
116
+ tz.transition 1995, 3, :o4, 796179600
117
+ tz.transition 1995, 9, :o3, 811904400
118
+ tz.transition 1996, 3, :o4, 828234000
119
+ tz.transition 1996, 10, :o3, 846378000
120
+ tz.transition 1997, 3, :o4, 859683600
121
+ tz.transition 1997, 10, :o3, 877827600
122
+ tz.transition 1998, 3, :o4, 891133200
123
+ tz.transition 1998, 10, :o3, 909277200
124
+ tz.transition 1999, 3, :o4, 922582800
125
+ tz.transition 1999, 10, :o3, 941331600
126
+ tz.transition 2000, 3, :o4, 954032400
127
+ tz.transition 2000, 10, :o3, 972781200
128
+ tz.transition 2001, 3, :o4, 985482000
129
+ tz.transition 2001, 10, :o3, 1004230800
130
+ tz.transition 2002, 3, :o4, 1017536400
131
+ tz.transition 2002, 10, :o3, 1035680400
132
+ tz.transition 2003, 3, :o4, 1048986000
133
+ tz.transition 2003, 10, :o3, 1067130000
134
+ tz.transition 2004, 3, :o4, 1080435600
135
+ tz.transition 2004, 10, :o3, 1099184400
136
+ tz.transition 2005, 3, :o4, 1111885200
137
+ tz.transition 2005, 10, :o3, 1130634000
138
+ tz.transition 2006, 3, :o4, 1143334800
139
+ tz.transition 2006, 10, :o3, 1162083600
140
+ tz.transition 2007, 3, :o4, 1174784400
141
+ tz.transition 2007, 10, :o3, 1193533200
142
+ tz.transition 2008, 3, :o4, 1206838800
143
+ tz.transition 2008, 10, :o3, 1224982800
144
+ tz.transition 2009, 3, :o4, 1238288400
145
+ tz.transition 2009, 10, :o3, 1256432400
146
+ tz.transition 2010, 3, :o4, 1269738000
147
+ tz.transition 2010, 10, :o3, 1288486800
148
+ tz.transition 2011, 3, :o4, 1301187600
149
+ tz.transition 2011, 10, :o3, 1319936400
150
+ tz.transition 2012, 3, :o4, 1332637200
151
+ tz.transition 2012, 10, :o3, 1351386000
152
+ tz.transition 2013, 3, :o4, 1364691600
153
+ tz.transition 2013, 10, :o3, 1382835600
154
+ tz.transition 2014, 3, :o4, 1396141200
155
+ tz.transition 2014, 10, :o3, 1414285200
156
+ tz.transition 2015, 3, :o4, 1427590800
157
+ tz.transition 2015, 10, :o3, 1445734800
158
+ tz.transition 2016, 3, :o4, 1459040400
159
+ tz.transition 2016, 10, :o3, 1477789200
160
+ tz.transition 2017, 3, :o4, 1490490000
161
+ tz.transition 2017, 10, :o3, 1509238800
162
+ tz.transition 2018, 3, :o4, 1521939600
163
+ tz.transition 2018, 10, :o3, 1540688400
164
+ tz.transition 2019, 3, :o4, 1553994000
165
+ tz.transition 2019, 10, :o3, 1572138000
166
+ tz.transition 2020, 3, :o4, 1585443600
167
+ tz.transition 2020, 10, :o3, 1603587600
168
+ tz.transition 2021, 3, :o4, 1616893200
169
+ tz.transition 2021, 10, :o3, 1635642000
170
+ tz.transition 2022, 3, :o4, 1648342800
171
+ tz.transition 2022, 10, :o3, 1667091600
172
+ tz.transition 2023, 3, :o4, 1679792400
173
+ tz.transition 2023, 10, :o3, 1698541200
174
+ tz.transition 2024, 3, :o4, 1711846800
175
+ tz.transition 2024, 10, :o3, 1729990800
176
+ tz.transition 2025, 3, :o4, 1743296400
177
+ tz.transition 2025, 10, :o3, 1761440400
178
+ tz.transition 2026, 3, :o4, 1774746000
179
+ tz.transition 2026, 10, :o3, 1792890000
180
+ tz.transition 2027, 3, :o4, 1806195600
181
+ tz.transition 2027, 10, :o3, 1824944400
182
+ tz.transition 2028, 3, :o4, 1837645200
183
+ tz.transition 2028, 10, :o3, 1856394000
184
+ tz.transition 2029, 3, :o4, 1869094800
185
+ tz.transition 2029, 10, :o3, 1887843600
186
+ tz.transition 2030, 3, :o4, 1901149200
187
+ tz.transition 2030, 10, :o3, 1919293200
188
+ tz.transition 2031, 3, :o4, 1932598800
189
+ tz.transition 2031, 10, :o3, 1950742800
190
+ tz.transition 2032, 3, :o4, 1964048400
191
+ tz.transition 2032, 10, :o3, 1982797200
192
+ tz.transition 2033, 3, :o4, 1995498000
193
+ tz.transition 2033, 10, :o3, 2014246800
194
+ tz.transition 2034, 3, :o4, 2026947600
195
+ tz.transition 2034, 10, :o3, 2045696400
196
+ tz.transition 2035, 3, :o4, 2058397200
197
+ tz.transition 2035, 10, :o3, 2077146000
198
+ tz.transition 2036, 3, :o4, 2090451600
199
+ tz.transition 2036, 10, :o3, 2108595600
200
+ tz.transition 2037, 3, :o4, 2121901200
201
+ tz.transition 2037, 10, :o3, 2140045200
202
+ tz.transition 2038, 3, :o4, 59172253, 24
203
+ tz.transition 2038, 10, :o3, 59177461, 24
204
+ tz.transition 2039, 3, :o4, 59180989, 24
205
+ tz.transition 2039, 10, :o3, 59186197, 24
206
+ tz.transition 2040, 3, :o4, 59189725, 24
207
+ tz.transition 2040, 10, :o3, 59194933, 24
208
+ tz.transition 2041, 3, :o4, 59198629, 24
209
+ tz.transition 2041, 10, :o3, 59203669, 24
210
+ tz.transition 2042, 3, :o4, 59207365, 24
211
+ tz.transition 2042, 10, :o3, 59212405, 24
212
+ tz.transition 2043, 3, :o4, 59216101, 24
213
+ tz.transition 2043, 10, :o3, 59221141, 24
214
+ tz.transition 2044, 3, :o4, 59224837, 24
215
+ tz.transition 2044, 10, :o3, 59230045, 24
216
+ tz.transition 2045, 3, :o4, 59233573, 24
217
+ tz.transition 2045, 10, :o3, 59238781, 24
218
+ tz.transition 2046, 3, :o4, 59242309, 24
219
+ tz.transition 2046, 10, :o3, 59247517, 24
220
+ tz.transition 2047, 3, :o4, 59251213, 24
221
+ tz.transition 2047, 10, :o3, 59256253, 24
222
+ tz.transition 2048, 3, :o4, 59259949, 24
223
+ tz.transition 2048, 10, :o3, 59264989, 24
224
+ tz.transition 2049, 3, :o4, 59268685, 24
225
+ tz.transition 2049, 10, :o3, 59273893, 24
226
+ tz.transition 2050, 3, :o4, 59277421, 24
227
+ tz.transition 2050, 10, :o3, 59282629, 24
228
+ end
229
+ end
230
+ end
231
+ end
232
+ end
@@ -0,0 +1,181 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Europe
6
+ module Bucharest
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Europe/Bucharest' do |tz|
10
+ tz.offset :o0, 6264, 0, :LMT
11
+ tz.offset :o1, 6264, 0, :BMT
12
+ tz.offset :o2, 7200, 0, :EET
13
+ tz.offset :o3, 7200, 3600, :EEST
14
+
15
+ tz.transition 1891, 9, :o1, 964802571, 400
16
+ tz.transition 1931, 7, :o2, 970618571, 400
17
+ tz.transition 1932, 5, :o3, 29122181, 12
18
+ tz.transition 1932, 10, :o2, 29123789, 12
19
+ tz.transition 1933, 4, :o3, 29125973, 12
20
+ tz.transition 1933, 9, :o2, 29128157, 12
21
+ tz.transition 1934, 4, :o3, 29130425, 12
22
+ tz.transition 1934, 10, :o2, 29132609, 12
23
+ tz.transition 1935, 4, :o3, 29134793, 12
24
+ tz.transition 1935, 10, :o2, 29136977, 12
25
+ tz.transition 1936, 4, :o3, 29139161, 12
26
+ tz.transition 1936, 10, :o2, 29141345, 12
27
+ tz.transition 1937, 4, :o3, 29143529, 12
28
+ tz.transition 1937, 10, :o2, 29145713, 12
29
+ tz.transition 1938, 4, :o3, 29147897, 12
30
+ tz.transition 1938, 10, :o2, 29150081, 12
31
+ tz.transition 1939, 4, :o3, 29152265, 12
32
+ tz.transition 1939, 9, :o2, 29154449, 12
33
+ tz.transition 1979, 5, :o3, 296604000
34
+ tz.transition 1979, 9, :o2, 307486800
35
+ tz.transition 1980, 4, :o3, 323816400
36
+ tz.transition 1980, 9, :o2, 338940000
37
+ tz.transition 1981, 3, :o3, 354672000
38
+ tz.transition 1981, 9, :o2, 370396800
39
+ tz.transition 1982, 3, :o3, 386121600
40
+ tz.transition 1982, 9, :o2, 401846400
41
+ tz.transition 1983, 3, :o3, 417571200
42
+ tz.transition 1983, 9, :o2, 433296000
43
+ tz.transition 1984, 3, :o3, 449020800
44
+ tz.transition 1984, 9, :o2, 465350400
45
+ tz.transition 1985, 3, :o3, 481075200
46
+ tz.transition 1985, 9, :o2, 496800000
47
+ tz.transition 1986, 3, :o3, 512524800
48
+ tz.transition 1986, 9, :o2, 528249600
49
+ tz.transition 1987, 3, :o3, 543974400
50
+ tz.transition 1987, 9, :o2, 559699200
51
+ tz.transition 1988, 3, :o3, 575424000
52
+ tz.transition 1988, 9, :o2, 591148800
53
+ tz.transition 1989, 3, :o3, 606873600
54
+ tz.transition 1989, 9, :o2, 622598400
55
+ tz.transition 1990, 3, :o3, 638323200
56
+ tz.transition 1990, 9, :o2, 654652800
57
+ tz.transition 1991, 3, :o3, 670370400
58
+ tz.transition 1991, 9, :o2, 686095200
59
+ tz.transition 1992, 3, :o3, 701820000
60
+ tz.transition 1992, 9, :o2, 717544800
61
+ tz.transition 1993, 3, :o3, 733269600
62
+ tz.transition 1993, 9, :o2, 748994400
63
+ tz.transition 1994, 3, :o3, 764719200
64
+ tz.transition 1994, 9, :o2, 780440400
65
+ tz.transition 1995, 3, :o3, 796168800
66
+ tz.transition 1995, 9, :o2, 811890000
67
+ tz.transition 1996, 3, :o3, 828223200
68
+ tz.transition 1996, 10, :o2, 846363600
69
+ tz.transition 1997, 3, :o3, 859683600
70
+ tz.transition 1997, 10, :o2, 877827600
71
+ tz.transition 1998, 3, :o3, 891133200
72
+ tz.transition 1998, 10, :o2, 909277200
73
+ tz.transition 1999, 3, :o3, 922582800
74
+ tz.transition 1999, 10, :o2, 941331600
75
+ tz.transition 2000, 3, :o3, 954032400
76
+ tz.transition 2000, 10, :o2, 972781200
77
+ tz.transition 2001, 3, :o3, 985482000
78
+ tz.transition 2001, 10, :o2, 1004230800
79
+ tz.transition 2002, 3, :o3, 1017536400
80
+ tz.transition 2002, 10, :o2, 1035680400
81
+ tz.transition 2003, 3, :o3, 1048986000
82
+ tz.transition 2003, 10, :o2, 1067130000
83
+ tz.transition 2004, 3, :o3, 1080435600
84
+ tz.transition 2004, 10, :o2, 1099184400
85
+ tz.transition 2005, 3, :o3, 1111885200
86
+ tz.transition 2005, 10, :o2, 1130634000
87
+ tz.transition 2006, 3, :o3, 1143334800
88
+ tz.transition 2006, 10, :o2, 1162083600
89
+ tz.transition 2007, 3, :o3, 1174784400
90
+ tz.transition 2007, 10, :o2, 1193533200
91
+ tz.transition 2008, 3, :o3, 1206838800
92
+ tz.transition 2008, 10, :o2, 1224982800
93
+ tz.transition 2009, 3, :o3, 1238288400
94
+ tz.transition 2009, 10, :o2, 1256432400
95
+ tz.transition 2010, 3, :o3, 1269738000
96
+ tz.transition 2010, 10, :o2, 1288486800
97
+ tz.transition 2011, 3, :o3, 1301187600
98
+ tz.transition 2011, 10, :o2, 1319936400
99
+ tz.transition 2012, 3, :o3, 1332637200
100
+ tz.transition 2012, 10, :o2, 1351386000
101
+ tz.transition 2013, 3, :o3, 1364691600
102
+ tz.transition 2013, 10, :o2, 1382835600
103
+ tz.transition 2014, 3, :o3, 1396141200
104
+ tz.transition 2014, 10, :o2, 1414285200
105
+ tz.transition 2015, 3, :o3, 1427590800
106
+ tz.transition 2015, 10, :o2, 1445734800
107
+ tz.transition 2016, 3, :o3, 1459040400
108
+ tz.transition 2016, 10, :o2, 1477789200
109
+ tz.transition 2017, 3, :o3, 1490490000
110
+ tz.transition 2017, 10, :o2, 1509238800
111
+ tz.transition 2018, 3, :o3, 1521939600
112
+ tz.transition 2018, 10, :o2, 1540688400
113
+ tz.transition 2019, 3, :o3, 1553994000
114
+ tz.transition 2019, 10, :o2, 1572138000
115
+ tz.transition 2020, 3, :o3, 1585443600
116
+ tz.transition 2020, 10, :o2, 1603587600
117
+ tz.transition 2021, 3, :o3, 1616893200
118
+ tz.transition 2021, 10, :o2, 1635642000
119
+ tz.transition 2022, 3, :o3, 1648342800
120
+ tz.transition 2022, 10, :o2, 1667091600
121
+ tz.transition 2023, 3, :o3, 1679792400
122
+ tz.transition 2023, 10, :o2, 1698541200
123
+ tz.transition 2024, 3, :o3, 1711846800
124
+ tz.transition 2024, 10, :o2, 1729990800
125
+ tz.transition 2025, 3, :o3, 1743296400
126
+ tz.transition 2025, 10, :o2, 1761440400
127
+ tz.transition 2026, 3, :o3, 1774746000
128
+ tz.transition 2026, 10, :o2, 1792890000
129
+ tz.transition 2027, 3, :o3, 1806195600
130
+ tz.transition 2027, 10, :o2, 1824944400
131
+ tz.transition 2028, 3, :o3, 1837645200
132
+ tz.transition 2028, 10, :o2, 1856394000
133
+ tz.transition 2029, 3, :o3, 1869094800
134
+ tz.transition 2029, 10, :o2, 1887843600
135
+ tz.transition 2030, 3, :o3, 1901149200
136
+ tz.transition 2030, 10, :o2, 1919293200
137
+ tz.transition 2031, 3, :o3, 1932598800
138
+ tz.transition 2031, 10, :o2, 1950742800
139
+ tz.transition 2032, 3, :o3, 1964048400
140
+ tz.transition 2032, 10, :o2, 1982797200
141
+ tz.transition 2033, 3, :o3, 1995498000
142
+ tz.transition 2033, 10, :o2, 2014246800
143
+ tz.transition 2034, 3, :o3, 2026947600
144
+ tz.transition 2034, 10, :o2, 2045696400
145
+ tz.transition 2035, 3, :o3, 2058397200
146
+ tz.transition 2035, 10, :o2, 2077146000
147
+ tz.transition 2036, 3, :o3, 2090451600
148
+ tz.transition 2036, 10, :o2, 2108595600
149
+ tz.transition 2037, 3, :o3, 2121901200
150
+ tz.transition 2037, 10, :o2, 2140045200
151
+ tz.transition 2038, 3, :o3, 59172253, 24
152
+ tz.transition 2038, 10, :o2, 59177461, 24
153
+ tz.transition 2039, 3, :o3, 59180989, 24
154
+ tz.transition 2039, 10, :o2, 59186197, 24
155
+ tz.transition 2040, 3, :o3, 59189725, 24
156
+ tz.transition 2040, 10, :o2, 59194933, 24
157
+ tz.transition 2041, 3, :o3, 59198629, 24
158
+ tz.transition 2041, 10, :o2, 59203669, 24
159
+ tz.transition 2042, 3, :o3, 59207365, 24
160
+ tz.transition 2042, 10, :o2, 59212405, 24
161
+ tz.transition 2043, 3, :o3, 59216101, 24
162
+ tz.transition 2043, 10, :o2, 59221141, 24
163
+ tz.transition 2044, 3, :o3, 59224837, 24
164
+ tz.transition 2044, 10, :o2, 59230045, 24
165
+ tz.transition 2045, 3, :o3, 59233573, 24
166
+ tz.transition 2045, 10, :o2, 59238781, 24
167
+ tz.transition 2046, 3, :o3, 59242309, 24
168
+ tz.transition 2046, 10, :o2, 59247517, 24
169
+ tz.transition 2047, 3, :o3, 59251213, 24
170
+ tz.transition 2047, 10, :o2, 59256253, 24
171
+ tz.transition 2048, 3, :o3, 59259949, 24
172
+ tz.transition 2048, 10, :o2, 59264989, 24
173
+ tz.transition 2049, 3, :o3, 59268685, 24
174
+ tz.transition 2049, 10, :o2, 59273893, 24
175
+ tz.transition 2050, 3, :o3, 59277421, 24
176
+ tz.transition 2050, 10, :o2, 59282629, 24
177
+ end
178
+ end
179
+ end
180
+ end
181
+ end
@@ -0,0 +1,197 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Europe
6
+ module Budapest
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Europe/Budapest' do |tz|
10
+ tz.offset :o0, 4580, 0, :LMT
11
+ tz.offset :o1, 3600, 0, :CET
12
+ tz.offset :o2, 3600, 3600, :CEST
13
+
14
+ tz.transition 1890, 9, :o1, 10418291051, 4320
15
+ tz.transition 1916, 4, :o2, 29051813, 12
16
+ tz.transition 1916, 9, :o1, 58107299, 24
17
+ tz.transition 1917, 4, :o2, 58112029, 24
18
+ tz.transition 1917, 9, :o1, 58115725, 24
19
+ tz.transition 1918, 4, :o2, 29060215, 12
20
+ tz.transition 1918, 9, :o1, 58124773, 24
21
+ tz.transition 1919, 4, :o2, 29064763, 12
22
+ tz.transition 1919, 9, :o1, 58133197, 24
23
+ tz.transition 1920, 4, :o2, 29069035, 12
24
+ tz.transition 1920, 9, :o1, 58142341, 24
25
+ tz.transition 1941, 4, :o2, 58322173, 24
26
+ tz.transition 1942, 11, :o1, 58335973, 24
27
+ tz.transition 1943, 3, :o2, 58339501, 24
28
+ tz.transition 1943, 10, :o1, 58344037, 24
29
+ tz.transition 1944, 4, :o2, 58348405, 24
30
+ tz.transition 1944, 10, :o1, 58352773, 24
31
+ tz.transition 1945, 5, :o2, 29178929, 12
32
+ tz.transition 1945, 11, :o1, 29181149, 12
33
+ tz.transition 1946, 3, :o2, 58365853, 24
34
+ tz.transition 1946, 10, :o1, 58370389, 24
35
+ tz.transition 1947, 4, :o2, 58374757, 24
36
+ tz.transition 1947, 10, :o1, 58379125, 24
37
+ tz.transition 1948, 4, :o2, 58383493, 24
38
+ tz.transition 1948, 10, :o1, 58387861, 24
39
+ tz.transition 1949, 4, :o2, 58392397, 24
40
+ tz.transition 1949, 10, :o1, 58396597, 24
41
+ tz.transition 1950, 4, :o2, 58401325, 24
42
+ tz.transition 1950, 10, :o1, 58405861, 24
43
+ tz.transition 1954, 5, :o2, 58437251, 24
44
+ tz.transition 1954, 10, :o1, 29220221, 12
45
+ tz.transition 1955, 5, :o2, 58446011, 24
46
+ tz.transition 1955, 10, :o1, 29224601, 12
47
+ tz.transition 1956, 6, :o2, 58455059, 24
48
+ tz.transition 1956, 9, :o1, 29228957, 12
49
+ tz.transition 1957, 6, :o2, 4871983, 2
50
+ tz.transition 1957, 9, :o1, 58466653, 24
51
+ tz.transition 1980, 4, :o2, 323827200
52
+ tz.transition 1980, 9, :o1, 338950800
53
+ tz.transition 1981, 3, :o2, 354675600
54
+ tz.transition 1981, 9, :o1, 370400400
55
+ tz.transition 1982, 3, :o2, 386125200
56
+ tz.transition 1982, 9, :o1, 401850000
57
+ tz.transition 1983, 3, :o2, 417574800
58
+ tz.transition 1983, 9, :o1, 433299600
59
+ tz.transition 1984, 3, :o2, 449024400
60
+ tz.transition 1984, 9, :o1, 465354000
61
+ tz.transition 1985, 3, :o2, 481078800
62
+ tz.transition 1985, 9, :o1, 496803600
63
+ tz.transition 1986, 3, :o2, 512528400
64
+ tz.transition 1986, 9, :o1, 528253200
65
+ tz.transition 1987, 3, :o2, 543978000
66
+ tz.transition 1987, 9, :o1, 559702800
67
+ tz.transition 1988, 3, :o2, 575427600
68
+ tz.transition 1988, 9, :o1, 591152400
69
+ tz.transition 1989, 3, :o2, 606877200
70
+ tz.transition 1989, 9, :o1, 622602000
71
+ tz.transition 1990, 3, :o2, 638326800
72
+ tz.transition 1990, 9, :o1, 654656400
73
+ tz.transition 1991, 3, :o2, 670381200
74
+ tz.transition 1991, 9, :o1, 686106000
75
+ tz.transition 1992, 3, :o2, 701830800
76
+ tz.transition 1992, 9, :o1, 717555600
77
+ tz.transition 1993, 3, :o2, 733280400
78
+ tz.transition 1993, 9, :o1, 749005200
79
+ tz.transition 1994, 3, :o2, 764730000
80
+ tz.transition 1994, 9, :o1, 780454800
81
+ tz.transition 1995, 3, :o2, 796179600
82
+ tz.transition 1995, 9, :o1, 811904400
83
+ tz.transition 1996, 3, :o2, 828234000
84
+ tz.transition 1996, 10, :o1, 846378000
85
+ tz.transition 1997, 3, :o2, 859683600
86
+ tz.transition 1997, 10, :o1, 877827600
87
+ tz.transition 1998, 3, :o2, 891133200
88
+ tz.transition 1998, 10, :o1, 909277200
89
+ tz.transition 1999, 3, :o2, 922582800
90
+ tz.transition 1999, 10, :o1, 941331600
91
+ tz.transition 2000, 3, :o2, 954032400
92
+ tz.transition 2000, 10, :o1, 972781200
93
+ tz.transition 2001, 3, :o2, 985482000
94
+ tz.transition 2001, 10, :o1, 1004230800
95
+ tz.transition 2002, 3, :o2, 1017536400
96
+ tz.transition 2002, 10, :o1, 1035680400
97
+ tz.transition 2003, 3, :o2, 1048986000
98
+ tz.transition 2003, 10, :o1, 1067130000
99
+ tz.transition 2004, 3, :o2, 1080435600
100
+ tz.transition 2004, 10, :o1, 1099184400
101
+ tz.transition 2005, 3, :o2, 1111885200
102
+ tz.transition 2005, 10, :o1, 1130634000
103
+ tz.transition 2006, 3, :o2, 1143334800
104
+ tz.transition 2006, 10, :o1, 1162083600
105
+ tz.transition 2007, 3, :o2, 1174784400
106
+ tz.transition 2007, 10, :o1, 1193533200
107
+ tz.transition 2008, 3, :o2, 1206838800
108
+ tz.transition 2008, 10, :o1, 1224982800
109
+ tz.transition 2009, 3, :o2, 1238288400
110
+ tz.transition 2009, 10, :o1, 1256432400
111
+ tz.transition 2010, 3, :o2, 1269738000
112
+ tz.transition 2010, 10, :o1, 1288486800
113
+ tz.transition 2011, 3, :o2, 1301187600
114
+ tz.transition 2011, 10, :o1, 1319936400
115
+ tz.transition 2012, 3, :o2, 1332637200
116
+ tz.transition 2012, 10, :o1, 1351386000
117
+ tz.transition 2013, 3, :o2, 1364691600
118
+ tz.transition 2013, 10, :o1, 1382835600
119
+ tz.transition 2014, 3, :o2, 1396141200
120
+ tz.transition 2014, 10, :o1, 1414285200
121
+ tz.transition 2015, 3, :o2, 1427590800
122
+ tz.transition 2015, 10, :o1, 1445734800
123
+ tz.transition 2016, 3, :o2, 1459040400
124
+ tz.transition 2016, 10, :o1, 1477789200
125
+ tz.transition 2017, 3, :o2, 1490490000
126
+ tz.transition 2017, 10, :o1, 1509238800
127
+ tz.transition 2018, 3, :o2, 1521939600
128
+ tz.transition 2018, 10, :o1, 1540688400
129
+ tz.transition 2019, 3, :o2, 1553994000
130
+ tz.transition 2019, 10, :o1, 1572138000
131
+ tz.transition 2020, 3, :o2, 1585443600
132
+ tz.transition 2020, 10, :o1, 1603587600
133
+ tz.transition 2021, 3, :o2, 1616893200
134
+ tz.transition 2021, 10, :o1, 1635642000
135
+ tz.transition 2022, 3, :o2, 1648342800
136
+ tz.transition 2022, 10, :o1, 1667091600
137
+ tz.transition 2023, 3, :o2, 1679792400
138
+ tz.transition 2023, 10, :o1, 1698541200
139
+ tz.transition 2024, 3, :o2, 1711846800
140
+ tz.transition 2024, 10, :o1, 1729990800
141
+ tz.transition 2025, 3, :o2, 1743296400
142
+ tz.transition 2025, 10, :o1, 1761440400
143
+ tz.transition 2026, 3, :o2, 1774746000
144
+ tz.transition 2026, 10, :o1, 1792890000
145
+ tz.transition 2027, 3, :o2, 1806195600
146
+ tz.transition 2027, 10, :o1, 1824944400
147
+ tz.transition 2028, 3, :o2, 1837645200
148
+ tz.transition 2028, 10, :o1, 1856394000
149
+ tz.transition 2029, 3, :o2, 1869094800
150
+ tz.transition 2029, 10, :o1, 1887843600
151
+ tz.transition 2030, 3, :o2, 1901149200
152
+ tz.transition 2030, 10, :o1, 1919293200
153
+ tz.transition 2031, 3, :o2, 1932598800
154
+ tz.transition 2031, 10, :o1, 1950742800
155
+ tz.transition 2032, 3, :o2, 1964048400
156
+ tz.transition 2032, 10, :o1, 1982797200
157
+ tz.transition 2033, 3, :o2, 1995498000
158
+ tz.transition 2033, 10, :o1, 2014246800
159
+ tz.transition 2034, 3, :o2, 2026947600
160
+ tz.transition 2034, 10, :o1, 2045696400
161
+ tz.transition 2035, 3, :o2, 2058397200
162
+ tz.transition 2035, 10, :o1, 2077146000
163
+ tz.transition 2036, 3, :o2, 2090451600
164
+ tz.transition 2036, 10, :o1, 2108595600
165
+ tz.transition 2037, 3, :o2, 2121901200
166
+ tz.transition 2037, 10, :o1, 2140045200
167
+ tz.transition 2038, 3, :o2, 59172253, 24
168
+ tz.transition 2038, 10, :o1, 59177461, 24
169
+ tz.transition 2039, 3, :o2, 59180989, 24
170
+ tz.transition 2039, 10, :o1, 59186197, 24
171
+ tz.transition 2040, 3, :o2, 59189725, 24
172
+ tz.transition 2040, 10, :o1, 59194933, 24
173
+ tz.transition 2041, 3, :o2, 59198629, 24
174
+ tz.transition 2041, 10, :o1, 59203669, 24
175
+ tz.transition 2042, 3, :o2, 59207365, 24
176
+ tz.transition 2042, 10, :o1, 59212405, 24
177
+ tz.transition 2043, 3, :o2, 59216101, 24
178
+ tz.transition 2043, 10, :o1, 59221141, 24
179
+ tz.transition 2044, 3, :o2, 59224837, 24
180
+ tz.transition 2044, 10, :o1, 59230045, 24
181
+ tz.transition 2045, 3, :o2, 59233573, 24
182
+ tz.transition 2045, 10, :o1, 59238781, 24
183
+ tz.transition 2046, 3, :o2, 59242309, 24
184
+ tz.transition 2046, 10, :o1, 59247517, 24
185
+ tz.transition 2047, 3, :o2, 59251213, 24
186
+ tz.transition 2047, 10, :o1, 59256253, 24
187
+ tz.transition 2048, 3, :o2, 59259949, 24
188
+ tz.transition 2048, 10, :o1, 59264989, 24
189
+ tz.transition 2049, 3, :o2, 59268685, 24
190
+ tz.transition 2049, 10, :o1, 59273893, 24
191
+ tz.transition 2050, 3, :o2, 59277421, 24
192
+ tz.transition 2050, 10, :o1, 59282629, 24
193
+ end
194
+ end
195
+ end
196
+ end
197
+ end