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,185 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Australia
6
+ module Melbourne
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Australia/Melbourne' do |tz|
10
+ tz.offset :o0, 34792, 0, :LMT
11
+ tz.offset :o1, 36000, 0, :EST
12
+ tz.offset :o2, 36000, 3600, :EST
13
+
14
+ tz.transition 1895, 1, :o1, 26062831051, 10800
15
+ tz.transition 1916, 12, :o2, 3486569881, 1440
16
+ tz.transition 1917, 3, :o1, 19370497, 8
17
+ tz.transition 1941, 12, :o2, 14582161, 6
18
+ tz.transition 1942, 3, :o1, 19443577, 8
19
+ tz.transition 1942, 9, :o2, 14583775, 6
20
+ tz.transition 1943, 3, :o1, 19446489, 8
21
+ tz.transition 1943, 10, :o2, 14586001, 6
22
+ tz.transition 1944, 3, :o1, 19449401, 8
23
+ tz.transition 1971, 10, :o2, 57686400
24
+ tz.transition 1972, 2, :o1, 67968000
25
+ tz.transition 1972, 10, :o2, 89136000
26
+ tz.transition 1973, 3, :o1, 100022400
27
+ tz.transition 1973, 10, :o2, 120585600
28
+ tz.transition 1974, 3, :o1, 131472000
29
+ tz.transition 1974, 10, :o2, 152035200
30
+ tz.transition 1975, 3, :o1, 162921600
31
+ tz.transition 1975, 10, :o2, 183484800
32
+ tz.transition 1976, 3, :o1, 194976000
33
+ tz.transition 1976, 10, :o2, 215539200
34
+ tz.transition 1977, 3, :o1, 226425600
35
+ tz.transition 1977, 10, :o2, 246988800
36
+ tz.transition 1978, 3, :o1, 257875200
37
+ tz.transition 1978, 10, :o2, 278438400
38
+ tz.transition 1979, 3, :o1, 289324800
39
+ tz.transition 1979, 10, :o2, 309888000
40
+ tz.transition 1980, 3, :o1, 320774400
41
+ tz.transition 1980, 10, :o2, 341337600
42
+ tz.transition 1981, 2, :o1, 352224000
43
+ tz.transition 1981, 10, :o2, 372787200
44
+ tz.transition 1982, 3, :o1, 384278400
45
+ tz.transition 1982, 10, :o2, 404841600
46
+ tz.transition 1983, 3, :o1, 415728000
47
+ tz.transition 1983, 10, :o2, 436291200
48
+ tz.transition 1984, 3, :o1, 447177600
49
+ tz.transition 1984, 10, :o2, 467740800
50
+ tz.transition 1985, 3, :o1, 478627200
51
+ tz.transition 1985, 10, :o2, 499190400
52
+ tz.transition 1986, 3, :o1, 511286400
53
+ tz.transition 1986, 10, :o2, 530035200
54
+ tz.transition 1987, 3, :o1, 542736000
55
+ tz.transition 1987, 10, :o2, 561484800
56
+ tz.transition 1988, 3, :o1, 574790400
57
+ tz.transition 1988, 10, :o2, 594144000
58
+ tz.transition 1989, 3, :o1, 606240000
59
+ tz.transition 1989, 10, :o2, 625593600
60
+ tz.transition 1990, 3, :o1, 637689600
61
+ tz.transition 1990, 10, :o2, 657043200
62
+ tz.transition 1991, 3, :o1, 667929600
63
+ tz.transition 1991, 10, :o2, 688492800
64
+ tz.transition 1992, 2, :o1, 699379200
65
+ tz.transition 1992, 10, :o2, 719942400
66
+ tz.transition 1993, 3, :o1, 731433600
67
+ tz.transition 1993, 10, :o2, 751996800
68
+ tz.transition 1994, 3, :o1, 762883200
69
+ tz.transition 1994, 10, :o2, 783446400
70
+ tz.transition 1995, 3, :o1, 796147200
71
+ tz.transition 1995, 10, :o2, 814896000
72
+ tz.transition 1996, 3, :o1, 828201600
73
+ tz.transition 1996, 10, :o2, 846345600
74
+ tz.transition 1997, 3, :o1, 859651200
75
+ tz.transition 1997, 10, :o2, 877795200
76
+ tz.transition 1998, 3, :o1, 891100800
77
+ tz.transition 1998, 10, :o2, 909244800
78
+ tz.transition 1999, 3, :o1, 922550400
79
+ tz.transition 1999, 10, :o2, 941299200
80
+ tz.transition 2000, 3, :o1, 954000000
81
+ tz.transition 2000, 8, :o2, 967305600
82
+ tz.transition 2001, 3, :o1, 985449600
83
+ tz.transition 2001, 10, :o2, 1004198400
84
+ tz.transition 2002, 3, :o1, 1017504000
85
+ tz.transition 2002, 10, :o2, 1035648000
86
+ tz.transition 2003, 3, :o1, 1048953600
87
+ tz.transition 2003, 10, :o2, 1067097600
88
+ tz.transition 2004, 3, :o1, 1080403200
89
+ tz.transition 2004, 10, :o2, 1099152000
90
+ tz.transition 2005, 3, :o1, 1111852800
91
+ tz.transition 2005, 10, :o2, 1130601600
92
+ tz.transition 2006, 4, :o1, 1143907200
93
+ tz.transition 2006, 10, :o2, 1162051200
94
+ tz.transition 2007, 3, :o1, 1174752000
95
+ tz.transition 2007, 10, :o2, 1193500800
96
+ tz.transition 2008, 4, :o1, 1207411200
97
+ tz.transition 2008, 10, :o2, 1223136000
98
+ tz.transition 2009, 4, :o1, 1238860800
99
+ tz.transition 2009, 10, :o2, 1254585600
100
+ tz.transition 2010, 4, :o1, 1270310400
101
+ tz.transition 2010, 10, :o2, 1286035200
102
+ tz.transition 2011, 4, :o1, 1301760000
103
+ tz.transition 2011, 10, :o2, 1317484800
104
+ tz.transition 2012, 3, :o1, 1333209600
105
+ tz.transition 2012, 10, :o2, 1349539200
106
+ tz.transition 2013, 4, :o1, 1365264000
107
+ tz.transition 2013, 10, :o2, 1380988800
108
+ tz.transition 2014, 4, :o1, 1396713600
109
+ tz.transition 2014, 10, :o2, 1412438400
110
+ tz.transition 2015, 4, :o1, 1428163200
111
+ tz.transition 2015, 10, :o2, 1443888000
112
+ tz.transition 2016, 4, :o1, 1459612800
113
+ tz.transition 2016, 10, :o2, 1475337600
114
+ tz.transition 2017, 4, :o1, 1491062400
115
+ tz.transition 2017, 9, :o2, 1506787200
116
+ tz.transition 2018, 3, :o1, 1522512000
117
+ tz.transition 2018, 10, :o2, 1538841600
118
+ tz.transition 2019, 4, :o1, 1554566400
119
+ tz.transition 2019, 10, :o2, 1570291200
120
+ tz.transition 2020, 4, :o1, 1586016000
121
+ tz.transition 2020, 10, :o2, 1601740800
122
+ tz.transition 2021, 4, :o1, 1617465600
123
+ tz.transition 2021, 10, :o2, 1633190400
124
+ tz.transition 2022, 4, :o1, 1648915200
125
+ tz.transition 2022, 10, :o2, 1664640000
126
+ tz.transition 2023, 4, :o1, 1680364800
127
+ tz.transition 2023, 9, :o2, 1696089600
128
+ tz.transition 2024, 4, :o1, 1712419200
129
+ tz.transition 2024, 10, :o2, 1728144000
130
+ tz.transition 2025, 4, :o1, 1743868800
131
+ tz.transition 2025, 10, :o2, 1759593600
132
+ tz.transition 2026, 4, :o1, 1775318400
133
+ tz.transition 2026, 10, :o2, 1791043200
134
+ tz.transition 2027, 4, :o1, 1806768000
135
+ tz.transition 2027, 10, :o2, 1822492800
136
+ tz.transition 2028, 4, :o1, 1838217600
137
+ tz.transition 2028, 9, :o2, 1853942400
138
+ tz.transition 2029, 3, :o1, 1869667200
139
+ tz.transition 2029, 10, :o2, 1885996800
140
+ tz.transition 2030, 4, :o1, 1901721600
141
+ tz.transition 2030, 10, :o2, 1917446400
142
+ tz.transition 2031, 4, :o1, 1933171200
143
+ tz.transition 2031, 10, :o2, 1948896000
144
+ tz.transition 2032, 4, :o1, 1964620800
145
+ tz.transition 2032, 10, :o2, 1980345600
146
+ tz.transition 2033, 4, :o1, 1996070400
147
+ tz.transition 2033, 10, :o2, 2011795200
148
+ tz.transition 2034, 4, :o1, 2027520000
149
+ tz.transition 2034, 9, :o2, 2043244800
150
+ tz.transition 2035, 3, :o1, 2058969600
151
+ tz.transition 2035, 10, :o2, 2075299200
152
+ tz.transition 2036, 4, :o1, 2091024000
153
+ tz.transition 2036, 10, :o2, 2106748800
154
+ tz.transition 2037, 4, :o1, 2122473600
155
+ tz.transition 2037, 10, :o2, 2138198400
156
+ tz.transition 2038, 4, :o1, 14793103, 6
157
+ tz.transition 2038, 10, :o2, 14794195, 6
158
+ tz.transition 2039, 4, :o1, 14795287, 6
159
+ tz.transition 2039, 10, :o2, 14796379, 6
160
+ tz.transition 2040, 3, :o1, 14797471, 6
161
+ tz.transition 2040, 10, :o2, 14798605, 6
162
+ tz.transition 2041, 4, :o1, 14799697, 6
163
+ tz.transition 2041, 10, :o2, 14800789, 6
164
+ tz.transition 2042, 4, :o1, 14801881, 6
165
+ tz.transition 2042, 10, :o2, 14802973, 6
166
+ tz.transition 2043, 4, :o1, 14804065, 6
167
+ tz.transition 2043, 10, :o2, 14805157, 6
168
+ tz.transition 2044, 4, :o1, 14806249, 6
169
+ tz.transition 2044, 10, :o2, 14807341, 6
170
+ tz.transition 2045, 4, :o1, 14808433, 6
171
+ tz.transition 2045, 9, :o2, 14809525, 6
172
+ tz.transition 2046, 3, :o1, 14810617, 6
173
+ tz.transition 2046, 10, :o2, 14811751, 6
174
+ tz.transition 2047, 4, :o1, 14812843, 6
175
+ tz.transition 2047, 10, :o2, 14813935, 6
176
+ tz.transition 2048, 4, :o1, 14815027, 6
177
+ tz.transition 2048, 10, :o2, 14816119, 6
178
+ tz.transition 2049, 4, :o1, 14817211, 6
179
+ tz.transition 2049, 10, :o2, 14818303, 6
180
+ tz.transition 2050, 4, :o1, 14819395, 6
181
+ end
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,37 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Australia
6
+ module Perth
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Australia/Perth' do |tz|
10
+ tz.offset :o0, 27804, 0, :LMT
11
+ tz.offset :o1, 28800, 0, :WST
12
+ tz.offset :o2, 28800, 3600, :WST
13
+
14
+ tz.transition 1895, 11, :o1, 17377402883, 7200
15
+ tz.transition 1916, 12, :o2, 3486570001, 1440
16
+ tz.transition 1917, 3, :o1, 58111493, 24
17
+ tz.transition 1941, 12, :o2, 9721441, 4
18
+ tz.transition 1942, 3, :o1, 58330733, 24
19
+ tz.transition 1942, 9, :o2, 9722517, 4
20
+ tz.transition 1943, 3, :o1, 58339469, 24
21
+ tz.transition 1974, 10, :o2, 152042400
22
+ tz.transition 1975, 3, :o1, 162928800
23
+ tz.transition 1983, 10, :o2, 436298400
24
+ tz.transition 1984, 3, :o1, 447184800
25
+ tz.transition 1991, 11, :o2, 690314400
26
+ tz.transition 1992, 2, :o1, 699386400
27
+ tz.transition 2006, 12, :o2, 1165082400
28
+ tz.transition 2007, 3, :o1, 1174759200
29
+ tz.transition 2007, 10, :o2, 1193508000
30
+ tz.transition 2008, 3, :o1, 1206813600
31
+ tz.transition 2008, 10, :o2, 1224957600
32
+ tz.transition 2009, 3, :o1, 1238263200
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,185 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Australia
6
+ module Sydney
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Australia/Sydney' do |tz|
10
+ tz.offset :o0, 36292, 0, :LMT
11
+ tz.offset :o1, 36000, 0, :EST
12
+ tz.offset :o2, 36000, 3600, :EST
13
+
14
+ tz.transition 1895, 1, :o1, 52125661727, 21600
15
+ tz.transition 1916, 12, :o2, 3486569881, 1440
16
+ tz.transition 1917, 3, :o1, 19370497, 8
17
+ tz.transition 1941, 12, :o2, 14582161, 6
18
+ tz.transition 1942, 3, :o1, 19443577, 8
19
+ tz.transition 1942, 9, :o2, 14583775, 6
20
+ tz.transition 1943, 3, :o1, 19446489, 8
21
+ tz.transition 1943, 10, :o2, 14586001, 6
22
+ tz.transition 1944, 3, :o1, 19449401, 8
23
+ tz.transition 1971, 10, :o2, 57686400
24
+ tz.transition 1972, 2, :o1, 67968000
25
+ tz.transition 1972, 10, :o2, 89136000
26
+ tz.transition 1973, 3, :o1, 100022400
27
+ tz.transition 1973, 10, :o2, 120585600
28
+ tz.transition 1974, 3, :o1, 131472000
29
+ tz.transition 1974, 10, :o2, 152035200
30
+ tz.transition 1975, 3, :o1, 162921600
31
+ tz.transition 1975, 10, :o2, 183484800
32
+ tz.transition 1976, 3, :o1, 194976000
33
+ tz.transition 1976, 10, :o2, 215539200
34
+ tz.transition 1977, 3, :o1, 226425600
35
+ tz.transition 1977, 10, :o2, 246988800
36
+ tz.transition 1978, 3, :o1, 257875200
37
+ tz.transition 1978, 10, :o2, 278438400
38
+ tz.transition 1979, 3, :o1, 289324800
39
+ tz.transition 1979, 10, :o2, 309888000
40
+ tz.transition 1980, 3, :o1, 320774400
41
+ tz.transition 1980, 10, :o2, 341337600
42
+ tz.transition 1981, 2, :o1, 352224000
43
+ tz.transition 1981, 10, :o2, 372787200
44
+ tz.transition 1982, 4, :o1, 386697600
45
+ tz.transition 1982, 10, :o2, 404841600
46
+ tz.transition 1983, 3, :o1, 415728000
47
+ tz.transition 1983, 10, :o2, 436291200
48
+ tz.transition 1984, 3, :o1, 447177600
49
+ tz.transition 1984, 10, :o2, 467740800
50
+ tz.transition 1985, 3, :o1, 478627200
51
+ tz.transition 1985, 10, :o2, 499190400
52
+ tz.transition 1986, 3, :o1, 511286400
53
+ tz.transition 1986, 10, :o2, 530035200
54
+ tz.transition 1987, 3, :o1, 542736000
55
+ tz.transition 1987, 10, :o2, 562089600
56
+ tz.transition 1988, 3, :o1, 574790400
57
+ tz.transition 1988, 10, :o2, 594144000
58
+ tz.transition 1989, 3, :o1, 606240000
59
+ tz.transition 1989, 10, :o2, 625593600
60
+ tz.transition 1990, 3, :o1, 636480000
61
+ tz.transition 1990, 10, :o2, 657043200
62
+ tz.transition 1991, 3, :o1, 667929600
63
+ tz.transition 1991, 10, :o2, 688492800
64
+ tz.transition 1992, 2, :o1, 699379200
65
+ tz.transition 1992, 10, :o2, 719942400
66
+ tz.transition 1993, 3, :o1, 731433600
67
+ tz.transition 1993, 10, :o2, 751996800
68
+ tz.transition 1994, 3, :o1, 762883200
69
+ tz.transition 1994, 10, :o2, 783446400
70
+ tz.transition 1995, 3, :o1, 794332800
71
+ tz.transition 1995, 10, :o2, 814896000
72
+ tz.transition 1996, 3, :o1, 828201600
73
+ tz.transition 1996, 10, :o2, 846345600
74
+ tz.transition 1997, 3, :o1, 859651200
75
+ tz.transition 1997, 10, :o2, 877795200
76
+ tz.transition 1998, 3, :o1, 891100800
77
+ tz.transition 1998, 10, :o2, 909244800
78
+ tz.transition 1999, 3, :o1, 922550400
79
+ tz.transition 1999, 10, :o2, 941299200
80
+ tz.transition 2000, 3, :o1, 954000000
81
+ tz.transition 2000, 8, :o2, 967305600
82
+ tz.transition 2001, 3, :o1, 985449600
83
+ tz.transition 2001, 10, :o2, 1004198400
84
+ tz.transition 2002, 3, :o1, 1017504000
85
+ tz.transition 2002, 10, :o2, 1035648000
86
+ tz.transition 2003, 3, :o1, 1048953600
87
+ tz.transition 2003, 10, :o2, 1067097600
88
+ tz.transition 2004, 3, :o1, 1080403200
89
+ tz.transition 2004, 10, :o2, 1099152000
90
+ tz.transition 2005, 3, :o1, 1111852800
91
+ tz.transition 2005, 10, :o2, 1130601600
92
+ tz.transition 2006, 4, :o1, 1143907200
93
+ tz.transition 2006, 10, :o2, 1162051200
94
+ tz.transition 2007, 3, :o1, 1174752000
95
+ tz.transition 2007, 10, :o2, 1193500800
96
+ tz.transition 2008, 4, :o1, 1207411200
97
+ tz.transition 2008, 10, :o2, 1223136000
98
+ tz.transition 2009, 4, :o1, 1238860800
99
+ tz.transition 2009, 10, :o2, 1254585600
100
+ tz.transition 2010, 4, :o1, 1270310400
101
+ tz.transition 2010, 10, :o2, 1286035200
102
+ tz.transition 2011, 4, :o1, 1301760000
103
+ tz.transition 2011, 10, :o2, 1317484800
104
+ tz.transition 2012, 3, :o1, 1333209600
105
+ tz.transition 2012, 10, :o2, 1349539200
106
+ tz.transition 2013, 4, :o1, 1365264000
107
+ tz.transition 2013, 10, :o2, 1380988800
108
+ tz.transition 2014, 4, :o1, 1396713600
109
+ tz.transition 2014, 10, :o2, 1412438400
110
+ tz.transition 2015, 4, :o1, 1428163200
111
+ tz.transition 2015, 10, :o2, 1443888000
112
+ tz.transition 2016, 4, :o1, 1459612800
113
+ tz.transition 2016, 10, :o2, 1475337600
114
+ tz.transition 2017, 4, :o1, 1491062400
115
+ tz.transition 2017, 9, :o2, 1506787200
116
+ tz.transition 2018, 3, :o1, 1522512000
117
+ tz.transition 2018, 10, :o2, 1538841600
118
+ tz.transition 2019, 4, :o1, 1554566400
119
+ tz.transition 2019, 10, :o2, 1570291200
120
+ tz.transition 2020, 4, :o1, 1586016000
121
+ tz.transition 2020, 10, :o2, 1601740800
122
+ tz.transition 2021, 4, :o1, 1617465600
123
+ tz.transition 2021, 10, :o2, 1633190400
124
+ tz.transition 2022, 4, :o1, 1648915200
125
+ tz.transition 2022, 10, :o2, 1664640000
126
+ tz.transition 2023, 4, :o1, 1680364800
127
+ tz.transition 2023, 9, :o2, 1696089600
128
+ tz.transition 2024, 4, :o1, 1712419200
129
+ tz.transition 2024, 10, :o2, 1728144000
130
+ tz.transition 2025, 4, :o1, 1743868800
131
+ tz.transition 2025, 10, :o2, 1759593600
132
+ tz.transition 2026, 4, :o1, 1775318400
133
+ tz.transition 2026, 10, :o2, 1791043200
134
+ tz.transition 2027, 4, :o1, 1806768000
135
+ tz.transition 2027, 10, :o2, 1822492800
136
+ tz.transition 2028, 4, :o1, 1838217600
137
+ tz.transition 2028, 9, :o2, 1853942400
138
+ tz.transition 2029, 3, :o1, 1869667200
139
+ tz.transition 2029, 10, :o2, 1885996800
140
+ tz.transition 2030, 4, :o1, 1901721600
141
+ tz.transition 2030, 10, :o2, 1917446400
142
+ tz.transition 2031, 4, :o1, 1933171200
143
+ tz.transition 2031, 10, :o2, 1948896000
144
+ tz.transition 2032, 4, :o1, 1964620800
145
+ tz.transition 2032, 10, :o2, 1980345600
146
+ tz.transition 2033, 4, :o1, 1996070400
147
+ tz.transition 2033, 10, :o2, 2011795200
148
+ tz.transition 2034, 4, :o1, 2027520000
149
+ tz.transition 2034, 9, :o2, 2043244800
150
+ tz.transition 2035, 3, :o1, 2058969600
151
+ tz.transition 2035, 10, :o2, 2075299200
152
+ tz.transition 2036, 4, :o1, 2091024000
153
+ tz.transition 2036, 10, :o2, 2106748800
154
+ tz.transition 2037, 4, :o1, 2122473600
155
+ tz.transition 2037, 10, :o2, 2138198400
156
+ tz.transition 2038, 4, :o1, 14793103, 6
157
+ tz.transition 2038, 10, :o2, 14794195, 6
158
+ tz.transition 2039, 4, :o1, 14795287, 6
159
+ tz.transition 2039, 10, :o2, 14796379, 6
160
+ tz.transition 2040, 3, :o1, 14797471, 6
161
+ tz.transition 2040, 10, :o2, 14798605, 6
162
+ tz.transition 2041, 4, :o1, 14799697, 6
163
+ tz.transition 2041, 10, :o2, 14800789, 6
164
+ tz.transition 2042, 4, :o1, 14801881, 6
165
+ tz.transition 2042, 10, :o2, 14802973, 6
166
+ tz.transition 2043, 4, :o1, 14804065, 6
167
+ tz.transition 2043, 10, :o2, 14805157, 6
168
+ tz.transition 2044, 4, :o1, 14806249, 6
169
+ tz.transition 2044, 10, :o2, 14807341, 6
170
+ tz.transition 2045, 4, :o1, 14808433, 6
171
+ tz.transition 2045, 9, :o2, 14809525, 6
172
+ tz.transition 2046, 3, :o1, 14810617, 6
173
+ tz.transition 2046, 10, :o2, 14811751, 6
174
+ tz.transition 2047, 4, :o1, 14812843, 6
175
+ tz.transition 2047, 10, :o2, 14813935, 6
176
+ tz.transition 2048, 4, :o1, 14815027, 6
177
+ tz.transition 2048, 10, :o2, 14816119, 6
178
+ tz.transition 2049, 4, :o1, 14817211, 6
179
+ tz.transition 2049, 10, :o2, 14818303, 6
180
+ tz.transition 2050, 4, :o1, 14819395, 6
181
+ end
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,16 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Etc
6
+ module UTC
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Etc/UTC' do |tz|
10
+ tz.offset :o0, 0, 0, :UTC
11
+
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,228 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Europe
6
+ module Amsterdam
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Europe/Amsterdam' do |tz|
10
+ tz.offset :o0, 1172, 0, :LMT
11
+ tz.offset :o1, 1172, 0, :AMT
12
+ tz.offset :o2, 1172, 3600, :NST
13
+ tz.offset :o3, 1200, 3600, :NEST
14
+ tz.offset :o4, 1200, 0, :NET
15
+ tz.offset :o5, 3600, 3600, :CEST
16
+ tz.offset :o6, 3600, 0, :CET
17
+
18
+ tz.transition 1834, 12, :o1, 51651636907, 21600
19
+ tz.transition 1916, 4, :o2, 52293264907, 21600
20
+ tz.transition 1916, 9, :o1, 52296568807, 21600
21
+ tz.transition 1917, 4, :o2, 52300826707, 21600
22
+ tz.transition 1917, 9, :o1, 52304153107, 21600
23
+ tz.transition 1918, 4, :o2, 52308386707, 21600
24
+ tz.transition 1918, 9, :o1, 52312317907, 21600
25
+ tz.transition 1919, 4, :o2, 52316400307, 21600
26
+ tz.transition 1919, 9, :o1, 52320180307, 21600
27
+ tz.transition 1920, 4, :o2, 52324262707, 21600
28
+ tz.transition 1920, 9, :o1, 52328042707, 21600
29
+ tz.transition 1921, 4, :o2, 52332125107, 21600
30
+ tz.transition 1921, 9, :o1, 52335905107, 21600
31
+ tz.transition 1922, 3, :o2, 52339814707, 21600
32
+ tz.transition 1922, 10, :o1, 52344048307, 21600
33
+ tz.transition 1923, 6, :o2, 52349145907, 21600
34
+ tz.transition 1923, 10, :o1, 52351910707, 21600
35
+ tz.transition 1924, 3, :o2, 52355690707, 21600
36
+ tz.transition 1924, 10, :o1, 52359773107, 21600
37
+ tz.transition 1925, 6, :o2, 52365021907, 21600
38
+ tz.transition 1925, 10, :o1, 52367635507, 21600
39
+ tz.transition 1926, 5, :o2, 52372452307, 21600
40
+ tz.transition 1926, 10, :o1, 52375497907, 21600
41
+ tz.transition 1927, 5, :o2, 52380336307, 21600
42
+ tz.transition 1927, 10, :o1, 52383360307, 21600
43
+ tz.transition 1928, 5, :o2, 52388241907, 21600
44
+ tz.transition 1928, 10, :o1, 52391373907, 21600
45
+ tz.transition 1929, 5, :o2, 52396125907, 21600
46
+ tz.transition 1929, 10, :o1, 52399236307, 21600
47
+ tz.transition 1930, 5, :o2, 52404009907, 21600
48
+ tz.transition 1930, 10, :o1, 52407098707, 21600
49
+ tz.transition 1931, 5, :o2, 52411893907, 21600
50
+ tz.transition 1931, 10, :o1, 52414961107, 21600
51
+ tz.transition 1932, 5, :o2, 52419950707, 21600
52
+ tz.transition 1932, 10, :o1, 52422823507, 21600
53
+ tz.transition 1933, 5, :o2, 52427683507, 21600
54
+ tz.transition 1933, 10, :o1, 52430837107, 21600
55
+ tz.transition 1934, 5, :o2, 52435567507, 21600
56
+ tz.transition 1934, 10, :o1, 52438699507, 21600
57
+ tz.transition 1935, 5, :o2, 52443451507, 21600
58
+ tz.transition 1935, 10, :o1, 52446561907, 21600
59
+ tz.transition 1936, 5, :o2, 52451357107, 21600
60
+ tz.transition 1936, 10, :o1, 52454424307, 21600
61
+ tz.transition 1937, 5, :o2, 52459392307, 21600
62
+ tz.transition 1937, 6, :o3, 52460253607, 21600
63
+ tz.transition 1937, 10, :o4, 174874289, 72
64
+ tz.transition 1938, 5, :o3, 174890417, 72
65
+ tz.transition 1938, 10, :o4, 174900497, 72
66
+ tz.transition 1939, 5, :o3, 174916697, 72
67
+ tz.transition 1939, 10, :o4, 174927209, 72
68
+ tz.transition 1940, 5, :o5, 174943115, 72
69
+ tz.transition 1942, 11, :o6, 58335973, 24
70
+ tz.transition 1943, 3, :o5, 58339501, 24
71
+ tz.transition 1943, 10, :o6, 58344037, 24
72
+ tz.transition 1944, 4, :o5, 58348405, 24
73
+ tz.transition 1944, 10, :o6, 58352773, 24
74
+ tz.transition 1945, 4, :o5, 58357141, 24
75
+ tz.transition 1945, 9, :o6, 58361149, 24
76
+ tz.transition 1977, 4, :o5, 228877200
77
+ tz.transition 1977, 9, :o6, 243997200
78
+ tz.transition 1978, 4, :o5, 260326800
79
+ tz.transition 1978, 10, :o6, 276051600
80
+ tz.transition 1979, 4, :o5, 291776400
81
+ tz.transition 1979, 9, :o6, 307501200
82
+ tz.transition 1980, 4, :o5, 323830800
83
+ tz.transition 1980, 9, :o6, 338950800
84
+ tz.transition 1981, 3, :o5, 354675600
85
+ tz.transition 1981, 9, :o6, 370400400
86
+ tz.transition 1982, 3, :o5, 386125200
87
+ tz.transition 1982, 9, :o6, 401850000
88
+ tz.transition 1983, 3, :o5, 417574800
89
+ tz.transition 1983, 9, :o6, 433299600
90
+ tz.transition 1984, 3, :o5, 449024400
91
+ tz.transition 1984, 9, :o6, 465354000
92
+ tz.transition 1985, 3, :o5, 481078800
93
+ tz.transition 1985, 9, :o6, 496803600
94
+ tz.transition 1986, 3, :o5, 512528400
95
+ tz.transition 1986, 9, :o6, 528253200
96
+ tz.transition 1987, 3, :o5, 543978000
97
+ tz.transition 1987, 9, :o6, 559702800
98
+ tz.transition 1988, 3, :o5, 575427600
99
+ tz.transition 1988, 9, :o6, 591152400
100
+ tz.transition 1989, 3, :o5, 606877200
101
+ tz.transition 1989, 9, :o6, 622602000
102
+ tz.transition 1990, 3, :o5, 638326800
103
+ tz.transition 1990, 9, :o6, 654656400
104
+ tz.transition 1991, 3, :o5, 670381200
105
+ tz.transition 1991, 9, :o6, 686106000
106
+ tz.transition 1992, 3, :o5, 701830800
107
+ tz.transition 1992, 9, :o6, 717555600
108
+ tz.transition 1993, 3, :o5, 733280400
109
+ tz.transition 1993, 9, :o6, 749005200
110
+ tz.transition 1994, 3, :o5, 764730000
111
+ tz.transition 1994, 9, :o6, 780454800
112
+ tz.transition 1995, 3, :o5, 796179600
113
+ tz.transition 1995, 9, :o6, 811904400
114
+ tz.transition 1996, 3, :o5, 828234000
115
+ tz.transition 1996, 10, :o6, 846378000
116
+ tz.transition 1997, 3, :o5, 859683600
117
+ tz.transition 1997, 10, :o6, 877827600
118
+ tz.transition 1998, 3, :o5, 891133200
119
+ tz.transition 1998, 10, :o6, 909277200
120
+ tz.transition 1999, 3, :o5, 922582800
121
+ tz.transition 1999, 10, :o6, 941331600
122
+ tz.transition 2000, 3, :o5, 954032400
123
+ tz.transition 2000, 10, :o6, 972781200
124
+ tz.transition 2001, 3, :o5, 985482000
125
+ tz.transition 2001, 10, :o6, 1004230800
126
+ tz.transition 2002, 3, :o5, 1017536400
127
+ tz.transition 2002, 10, :o6, 1035680400
128
+ tz.transition 2003, 3, :o5, 1048986000
129
+ tz.transition 2003, 10, :o6, 1067130000
130
+ tz.transition 2004, 3, :o5, 1080435600
131
+ tz.transition 2004, 10, :o6, 1099184400
132
+ tz.transition 2005, 3, :o5, 1111885200
133
+ tz.transition 2005, 10, :o6, 1130634000
134
+ tz.transition 2006, 3, :o5, 1143334800
135
+ tz.transition 2006, 10, :o6, 1162083600
136
+ tz.transition 2007, 3, :o5, 1174784400
137
+ tz.transition 2007, 10, :o6, 1193533200
138
+ tz.transition 2008, 3, :o5, 1206838800
139
+ tz.transition 2008, 10, :o6, 1224982800
140
+ tz.transition 2009, 3, :o5, 1238288400
141
+ tz.transition 2009, 10, :o6, 1256432400
142
+ tz.transition 2010, 3, :o5, 1269738000
143
+ tz.transition 2010, 10, :o6, 1288486800
144
+ tz.transition 2011, 3, :o5, 1301187600
145
+ tz.transition 2011, 10, :o6, 1319936400
146
+ tz.transition 2012, 3, :o5, 1332637200
147
+ tz.transition 2012, 10, :o6, 1351386000
148
+ tz.transition 2013, 3, :o5, 1364691600
149
+ tz.transition 2013, 10, :o6, 1382835600
150
+ tz.transition 2014, 3, :o5, 1396141200
151
+ tz.transition 2014, 10, :o6, 1414285200
152
+ tz.transition 2015, 3, :o5, 1427590800
153
+ tz.transition 2015, 10, :o6, 1445734800
154
+ tz.transition 2016, 3, :o5, 1459040400
155
+ tz.transition 2016, 10, :o6, 1477789200
156
+ tz.transition 2017, 3, :o5, 1490490000
157
+ tz.transition 2017, 10, :o6, 1509238800
158
+ tz.transition 2018, 3, :o5, 1521939600
159
+ tz.transition 2018, 10, :o6, 1540688400
160
+ tz.transition 2019, 3, :o5, 1553994000
161
+ tz.transition 2019, 10, :o6, 1572138000
162
+ tz.transition 2020, 3, :o5, 1585443600
163
+ tz.transition 2020, 10, :o6, 1603587600
164
+ tz.transition 2021, 3, :o5, 1616893200
165
+ tz.transition 2021, 10, :o6, 1635642000
166
+ tz.transition 2022, 3, :o5, 1648342800
167
+ tz.transition 2022, 10, :o6, 1667091600
168
+ tz.transition 2023, 3, :o5, 1679792400
169
+ tz.transition 2023, 10, :o6, 1698541200
170
+ tz.transition 2024, 3, :o5, 1711846800
171
+ tz.transition 2024, 10, :o6, 1729990800
172
+ tz.transition 2025, 3, :o5, 1743296400
173
+ tz.transition 2025, 10, :o6, 1761440400
174
+ tz.transition 2026, 3, :o5, 1774746000
175
+ tz.transition 2026, 10, :o6, 1792890000
176
+ tz.transition 2027, 3, :o5, 1806195600
177
+ tz.transition 2027, 10, :o6, 1824944400
178
+ tz.transition 2028, 3, :o5, 1837645200
179
+ tz.transition 2028, 10, :o6, 1856394000
180
+ tz.transition 2029, 3, :o5, 1869094800
181
+ tz.transition 2029, 10, :o6, 1887843600
182
+ tz.transition 2030, 3, :o5, 1901149200
183
+ tz.transition 2030, 10, :o6, 1919293200
184
+ tz.transition 2031, 3, :o5, 1932598800
185
+ tz.transition 2031, 10, :o6, 1950742800
186
+ tz.transition 2032, 3, :o5, 1964048400
187
+ tz.transition 2032, 10, :o6, 1982797200
188
+ tz.transition 2033, 3, :o5, 1995498000
189
+ tz.transition 2033, 10, :o6, 2014246800
190
+ tz.transition 2034, 3, :o5, 2026947600
191
+ tz.transition 2034, 10, :o6, 2045696400
192
+ tz.transition 2035, 3, :o5, 2058397200
193
+ tz.transition 2035, 10, :o6, 2077146000
194
+ tz.transition 2036, 3, :o5, 2090451600
195
+ tz.transition 2036, 10, :o6, 2108595600
196
+ tz.transition 2037, 3, :o5, 2121901200
197
+ tz.transition 2037, 10, :o6, 2140045200
198
+ tz.transition 2038, 3, :o5, 59172253, 24
199
+ tz.transition 2038, 10, :o6, 59177461, 24
200
+ tz.transition 2039, 3, :o5, 59180989, 24
201
+ tz.transition 2039, 10, :o6, 59186197, 24
202
+ tz.transition 2040, 3, :o5, 59189725, 24
203
+ tz.transition 2040, 10, :o6, 59194933, 24
204
+ tz.transition 2041, 3, :o5, 59198629, 24
205
+ tz.transition 2041, 10, :o6, 59203669, 24
206
+ tz.transition 2042, 3, :o5, 59207365, 24
207
+ tz.transition 2042, 10, :o6, 59212405, 24
208
+ tz.transition 2043, 3, :o5, 59216101, 24
209
+ tz.transition 2043, 10, :o6, 59221141, 24
210
+ tz.transition 2044, 3, :o5, 59224837, 24
211
+ tz.transition 2044, 10, :o6, 59230045, 24
212
+ tz.transition 2045, 3, :o5, 59233573, 24
213
+ tz.transition 2045, 10, :o6, 59238781, 24
214
+ tz.transition 2046, 3, :o5, 59242309, 24
215
+ tz.transition 2046, 10, :o6, 59247517, 24
216
+ tz.transition 2047, 3, :o5, 59251213, 24
217
+ tz.transition 2047, 10, :o6, 59256253, 24
218
+ tz.transition 2048, 3, :o5, 59259949, 24
219
+ tz.transition 2048, 10, :o6, 59264989, 24
220
+ tz.transition 2049, 3, :o5, 59268685, 24
221
+ tz.transition 2049, 10, :o6, 59273893, 24
222
+ tz.transition 2050, 3, :o5, 59277421, 24
223
+ tz.transition 2050, 10, :o6, 59282629, 24
224
+ end
225
+ end
226
+ end
227
+ end
228
+ end