tzinfo 0.0.1 → 0.0.2

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

Potentially problematic release.


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

Files changed (798) hide show
  1. data/README +2 -2
  2. data/lib/tzinfo/countries/AD.rb +5 -11
  3. data/lib/tzinfo/countries/AE.rb +5 -11
  4. data/lib/tzinfo/countries/AF.rb +5 -11
  5. data/lib/tzinfo/countries/AG.rb +5 -11
  6. data/lib/tzinfo/countries/AI.rb +5 -11
  7. data/lib/tzinfo/countries/AL.rb +5 -11
  8. data/lib/tzinfo/countries/AM.rb +5 -11
  9. data/lib/tzinfo/countries/AN.rb +5 -11
  10. data/lib/tzinfo/countries/AO.rb +5 -11
  11. data/lib/tzinfo/countries/AQ.rb +14 -20
  12. data/lib/tzinfo/countries/AR.rb +14 -20
  13. data/lib/tzinfo/countries/AS.rb +5 -11
  14. data/lib/tzinfo/countries/AT.rb +5 -11
  15. data/lib/tzinfo/countries/AU.rb +15 -21
  16. data/lib/tzinfo/countries/AW.rb +5 -11
  17. data/lib/tzinfo/countries/AX.rb +5 -11
  18. data/lib/tzinfo/countries/AZ.rb +5 -11
  19. data/lib/tzinfo/countries/BA.rb +5 -11
  20. data/lib/tzinfo/countries/BB.rb +5 -11
  21. data/lib/tzinfo/countries/BD.rb +5 -11
  22. data/lib/tzinfo/countries/BE.rb +5 -11
  23. data/lib/tzinfo/countries/BF.rb +5 -11
  24. data/lib/tzinfo/countries/BG.rb +5 -11
  25. data/lib/tzinfo/countries/BH.rb +5 -11
  26. data/lib/tzinfo/countries/BI.rb +5 -11
  27. data/lib/tzinfo/countries/BJ.rb +5 -11
  28. data/lib/tzinfo/countries/BM.rb +5 -11
  29. data/lib/tzinfo/countries/BN.rb +5 -11
  30. data/lib/tzinfo/countries/BO.rb +5 -11
  31. data/lib/tzinfo/countries/BR.rb +19 -25
  32. data/lib/tzinfo/countries/BS.rb +5 -11
  33. data/lib/tzinfo/countries/BT.rb +5 -11
  34. data/lib/tzinfo/countries/BV.rb +4 -10
  35. data/lib/tzinfo/countries/BW.rb +5 -11
  36. data/lib/tzinfo/countries/BY.rb +5 -11
  37. data/lib/tzinfo/countries/BZ.rb +5 -11
  38. data/lib/tzinfo/countries/CA.rb +28 -34
  39. data/lib/tzinfo/countries/CC.rb +5 -11
  40. data/lib/tzinfo/countries/CD.rb +6 -12
  41. data/lib/tzinfo/countries/CF.rb +5 -11
  42. data/lib/tzinfo/countries/CG.rb +5 -11
  43. data/lib/tzinfo/countries/CH.rb +5 -11
  44. data/lib/tzinfo/countries/CI.rb +5 -11
  45. data/lib/tzinfo/countries/CK.rb +5 -11
  46. data/lib/tzinfo/countries/CL.rb +6 -12
  47. data/lib/tzinfo/countries/CM.rb +5 -11
  48. data/lib/tzinfo/countries/CN.rb +9 -15
  49. data/lib/tzinfo/countries/CO.rb +5 -11
  50. data/lib/tzinfo/countries/CR.rb +5 -11
  51. data/lib/tzinfo/countries/CS.rb +5 -11
  52. data/lib/tzinfo/countries/CU.rb +5 -11
  53. data/lib/tzinfo/countries/CV.rb +5 -11
  54. data/lib/tzinfo/countries/CX.rb +5 -11
  55. data/lib/tzinfo/countries/CY.rb +5 -11
  56. data/lib/tzinfo/countries/CZ.rb +5 -11
  57. data/lib/tzinfo/countries/DE.rb +5 -11
  58. data/lib/tzinfo/countries/DJ.rb +5 -11
  59. data/lib/tzinfo/countries/DK.rb +5 -11
  60. data/lib/tzinfo/countries/DM.rb +5 -11
  61. data/lib/tzinfo/countries/DO.rb +5 -11
  62. data/lib/tzinfo/countries/DZ.rb +5 -11
  63. data/lib/tzinfo/countries/EC.rb +6 -12
  64. data/lib/tzinfo/countries/EE.rb +5 -11
  65. data/lib/tzinfo/countries/EG.rb +5 -11
  66. data/lib/tzinfo/countries/EH.rb +5 -11
  67. data/lib/tzinfo/countries/ER.rb +5 -11
  68. data/lib/tzinfo/countries/ES.rb +7 -13
  69. data/lib/tzinfo/countries/ET.rb +5 -11
  70. data/lib/tzinfo/countries/FI.rb +5 -11
  71. data/lib/tzinfo/countries/FJ.rb +5 -11
  72. data/lib/tzinfo/countries/FK.rb +5 -11
  73. data/lib/tzinfo/countries/FM.rb +7 -13
  74. data/lib/tzinfo/countries/FO.rb +5 -11
  75. data/lib/tzinfo/countries/FR.rb +5 -11
  76. data/lib/tzinfo/countries/GA.rb +5 -11
  77. data/lib/tzinfo/countries/GB.rb +5 -11
  78. data/lib/tzinfo/countries/GD.rb +5 -11
  79. data/lib/tzinfo/countries/GE.rb +5 -11
  80. data/lib/tzinfo/countries/GF.rb +5 -11
  81. data/lib/tzinfo/countries/GH.rb +5 -11
  82. data/lib/tzinfo/countries/GI.rb +5 -11
  83. data/lib/tzinfo/countries/GL.rb +8 -14
  84. data/lib/tzinfo/countries/GM.rb +5 -11
  85. data/lib/tzinfo/countries/GN.rb +5 -11
  86. data/lib/tzinfo/countries/GP.rb +5 -11
  87. data/lib/tzinfo/countries/GQ.rb +5 -11
  88. data/lib/tzinfo/countries/GR.rb +5 -11
  89. data/lib/tzinfo/countries/GS.rb +5 -11
  90. data/lib/tzinfo/countries/GT.rb +5 -11
  91. data/lib/tzinfo/countries/GU.rb +5 -11
  92. data/lib/tzinfo/countries/GW.rb +5 -11
  93. data/lib/tzinfo/countries/GY.rb +5 -11
  94. data/lib/tzinfo/countries/HK.rb +5 -11
  95. data/lib/tzinfo/countries/HM.rb +4 -10
  96. data/lib/tzinfo/countries/HN.rb +5 -11
  97. data/lib/tzinfo/countries/HR.rb +5 -11
  98. data/lib/tzinfo/countries/HT.rb +5 -11
  99. data/lib/tzinfo/countries/HU.rb +5 -11
  100. data/lib/tzinfo/countries/ID.rb +8 -14
  101. data/lib/tzinfo/countries/IE.rb +5 -11
  102. data/lib/tzinfo/countries/IL.rb +5 -11
  103. data/lib/tzinfo/countries/IN.rb +5 -11
  104. data/lib/tzinfo/countries/IO.rb +5 -11
  105. data/lib/tzinfo/countries/IQ.rb +5 -11
  106. data/lib/tzinfo/countries/IR.rb +5 -11
  107. data/lib/tzinfo/countries/IS.rb +5 -11
  108. data/lib/tzinfo/countries/IT.rb +5 -11
  109. data/lib/tzinfo/countries/JM.rb +5 -11
  110. data/lib/tzinfo/countries/JO.rb +5 -11
  111. data/lib/tzinfo/countries/JP.rb +5 -11
  112. data/lib/tzinfo/countries/KE.rb +5 -11
  113. data/lib/tzinfo/countries/KG.rb +5 -11
  114. data/lib/tzinfo/countries/KH.rb +5 -11
  115. data/lib/tzinfo/countries/KI.rb +7 -13
  116. data/lib/tzinfo/countries/KM.rb +5 -11
  117. data/lib/tzinfo/countries/KN.rb +5 -11
  118. data/lib/tzinfo/countries/KP.rb +5 -11
  119. data/lib/tzinfo/countries/KR.rb +5 -11
  120. data/lib/tzinfo/countries/KW.rb +5 -11
  121. data/lib/tzinfo/countries/KY.rb +5 -11
  122. data/lib/tzinfo/countries/KZ.rb +9 -15
  123. data/lib/tzinfo/countries/LA.rb +5 -11
  124. data/lib/tzinfo/countries/LB.rb +5 -11
  125. data/lib/tzinfo/countries/LC.rb +5 -11
  126. data/lib/tzinfo/countries/LI.rb +5 -11
  127. data/lib/tzinfo/countries/LK.rb +5 -11
  128. data/lib/tzinfo/countries/LR.rb +5 -11
  129. data/lib/tzinfo/countries/LS.rb +5 -11
  130. data/lib/tzinfo/countries/LT.rb +5 -11
  131. data/lib/tzinfo/countries/LU.rb +5 -11
  132. data/lib/tzinfo/countries/LV.rb +5 -11
  133. data/lib/tzinfo/countries/LY.rb +5 -11
  134. data/lib/tzinfo/countries/MA.rb +5 -11
  135. data/lib/tzinfo/countries/MC.rb +5 -11
  136. data/lib/tzinfo/countries/MD.rb +5 -11
  137. data/lib/tzinfo/countries/MG.rb +5 -11
  138. data/lib/tzinfo/countries/MH.rb +6 -12
  139. data/lib/tzinfo/countries/MK.rb +5 -11
  140. data/lib/tzinfo/countries/ML.rb +5 -11
  141. data/lib/tzinfo/countries/MM.rb +5 -11
  142. data/lib/tzinfo/countries/MN.rb +7 -13
  143. data/lib/tzinfo/countries/MO.rb +5 -11
  144. data/lib/tzinfo/countries/MP.rb +5 -11
  145. data/lib/tzinfo/countries/MQ.rb +5 -11
  146. data/lib/tzinfo/countries/MR.rb +5 -11
  147. data/lib/tzinfo/countries/MS.rb +5 -11
  148. data/lib/tzinfo/countries/MT.rb +5 -11
  149. data/lib/tzinfo/countries/MU.rb +5 -11
  150. data/lib/tzinfo/countries/MV.rb +5 -11
  151. data/lib/tzinfo/countries/MW.rb +5 -11
  152. data/lib/tzinfo/countries/MX.rb +12 -18
  153. data/lib/tzinfo/countries/MY.rb +6 -12
  154. data/lib/tzinfo/countries/MZ.rb +5 -11
  155. data/lib/tzinfo/countries/NA.rb +5 -11
  156. data/lib/tzinfo/countries/NC.rb +5 -11
  157. data/lib/tzinfo/countries/NE.rb +5 -11
  158. data/lib/tzinfo/countries/NF.rb +5 -11
  159. data/lib/tzinfo/countries/NG.rb +5 -11
  160. data/lib/tzinfo/countries/NI.rb +5 -11
  161. data/lib/tzinfo/countries/NL.rb +5 -11
  162. data/lib/tzinfo/countries/NO.rb +5 -11
  163. data/lib/tzinfo/countries/NP.rb +5 -11
  164. data/lib/tzinfo/countries/NR.rb +5 -11
  165. data/lib/tzinfo/countries/NU.rb +5 -11
  166. data/lib/tzinfo/countries/NZ.rb +6 -12
  167. data/lib/tzinfo/countries/OM.rb +5 -11
  168. data/lib/tzinfo/countries/PA.rb +5 -11
  169. data/lib/tzinfo/countries/PE.rb +5 -11
  170. data/lib/tzinfo/countries/PF.rb +7 -13
  171. data/lib/tzinfo/countries/PG.rb +5 -11
  172. data/lib/tzinfo/countries/PH.rb +5 -11
  173. data/lib/tzinfo/countries/PK.rb +5 -11
  174. data/lib/tzinfo/countries/PL.rb +5 -11
  175. data/lib/tzinfo/countries/PM.rb +5 -11
  176. data/lib/tzinfo/countries/PN.rb +5 -11
  177. data/lib/tzinfo/countries/PR.rb +5 -11
  178. data/lib/tzinfo/countries/PS.rb +5 -11
  179. data/lib/tzinfo/countries/PT.rb +7 -13
  180. data/lib/tzinfo/countries/PW.rb +5 -11
  181. data/lib/tzinfo/countries/PY.rb +5 -11
  182. data/lib/tzinfo/countries/QA.rb +5 -11
  183. data/lib/tzinfo/countries/RE.rb +5 -11
  184. data/lib/tzinfo/countries/RO.rb +5 -11
  185. data/lib/tzinfo/countries/RU.rb +18 -24
  186. data/lib/tzinfo/countries/RW.rb +5 -11
  187. data/lib/tzinfo/countries/SA.rb +5 -11
  188. data/lib/tzinfo/countries/SB.rb +5 -11
  189. data/lib/tzinfo/countries/SC.rb +5 -11
  190. data/lib/tzinfo/countries/SD.rb +5 -11
  191. data/lib/tzinfo/countries/SE.rb +5 -11
  192. data/lib/tzinfo/countries/SG.rb +5 -11
  193. data/lib/tzinfo/countries/SH.rb +5 -11
  194. data/lib/tzinfo/countries/SI.rb +5 -11
  195. data/lib/tzinfo/countries/SJ.rb +6 -12
  196. data/lib/tzinfo/countries/SK.rb +5 -11
  197. data/lib/tzinfo/countries/SL.rb +5 -11
  198. data/lib/tzinfo/countries/SM.rb +5 -11
  199. data/lib/tzinfo/countries/SN.rb +5 -11
  200. data/lib/tzinfo/countries/SO.rb +5 -11
  201. data/lib/tzinfo/countries/SR.rb +5 -11
  202. data/lib/tzinfo/countries/ST.rb +5 -11
  203. data/lib/tzinfo/countries/SV.rb +5 -11
  204. data/lib/tzinfo/countries/SY.rb +5 -11
  205. data/lib/tzinfo/countries/SZ.rb +5 -11
  206. data/lib/tzinfo/countries/TC.rb +5 -11
  207. data/lib/tzinfo/countries/TD.rb +5 -11
  208. data/lib/tzinfo/countries/TF.rb +5 -11
  209. data/lib/tzinfo/countries/TG.rb +5 -11
  210. data/lib/tzinfo/countries/TH.rb +5 -11
  211. data/lib/tzinfo/countries/TJ.rb +5 -11
  212. data/lib/tzinfo/countries/TK.rb +5 -11
  213. data/lib/tzinfo/countries/TL.rb +5 -11
  214. data/lib/tzinfo/countries/TM.rb +5 -11
  215. data/lib/tzinfo/countries/TN.rb +5 -11
  216. data/lib/tzinfo/countries/TO.rb +5 -11
  217. data/lib/tzinfo/countries/TR.rb +5 -11
  218. data/lib/tzinfo/countries/TT.rb +5 -11
  219. data/lib/tzinfo/countries/TV.rb +5 -11
  220. data/lib/tzinfo/countries/TW.rb +5 -11
  221. data/lib/tzinfo/countries/TZ.rb +5 -11
  222. data/lib/tzinfo/countries/UA.rb +8 -14
  223. data/lib/tzinfo/countries/UG.rb +5 -11
  224. data/lib/tzinfo/countries/UM.rb +7 -13
  225. data/lib/tzinfo/countries/US.rb +26 -32
  226. data/lib/tzinfo/countries/UY.rb +5 -11
  227. data/lib/tzinfo/countries/UZ.rb +6 -12
  228. data/lib/tzinfo/countries/VA.rb +5 -11
  229. data/lib/tzinfo/countries/VC.rb +5 -11
  230. data/lib/tzinfo/countries/VE.rb +5 -11
  231. data/lib/tzinfo/countries/VG.rb +5 -11
  232. data/lib/tzinfo/countries/VI.rb +5 -11
  233. data/lib/tzinfo/countries/VN.rb +5 -11
  234. data/lib/tzinfo/countries/VU.rb +5 -11
  235. data/lib/tzinfo/countries/WF.rb +5 -11
  236. data/lib/tzinfo/countries/WS.rb +5 -11
  237. data/lib/tzinfo/countries/YE.rb +5 -11
  238. data/lib/tzinfo/countries/YT.rb +5 -11
  239. data/lib/tzinfo/countries/ZA.rb +5 -11
  240. data/lib/tzinfo/countries/ZM.rb +5 -11
  241. data/lib/tzinfo/countries/ZW.rb +5 -11
  242. data/lib/tzinfo/country.rb +55 -25
  243. data/lib/tzinfo/definitions/Africa/Abidjan.rb +3 -9
  244. data/lib/tzinfo/definitions/Africa/Accra.rb +17 -23
  245. data/lib/tzinfo/definitions/Africa/Addis_Ababa.rb +4 -10
  246. data/lib/tzinfo/definitions/Africa/Algiers.rb +36 -42
  247. data/lib/tzinfo/definitions/Africa/Asmera.rb +5 -11
  248. data/lib/tzinfo/definitions/Africa/Bamako.rb +5 -11
  249. data/lib/tzinfo/definitions/Africa/Bangui.rb +3 -9
  250. data/lib/tzinfo/definitions/Africa/Banjul.rb +5 -11
  251. data/lib/tzinfo/definitions/Africa/Bissau.rb +4 -10
  252. data/lib/tzinfo/definitions/Africa/Blantyre.rb +3 -9
  253. data/lib/tzinfo/definitions/Africa/Brazzaville.rb +3 -9
  254. data/lib/tzinfo/definitions/Africa/Bujumbura.rb +3 -9
  255. data/lib/tzinfo/definitions/Africa/Cairo.rb +192 -198
  256. data/lib/tzinfo/definitions/Africa/Casablanca.rb +21 -27
  257. data/lib/tzinfo/definitions/Africa/Ceuta.rb +146 -152
  258. data/lib/tzinfo/definitions/Africa/Conakry.rb +5 -11
  259. data/lib/tzinfo/definitions/Africa/Dakar.rb +4 -10
  260. data/lib/tzinfo/definitions/Africa/Dar_es_Salaam.rb +5 -11
  261. data/lib/tzinfo/definitions/Africa/Djibouti.rb +3 -9
  262. data/lib/tzinfo/definitions/Africa/Douala.rb +3 -9
  263. data/lib/tzinfo/definitions/Africa/El_Aaiun.rb +4 -10
  264. data/lib/tzinfo/definitions/Africa/Freetown.rb +33 -39
  265. data/lib/tzinfo/definitions/Africa/Gaborone.rb +5 -11
  266. data/lib/tzinfo/definitions/Africa/Harare.rb +3 -9
  267. data/lib/tzinfo/definitions/Africa/Johannesburg.rb +8 -14
  268. data/lib/tzinfo/definitions/Africa/Kampala.rb +6 -12
  269. data/lib/tzinfo/definitions/Africa/Khartoum.rb +36 -42
  270. data/lib/tzinfo/definitions/Africa/Kigali.rb +3 -9
  271. data/lib/tzinfo/definitions/Africa/Kinshasa.rb +3 -9
  272. data/lib/tzinfo/definitions/Africa/Lagos.rb +3 -9
  273. data/lib/tzinfo/definitions/Africa/Libreville.rb +3 -9
  274. data/lib/tzinfo/definitions/Africa/Lome.rb +3 -9
  275. data/lib/tzinfo/definitions/Africa/Luanda.rb +4 -10
  276. data/lib/tzinfo/definitions/Africa/Lubumbashi.rb +3 -9
  277. data/lib/tzinfo/definitions/Africa/Lusaka.rb +3 -9
  278. data/lib/tzinfo/definitions/Africa/Malabo.rb +4 -10
  279. data/lib/tzinfo/definitions/Africa/Maputo.rb +3 -9
  280. data/lib/tzinfo/definitions/Africa/Maseru.rb +5 -11
  281. data/lib/tzinfo/definitions/Africa/Mbabane.rb +3 -9
  282. data/lib/tzinfo/definitions/Africa/Mogadishu.rb +5 -11
  283. data/lib/tzinfo/definitions/Africa/Monrovia.rb +5 -11
  284. data/lib/tzinfo/definitions/Africa/Nairobi.rb +6 -12
  285. data/lib/tzinfo/definitions/Africa/Ndjamena.rb +5 -11
  286. data/lib/tzinfo/definitions/Africa/Niamey.rb +5 -11
  287. data/lib/tzinfo/definitions/Africa/Nouakchott.rb +5 -11
  288. data/lib/tzinfo/definitions/Africa/Ouagadougou.rb +3 -9
  289. data/lib/tzinfo/definitions/Africa/Porto__m__Novo.rb +4 -10
  290. data/lib/tzinfo/definitions/Africa/Sao_Tome.rb +4 -10
  291. data/lib/tzinfo/definitions/Africa/Timbuktu.rb +1 -4
  292. data/lib/tzinfo/definitions/Africa/Tripoli.rb +31 -37
  293. data/lib/tzinfo/definitions/Africa/Tunis.rb +30 -36
  294. data/lib/tzinfo/definitions/Africa/Windhoek.rb +111 -116
  295. data/lib/tzinfo/definitions/America/Adak.rb +164 -170
  296. data/lib/tzinfo/definitions/America/Anchorage.rb +164 -170
  297. data/lib/tzinfo/definitions/America/Anguilla.rb +3 -9
  298. data/lib/tzinfo/definitions/America/Antigua.rb +4 -10
  299. data/lib/tzinfo/definitions/America/Araguaina.rb +54 -60
  300. data/lib/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +59 -65
  301. data/lib/tzinfo/definitions/America/Argentina/Catamarca.rb +61 -67
  302. data/lib/tzinfo/definitions/America/Argentina/ComodRivadavia.rb +1 -4
  303. data/lib/tzinfo/definitions/America/Argentina/Cordoba.rb +59 -65
  304. data/lib/tzinfo/definitions/America/Argentina/Jujuy.rb +60 -66
  305. data/lib/tzinfo/definitions/America/Argentina/La_Rioja.rb +62 -68
  306. data/lib/tzinfo/definitions/America/Argentina/Mendoza.rb +61 -67
  307. data/lib/tzinfo/definitions/America/Argentina/Rio_Gallegos.rb +61 -67
  308. data/lib/tzinfo/definitions/America/Argentina/San_Juan.rb +62 -68
  309. data/lib/tzinfo/definitions/America/Argentina/Tucuman.rb +61 -67
  310. data/lib/tzinfo/definitions/America/Argentina/Ushuaia.rb +61 -67
  311. data/lib/tzinfo/definitions/America/Aruba.rb +4 -10
  312. data/lib/tzinfo/definitions/America/Asuncion.rb +146 -152
  313. data/lib/tzinfo/definitions/America/Atka.rb +1 -4
  314. data/lib/tzinfo/definitions/America/Bahia.rb +62 -68
  315. data/lib/tzinfo/definitions/America/Barbados.rb +12 -18
  316. data/lib/tzinfo/definitions/America/Belem.rb +32 -38
  317. data/lib/tzinfo/definitions/America/Belize.rb +57 -63
  318. data/lib/tzinfo/definitions/America/Boa_Vista.rb +37 -43
  319. data/lib/tzinfo/definitions/America/Bogota.rb +6 -12
  320. data/lib/tzinfo/definitions/America/Boise.rb +167 -173
  321. data/lib/tzinfo/definitions/America/Buenos_Aires.rb +1 -4
  322. data/lib/tzinfo/definitions/America/Cambridge_Bay.rb +143 -149
  323. data/lib/tzinfo/definitions/America/Campo_Grande.rb +145 -151
  324. data/lib/tzinfo/definitions/America/Cancun.rb +104 -110
  325. data/lib/tzinfo/definitions/America/Caracas.rb +5 -11
  326. data/lib/tzinfo/definitions/America/Catamarca.rb +1 -4
  327. data/lib/tzinfo/definitions/America/Cayenne.rb +4 -10
  328. data/lib/tzinfo/definitions/America/Cayman.rb +4 -10
  329. data/lib/tzinfo/definitions/America/Chicago.rb +256 -262
  330. data/lib/tzinfo/definitions/America/Chihuahua.rb +109 -115
  331. data/lib/tzinfo/definitions/America/Coral_Harbour.rb +10 -16
  332. data/lib/tzinfo/definitions/America/Cordoba.rb +1 -4
  333. data/lib/tzinfo/definitions/America/Costa_Rica.rb +12 -18
  334. data/lib/tzinfo/definitions/America/Cuiaba.rb +145 -151
  335. data/lib/tzinfo/definitions/America/Curacao.rb +4 -10
  336. data/lib/tzinfo/definitions/America/Danmarkshavn.rb +36 -42
  337. data/lib/tzinfo/definitions/America/Dawson.rb +143 -149
  338. data/lib/tzinfo/definitions/America/Dawson_Creek.rb +60 -66
  339. data/lib/tzinfo/definitions/America/Denver.rb +178 -184
  340. data/lib/tzinfo/definitions/America/Detroit.rb +158 -164
  341. data/lib/tzinfo/definitions/America/Dominica.rb +3 -9
  342. data/lib/tzinfo/definitions/America/Edmonton.rb +170 -176
  343. data/lib/tzinfo/definitions/America/Eirunepe.rb +36 -42
  344. data/lib/tzinfo/definitions/America/El_Salvador.rb +7 -13
  345. data/lib/tzinfo/definitions/America/Ensenada.rb +1 -4
  346. data/lib/tzinfo/definitions/America/Fort_Wayne.rb +1 -4
  347. data/lib/tzinfo/definitions/America/Fortaleza.rb +45 -51
  348. data/lib/tzinfo/definitions/America/Glace_Bay.rb +160 -166
  349. data/lib/tzinfo/definitions/America/Godthab.rb +134 -140
  350. data/lib/tzinfo/definitions/America/Goose_Bay.rb +225 -231
  351. data/lib/tzinfo/definitions/America/Grand_Turk.rb +137 -143
  352. data/lib/tzinfo/definitions/America/Grenada.rb +3 -9
  353. data/lib/tzinfo/definitions/America/Guadeloupe.rb +3 -9
  354. data/lib/tzinfo/definitions/America/Guatemala.rb +9 -15
  355. data/lib/tzinfo/definitions/America/Guayaquil.rb +4 -10
  356. data/lib/tzinfo/definitions/America/Guyana.rb +6 -12
  357. data/lib/tzinfo/definitions/America/Halifax.rb +248 -254
  358. data/lib/tzinfo/definitions/America/Havana.rb +175 -181
  359. data/lib/tzinfo/definitions/America/Hermosillo.rb +18 -24
  360. data/lib/tzinfo/definitions/America/Indiana/Indianapolis.rb +121 -127
  361. data/lib/tzinfo/definitions/America/Indiana/Knox.rb +172 -178
  362. data/lib/tzinfo/definitions/America/Indiana/Marengo.rb +123 -129
  363. data/lib/tzinfo/definitions/America/Indiana/Vevay.rb +100 -106
  364. data/lib/tzinfo/definitions/America/Indianapolis.rb +1 -4
  365. data/lib/tzinfo/definitions/America/Inuvik.rb +143 -149
  366. data/lib/tzinfo/definitions/America/Iqaluit.rb +142 -148
  367. data/lib/tzinfo/definitions/America/Jamaica.rb +24 -30
  368. data/lib/tzinfo/definitions/America/Jujuy.rb +1 -4
  369. data/lib/tzinfo/definitions/America/Juneau.rb +163 -169
  370. data/lib/tzinfo/definitions/America/Kentucky/Louisville.rb +198 -204
  371. data/lib/tzinfo/definitions/America/Kentucky/Monticello.rb +166 -172
  372. data/lib/tzinfo/definitions/America/Knox_IN.rb +1 -4
  373. data/lib/tzinfo/definitions/America/La_Paz.rb +5 -11
  374. data/lib/tzinfo/definitions/America/Lima.rb +18 -24
  375. data/lib/tzinfo/definitions/America/Los_Angeles.rb +204 -210
  376. data/lib/tzinfo/definitions/America/Louisville.rb +1 -4
  377. data/lib/tzinfo/definitions/America/Maceio.rb +49 -55
  378. data/lib/tzinfo/definitions/America/Managua.rb +16 -22
  379. data/lib/tzinfo/definitions/America/Manaus.rb +36 -42
  380. data/lib/tzinfo/definitions/America/Martinique.rb +6 -12
  381. data/lib/tzinfo/definitions/America/Mazatlan.rb +110 -116
  382. data/lib/tzinfo/definitions/America/Mendoza.rb +1 -4
  383. data/lib/tzinfo/definitions/America/Menominee.rb +160 -166
  384. data/lib/tzinfo/definitions/America/Merida.rb +104 -110
  385. data/lib/tzinfo/definitions/America/Mexico_City.rb +116 -122
  386. data/lib/tzinfo/definitions/America/Miquelon.rb +122 -128
  387. data/lib/tzinfo/definitions/America/Monterrey.rb +106 -112
  388. data/lib/tzinfo/definitions/America/Montevideo.rb +68 -74
  389. data/lib/tzinfo/definitions/America/Montreal.rb +253 -259
  390. data/lib/tzinfo/definitions/America/Montserrat.rb +3 -9
  391. data/lib/tzinfo/definitions/America/Nassau.rb +166 -172
  392. data/lib/tzinfo/definitions/America/New_York.rb +256 -262
  393. data/lib/tzinfo/definitions/America/Nipigon.rb +151 -157
  394. data/lib/tzinfo/definitions/America/Nome.rb +164 -170
  395. data/lib/tzinfo/definitions/America/Noronha.rb +45 -51
  396. data/lib/tzinfo/definitions/America/North_Dakota/Center.rb +166 -172
  397. data/lib/tzinfo/definitions/America/Panama.rb +4 -10
  398. data/lib/tzinfo/definitions/America/Pangnirtung.rb +142 -148
  399. data/lib/tzinfo/definitions/America/Paramaribo.rb +7 -13
  400. data/lib/tzinfo/definitions/America/Phoenix.rb +15 -21
  401. data/lib/tzinfo/definitions/America/Port__m__au__m__Prince.rb +36 -42
  402. data/lib/tzinfo/definitions/America/Port_of_Spain.rb +3 -9
  403. data/lib/tzinfo/definitions/America/Porto_Acre.rb +1 -4
  404. data/lib/tzinfo/definitions/America/Porto_Velho.rb +32 -38
  405. data/lib/tzinfo/definitions/America/Puerto_Rico.rb +5 -11
  406. data/lib/tzinfo/definitions/America/Rainy_River.rb +151 -157
  407. data/lib/tzinfo/definitions/America/Rankin_Inlet.rb +142 -148
  408. data/lib/tzinfo/definitions/America/Recife.rb +45 -51
  409. data/lib/tzinfo/definitions/America/Regina.rb +54 -60
  410. data/lib/tzinfo/definitions/America/Rio_Branco.rb +32 -38
  411. data/lib/tzinfo/definitions/America/Rosario.rb +1 -4
  412. data/lib/tzinfo/definitions/America/Santiago.rb +175 -181
  413. data/lib/tzinfo/definitions/America/Santo_Domingo.rb +19 -25
  414. data/lib/tzinfo/definitions/America/Sao_Paulo.rb +146 -152
  415. data/lib/tzinfo/definitions/America/Scoresbysund.rb +134 -140
  416. data/lib/tzinfo/definitions/America/Shiprock.rb +1 -4
  417. data/lib/tzinfo/definitions/America/St_Johns.rb +259 -265
  418. data/lib/tzinfo/definitions/America/St_Kitts.rb +3 -9
  419. data/lib/tzinfo/definitions/America/St_Lucia.rb +4 -10
  420. data/lib/tzinfo/definitions/America/St_Thomas.rb +3 -9
  421. data/lib/tzinfo/definitions/America/St_Vincent.rb +4 -10
  422. data/lib/tzinfo/definitions/America/Swift_Current.rb +24 -30
  423. data/lib/tzinfo/definitions/America/Tegucigalpa.rb +7 -13
  424. data/lib/tzinfo/definitions/America/Thule.rb +112 -118
  425. data/lib/tzinfo/definitions/America/Thunder_Bay.rb +159 -165
  426. data/lib/tzinfo/definitions/America/Tijuana.rb +171 -177
  427. data/lib/tzinfo/definitions/America/Toronto.rb +252 -258
  428. data/lib/tzinfo/definitions/America/Tortola.rb +3 -9
  429. data/lib/tzinfo/definitions/America/Vancouver.rb +206 -212
  430. data/lib/tzinfo/definitions/America/Virgin.rb +1 -4
  431. data/lib/tzinfo/definitions/America/Whitehorse.rb +143 -149
  432. data/lib/tzinfo/definitions/America/Winnipeg.rb +202 -208
  433. data/lib/tzinfo/definitions/America/Yakutat.rb +163 -169
  434. data/lib/tzinfo/definitions/America/Yellowknife.rb +142 -148
  435. data/lib/tzinfo/definitions/Antarctica/Casey.rb +3 -9
  436. data/lib/tzinfo/definitions/Antarctica/Davis.rb +5 -11
  437. data/lib/tzinfo/definitions/Antarctica/DumontDUrville.rb +5 -11
  438. data/lib/tzinfo/definitions/Antarctica/Mawson.rb +3 -9
  439. data/lib/tzinfo/definitions/Antarctica/McMurdo.rb +145 -151
  440. data/lib/tzinfo/definitions/Antarctica/Palmer.rb +147 -153
  441. data/lib/tzinfo/definitions/Antarctica/Rothera.rb +3 -9
  442. data/lib/tzinfo/definitions/Antarctica/South_Pole.rb +1 -4
  443. data/lib/tzinfo/definitions/Antarctica/Syowa.rb +3 -9
  444. data/lib/tzinfo/definitions/Antarctica/Vostok.rb +3 -9
  445. data/lib/tzinfo/definitions/Arctic/Longyearbyen.rb +1 -4
  446. data/lib/tzinfo/definitions/Asia/Aden.rb +3 -9
  447. data/lib/tzinfo/definitions/Asia/Almaty.rb +53 -59
  448. data/lib/tzinfo/definitions/Asia/Amman.rb +136 -142
  449. data/lib/tzinfo/definitions/Asia/Anadyr.rb +134 -140
  450. data/lib/tzinfo/definitions/Asia/Aqtau.rb +53 -59
  451. data/lib/tzinfo/definitions/Asia/Aqtobe.rb +53 -59
  452. data/lib/tzinfo/definitions/Asia/Ashgabat.rb +28 -34
  453. data/lib/tzinfo/definitions/Asia/Ashkhabad.rb +1 -4
  454. data/lib/tzinfo/definitions/Asia/Baghdad.rb +131 -137
  455. data/lib/tzinfo/definitions/Asia/Bahrain.rb +4 -10
  456. data/lib/tzinfo/definitions/Asia/Baku.rb +130 -136
  457. data/lib/tzinfo/definitions/Asia/Bangkok.rb +4 -10
  458. data/lib/tzinfo/definitions/Asia/Beirut.rb +158 -164
  459. data/lib/tzinfo/definitions/Asia/Bishkek.rb +132 -138
  460. data/lib/tzinfo/definitions/Asia/Brunei.rb +4 -10
  461. data/lib/tzinfo/definitions/Asia/Calcutta.rb +7 -13
  462. data/lib/tzinfo/definitions/Asia/Choibalsan.rb +125 -131
  463. data/lib/tzinfo/definitions/Asia/Chongqing.rb +16 -22
  464. data/lib/tzinfo/definitions/Asia/Chungking.rb +1 -4
  465. data/lib/tzinfo/definitions/Asia/Colombo.rb +9 -15
  466. data/lib/tzinfo/definitions/Asia/Dacca.rb +1 -4
  467. data/lib/tzinfo/definitions/Asia/Damascus.rb +168 -174
  468. data/lib/tzinfo/definitions/Asia/Dhaka.rb +8 -14
  469. data/lib/tzinfo/definitions/Asia/Dili.rb +7 -13
  470. data/lib/tzinfo/definitions/Asia/Dubai.rb +3 -9
  471. data/lib/tzinfo/definitions/Asia/Dushanbe.rb +26 -32
  472. data/lib/tzinfo/definitions/Asia/Gaza.rb +162 -168
  473. data/lib/tzinfo/definitions/Asia/Harbin.rb +19 -25
  474. data/lib/tzinfo/definitions/Asia/Hong_Kong.rb +71 -77
  475. data/lib/tzinfo/definitions/Asia/Hovd.rb +125 -131
  476. data/lib/tzinfo/definitions/Asia/Irkutsk.rb +135 -141
  477. data/lib/tzinfo/definitions/Asia/Istanbul.rb +1 -4
  478. data/lib/tzinfo/definitions/Asia/Jakarta.rb +10 -16
  479. data/lib/tzinfo/definitions/Asia/Jayapura.rb +5 -11
  480. data/lib/tzinfo/definitions/Asia/Jerusalem.rb +145 -151
  481. data/lib/tzinfo/definitions/Asia/Kabul.rb +4 -10
  482. data/lib/tzinfo/definitions/Asia/Kamchatka.rb +134 -140
  483. data/lib/tzinfo/definitions/Asia/Karachi.rb +9 -15
  484. data/lib/tzinfo/definitions/Asia/Kashgar.rb +17 -23
  485. data/lib/tzinfo/definitions/Asia/Katmandu.rb +4 -10
  486. data/lib/tzinfo/definitions/Asia/Krasnoyarsk.rb +134 -140
  487. data/lib/tzinfo/definitions/Asia/Kuala_Lumpur.rb +10 -16
  488. data/lib/tzinfo/definitions/Asia/Kuching.rb +21 -27
  489. data/lib/tzinfo/definitions/Asia/Kuwait.rb +3 -9
  490. data/lib/tzinfo/definitions/Asia/Macao.rb +1 -4
  491. data/lib/tzinfo/definitions/Asia/Macau.rb +44 -50
  492. data/lib/tzinfo/definitions/Asia/Magadan.rb +134 -140
  493. data/lib/tzinfo/definitions/Asia/Makassar.rb +6 -12
  494. data/lib/tzinfo/definitions/Asia/Manila.rb +12 -18
  495. data/lib/tzinfo/definitions/Asia/Muscat.rb +3 -9
  496. data/lib/tzinfo/definitions/Asia/Nicosia.rb +145 -151
  497. data/lib/tzinfo/definitions/Asia/Novosibirsk.rb +135 -141
  498. data/lib/tzinfo/definitions/Asia/Omsk.rb +134 -140
  499. data/lib/tzinfo/definitions/Asia/Oral.rb +53 -59
  500. data/lib/tzinfo/definitions/Asia/Phnom_Penh.rb +6 -12
  501. data/lib/tzinfo/definitions/Asia/Pontianak.rb +10 -16
  502. data/lib/tzinfo/definitions/Asia/Pyongyang.rb +8 -14
  503. data/lib/tzinfo/definitions/Asia/Qatar.rb +4 -10
  504. data/lib/tzinfo/definitions/Asia/Qyzylorda.rb +54 -60
  505. data/lib/tzinfo/definitions/Asia/Rangoon.rb +6 -12
  506. data/lib/tzinfo/definitions/Asia/Riyadh.rb +3 -9
  507. data/lib/tzinfo/definitions/Asia/Riyadh87.rb +339 -345
  508. data/lib/tzinfo/definitions/Asia/Riyadh88.rb +340 -346
  509. data/lib/tzinfo/definitions/Asia/Riyadh89.rb +340 -346
  510. data/lib/tzinfo/definitions/Asia/Saigon.rb +6 -12
  511. data/lib/tzinfo/definitions/Asia/Sakhalin.rb +135 -141
  512. data/lib/tzinfo/definitions/Asia/Samarkand.rb +31 -37
  513. data/lib/tzinfo/definitions/Asia/Seoul.rb +15 -21
  514. data/lib/tzinfo/definitions/Asia/Shanghai.rb +20 -26
  515. data/lib/tzinfo/definitions/Asia/Singapore.rb +11 -17
  516. data/lib/tzinfo/definitions/Asia/Taipei.rb +43 -49
  517. data/lib/tzinfo/definitions/Asia/Tashkent.rb +31 -37
  518. data/lib/tzinfo/definitions/Asia/Tbilisi.rb +137 -143
  519. data/lib/tzinfo/definitions/Asia/Tehran.rb +106 -112
  520. data/lib/tzinfo/definitions/Asia/Tel_Aviv.rb +1 -4
  521. data/lib/tzinfo/definitions/Asia/Thimbu.rb +1 -4
  522. data/lib/tzinfo/definitions/Asia/Thimphu.rb +4 -10
  523. data/lib/tzinfo/definitions/Asia/Tokyo.rb +13 -19
  524. data/lib/tzinfo/definitions/Asia/Ujung_Pandang.rb +1 -4
  525. data/lib/tzinfo/definitions/Asia/Ulaanbaatar.rb +125 -131
  526. data/lib/tzinfo/definitions/Asia/Ulan_Bator.rb +1 -4
  527. data/lib/tzinfo/definitions/Asia/Urumqi.rb +16 -22
  528. data/lib/tzinfo/definitions/Asia/Vientiane.rb +6 -12
  529. data/lib/tzinfo/definitions/Asia/Vladivostok.rb +134 -140
  530. data/lib/tzinfo/definitions/Asia/Yakutsk.rb +134 -140
  531. data/lib/tzinfo/definitions/Asia/Yekaterinburg.rb +134 -140
  532. data/lib/tzinfo/definitions/Asia/Yerevan.rb +133 -139
  533. data/lib/tzinfo/definitions/Atlantic/Azores.rb +238 -244
  534. data/lib/tzinfo/definitions/Atlantic/Bermuda.rb +146 -152
  535. data/lib/tzinfo/definitions/Atlantic/Canary.rb +136 -142
  536. data/lib/tzinfo/definitions/Atlantic/Cape_Verde.rb +6 -12
  537. data/lib/tzinfo/definitions/Atlantic/Faeroe.rb +133 -139
  538. data/lib/tzinfo/definitions/Atlantic/Jan_Mayen.rb +1 -4
  539. data/lib/tzinfo/definitions/Atlantic/Madeira.rb +238 -244
  540. data/lib/tzinfo/definitions/Atlantic/Reykjavik.rb +67 -73
  541. data/lib/tzinfo/definitions/Atlantic/South_Georgia.rb +3 -9
  542. data/lib/tzinfo/definitions/Atlantic/St_Helena.rb +4 -10
  543. data/lib/tzinfo/definitions/Atlantic/Stanley.rb +142 -147
  544. data/lib/tzinfo/definitions/Australia/ACT.rb +1 -4
  545. data/lib/tzinfo/definitions/Australia/Adelaide.rb +161 -167
  546. data/lib/tzinfo/definitions/Australia/Brisbane.rb +20 -26
  547. data/lib/tzinfo/definitions/Australia/Broken_Hill.rb +163 -169
  548. data/lib/tzinfo/definitions/Australia/Canberra.rb +1 -4
  549. data/lib/tzinfo/definitions/Australia/Currie.rb +161 -167
  550. data/lib/tzinfo/definitions/Australia/Darwin.rb +12 -18
  551. data/lib/tzinfo/definitions/Australia/Hobart.rb +169 -175
  552. data/lib/tzinfo/definitions/Australia/LHI.rb +1 -4
  553. data/lib/tzinfo/definitions/Australia/Lindeman.rb +25 -31
  554. data/lib/tzinfo/definitions/Australia/Lord_Howe.rb +132 -138
  555. data/lib/tzinfo/definitions/Australia/Melbourne.rb +160 -166
  556. data/lib/tzinfo/definitions/Australia/NSW.rb +1 -4
  557. data/lib/tzinfo/definitions/Australia/North.rb +1 -4
  558. data/lib/tzinfo/definitions/Australia/Perth.rb +16 -22
  559. data/lib/tzinfo/definitions/Australia/Queensland.rb +1 -4
  560. data/lib/tzinfo/definitions/Australia/South.rb +1 -4
  561. data/lib/tzinfo/definitions/Australia/Sydney.rb +160 -166
  562. data/lib/tzinfo/definitions/Australia/Tasmania.rb +1 -4
  563. data/lib/tzinfo/definitions/Australia/Victoria.rb +1 -4
  564. data/lib/tzinfo/definitions/Australia/West.rb +1 -4
  565. data/lib/tzinfo/definitions/Australia/Yancowinna.rb +1 -4
  566. data/lib/tzinfo/definitions/Brazil/Acre.rb +1 -4
  567. data/lib/tzinfo/definitions/Brazil/DeNoronha.rb +1 -4
  568. data/lib/tzinfo/definitions/Brazil/East.rb +1 -4
  569. data/lib/tzinfo/definitions/Brazil/West.rb +1 -4
  570. data/lib/tzinfo/definitions/CET.rb +151 -157
  571. data/lib/tzinfo/definitions/CST6CDT.rb +1 -4
  572. data/lib/tzinfo/definitions/Canada/Atlantic.rb +1 -4
  573. data/lib/tzinfo/definitions/Canada/Central.rb +1 -4
  574. data/lib/tzinfo/definitions/Canada/East__m__Saskatchewan.rb +1 -4
  575. data/lib/tzinfo/definitions/Canada/Eastern.rb +1 -4
  576. data/lib/tzinfo/definitions/Canada/Mountain.rb +1 -4
  577. data/lib/tzinfo/definitions/Canada/Newfoundland.rb +1 -4
  578. data/lib/tzinfo/definitions/Canada/Pacific.rb +1 -4
  579. data/lib/tzinfo/definitions/Canada/Saskatchewan.rb +1 -4
  580. data/lib/tzinfo/definitions/Canada/Yukon.rb +1 -4
  581. data/lib/tzinfo/definitions/Chile/Continental.rb +1 -4
  582. data/lib/tzinfo/definitions/Chile/EasterIsland.rb +1 -4
  583. data/lib/tzinfo/definitions/Cuba.rb +1 -4
  584. data/lib/tzinfo/definitions/EET.rb +139 -145
  585. data/lib/tzinfo/definitions/EST.rb +1 -4
  586. data/lib/tzinfo/definitions/EST5EDT.rb +1 -4
  587. data/lib/tzinfo/definitions/Egypt.rb +1 -4
  588. data/lib/tzinfo/definitions/Eire.rb +1 -4
  589. data/lib/tzinfo/definitions/Etc/GMT.rb +2 -8
  590. data/lib/tzinfo/definitions/Etc/GMT0.rb +1 -4
  591. data/lib/tzinfo/definitions/Etc/GMT__m__0.rb +1 -4
  592. data/lib/tzinfo/definitions/Etc/GMT__m__1.rb +2 -8
  593. data/lib/tzinfo/definitions/Etc/GMT__m__10.rb +2 -8
  594. data/lib/tzinfo/definitions/Etc/GMT__m__11.rb +2 -8
  595. data/lib/tzinfo/definitions/Etc/GMT__m__12.rb +2 -8
  596. data/lib/tzinfo/definitions/Etc/GMT__m__13.rb +2 -8
  597. data/lib/tzinfo/definitions/Etc/GMT__m__14.rb +2 -8
  598. data/lib/tzinfo/definitions/Etc/GMT__m__2.rb +2 -8
  599. data/lib/tzinfo/definitions/Etc/GMT__m__3.rb +2 -8
  600. data/lib/tzinfo/definitions/Etc/GMT__m__4.rb +2 -8
  601. data/lib/tzinfo/definitions/Etc/GMT__m__5.rb +2 -8
  602. data/lib/tzinfo/definitions/Etc/GMT__m__6.rb +2 -8
  603. data/lib/tzinfo/definitions/Etc/GMT__m__7.rb +2 -8
  604. data/lib/tzinfo/definitions/Etc/GMT__m__8.rb +2 -8
  605. data/lib/tzinfo/definitions/Etc/GMT__m__9.rb +2 -8
  606. data/lib/tzinfo/definitions/Etc/GMT__p__0.rb +1 -4
  607. data/lib/tzinfo/definitions/Etc/GMT__p__1.rb +2 -8
  608. data/lib/tzinfo/definitions/Etc/GMT__p__10.rb +2 -8
  609. data/lib/tzinfo/definitions/Etc/GMT__p__11.rb +2 -8
  610. data/lib/tzinfo/definitions/Etc/GMT__p__12.rb +2 -8
  611. data/lib/tzinfo/definitions/Etc/GMT__p__2.rb +2 -8
  612. data/lib/tzinfo/definitions/Etc/GMT__p__3.rb +2 -8
  613. data/lib/tzinfo/definitions/Etc/GMT__p__4.rb +2 -8
  614. data/lib/tzinfo/definitions/Etc/GMT__p__5.rb +2 -8
  615. data/lib/tzinfo/definitions/Etc/GMT__p__6.rb +2 -8
  616. data/lib/tzinfo/definitions/Etc/GMT__p__7.rb +2 -8
  617. data/lib/tzinfo/definitions/Etc/GMT__p__8.rb +2 -8
  618. data/lib/tzinfo/definitions/Etc/GMT__p__9.rb +2 -8
  619. data/lib/tzinfo/definitions/Etc/Greenwich.rb +1 -4
  620. data/lib/tzinfo/definitions/Etc/UCT.rb +2 -8
  621. data/lib/tzinfo/definitions/Etc/UTC.rb +2 -8
  622. data/lib/tzinfo/definitions/Etc/Universal.rb +1 -4
  623. data/lib/tzinfo/definitions/Etc/Zulu.rb +1 -4
  624. data/lib/tzinfo/definitions/Europe/Amsterdam.rb +197 -203
  625. data/lib/tzinfo/definitions/Europe/Andorra.rb +125 -131
  626. data/lib/tzinfo/definitions/Europe/Athens.rb +156 -162
  627. data/lib/tzinfo/definitions/Europe/Belfast.rb +1 -4
  628. data/lib/tzinfo/definitions/Europe/Belgrade.rb +136 -142
  629. data/lib/tzinfo/definitions/Europe/Berlin.rb +161 -167
  630. data/lib/tzinfo/definitions/Europe/Bratislava.rb +1 -4
  631. data/lib/tzinfo/definitions/Europe/Brussels.rb +203 -209
  632. data/lib/tzinfo/definitions/Europe/Bucharest.rb +156 -162
  633. data/lib/tzinfo/definitions/Europe/Budapest.rb +170 -176
  634. data/lib/tzinfo/definitions/Europe/Chisinau.rb +159 -165
  635. data/lib/tzinfo/definitions/Europe/Copenhagen.rb +152 -158
  636. data/lib/tzinfo/definitions/Europe/Dublin.rb +246 -252
  637. data/lib/tzinfo/definitions/Europe/Gibraltar.rb +216 -222
  638. data/lib/tzinfo/definitions/Europe/Helsinki.rb +136 -142
  639. data/lib/tzinfo/definitions/Europe/Istanbul.rb +190 -196
  640. data/lib/tzinfo/definitions/Europe/Kaliningrad.rb +148 -154
  641. data/lib/tzinfo/definitions/Europe/Kiev.rb +138 -144
  642. data/lib/tzinfo/definitions/Europe/Lisbon.rb +239 -245
  643. data/lib/tzinfo/definitions/Europe/Ljubljana.rb +1 -4
  644. data/lib/tzinfo/definitions/Europe/London.rb +260 -266
  645. data/lib/tzinfo/definitions/Europe/Luxembourg.rb +200 -206
  646. data/lib/tzinfo/definitions/Europe/Madrid.rb +182 -188
  647. data/lib/tzinfo/definitions/Europe/Malta.rb +187 -193
  648. data/lib/tzinfo/definitions/Europe/Mariehamn.rb +1 -4
  649. data/lib/tzinfo/definitions/Europe/Minsk.rb +136 -142
  650. data/lib/tzinfo/definitions/Europe/Monaco.rb +203 -209
  651. data/lib/tzinfo/definitions/Europe/Moscow.rb +147 -153
  652. data/lib/tzinfo/definitions/Europe/Nicosia.rb +1 -4
  653. data/lib/tzinfo/definitions/Europe/Oslo.rb +158 -164
  654. data/lib/tzinfo/definitions/Europe/Paris.rb +201 -207
  655. data/lib/tzinfo/definitions/Europe/Prague.rb +159 -165
  656. data/lib/tzinfo/definitions/Europe/Riga.rb +145 -151
  657. data/lib/tzinfo/definitions/Europe/Rome.rb +189 -195
  658. data/lib/tzinfo/definitions/Europe/Samara.rb +134 -140
  659. data/lib/tzinfo/definitions/Europe/San_Marino.rb +1 -4
  660. data/lib/tzinfo/definitions/Europe/Sarajevo.rb +1 -4
  661. data/lib/tzinfo/definitions/Europe/Simferopol.rb +140 -146
  662. data/lib/tzinfo/definitions/Europe/Skopje.rb +1 -4
  663. data/lib/tzinfo/definitions/Europe/Sofia.rb +146 -152
  664. data/lib/tzinfo/definitions/Europe/Stockholm.rb +138 -144
  665. data/lib/tzinfo/definitions/Europe/Tallinn.rb +141 -147
  666. data/lib/tzinfo/definitions/Europe/Tirane.rb +151 -157
  667. data/lib/tzinfo/definitions/Europe/Tiraspol.rb +1 -4
  668. data/lib/tzinfo/definitions/Europe/Uzhgorod.rb +142 -148
  669. data/lib/tzinfo/definitions/Europe/Vaduz.rb +133 -139
  670. data/lib/tzinfo/definitions/Europe/Vatican.rb +1 -4
  671. data/lib/tzinfo/definitions/Europe/Vienna.rb +159 -165
  672. data/lib/tzinfo/definitions/Europe/Vilnius.rb +137 -143
  673. data/lib/tzinfo/definitions/Europe/Warsaw.rb +184 -190
  674. data/lib/tzinfo/definitions/Europe/Zagreb.rb +1 -4
  675. data/lib/tzinfo/definitions/Europe/Zaporozhye.rb +139 -145
  676. data/lib/tzinfo/definitions/Europe/Zurich.rb +140 -146
  677. data/lib/tzinfo/definitions/GB.rb +1 -4
  678. data/lib/tzinfo/definitions/GB__m__Eire.rb +1 -4
  679. data/lib/tzinfo/definitions/GMT.rb +1 -4
  680. data/lib/tzinfo/definitions/GMT0.rb +1 -4
  681. data/lib/tzinfo/definitions/GMT__m__0.rb +1 -4
  682. data/lib/tzinfo/definitions/GMT__p__0.rb +1 -4
  683. data/lib/tzinfo/definitions/Greenwich.rb +1 -4
  684. data/lib/tzinfo/definitions/HST.rb +1 -4
  685. data/lib/tzinfo/definitions/Hongkong.rb +1 -4
  686. data/lib/tzinfo/definitions/Iceland.rb +1 -4
  687. data/lib/tzinfo/definitions/Indian/Antananarivo.rb +5 -11
  688. data/lib/tzinfo/definitions/Indian/Chagos.rb +4 -10
  689. data/lib/tzinfo/definitions/Indian/Christmas.rb +3 -9
  690. data/lib/tzinfo/definitions/Indian/Cocos.rb +3 -9
  691. data/lib/tzinfo/definitions/Indian/Comoro.rb +3 -9
  692. data/lib/tzinfo/definitions/Indian/Kerguelen.rb +3 -9
  693. data/lib/tzinfo/definitions/Indian/Mahe.rb +3 -9
  694. data/lib/tzinfo/definitions/Indian/Maldives.rb +4 -10
  695. data/lib/tzinfo/definitions/Indian/Mauritius.rb +3 -9
  696. data/lib/tzinfo/definitions/Indian/Mayotte.rb +3 -9
  697. data/lib/tzinfo/definitions/Indian/Reunion.rb +3 -9
  698. data/lib/tzinfo/definitions/Iran.rb +1 -4
  699. data/lib/tzinfo/definitions/Israel.rb +1 -4
  700. data/lib/tzinfo/definitions/Jamaica.rb +1 -4
  701. data/lib/tzinfo/definitions/Japan.rb +1 -4
  702. data/lib/tzinfo/definitions/Kwajalein.rb +1 -4
  703. data/lib/tzinfo/definitions/Libya.rb +1 -4
  704. data/lib/tzinfo/definitions/MET.rb +151 -157
  705. data/lib/tzinfo/definitions/MST.rb +1 -4
  706. data/lib/tzinfo/definitions/MST7MDT.rb +1 -4
  707. data/lib/tzinfo/definitions/Mexico/BajaNorte.rb +1 -4
  708. data/lib/tzinfo/definitions/Mexico/BajaSur.rb +1 -4
  709. data/lib/tzinfo/definitions/Mexico/General.rb +1 -4
  710. data/lib/tzinfo/definitions/Mideast/Riyadh87.rb +1 -4
  711. data/lib/tzinfo/definitions/Mideast/Riyadh88.rb +1 -4
  712. data/lib/tzinfo/definitions/Mideast/Riyadh89.rb +1 -4
  713. data/lib/tzinfo/definitions/NZ.rb +1 -4
  714. data/lib/tzinfo/definitions/NZ__m__CHAT.rb +1 -4
  715. data/lib/tzinfo/definitions/Navajo.rb +1 -4
  716. data/lib/tzinfo/definitions/PRC.rb +1 -4
  717. data/lib/tzinfo/definitions/PST8PDT.rb +1 -4
  718. data/lib/tzinfo/definitions/Pacific/Apia.rb +5 -11
  719. data/lib/tzinfo/definitions/Pacific/Auckland.rb +173 -179
  720. data/lib/tzinfo/definitions/Pacific/Chatham.rb +145 -151
  721. data/lib/tzinfo/definitions/Pacific/Easter.rb +163 -169
  722. data/lib/tzinfo/definitions/Pacific/Efate.rb +23 -29
  723. data/lib/tzinfo/definitions/Pacific/Enderbury.rb +5 -11
  724. data/lib/tzinfo/definitions/Pacific/Fakaofo.rb +3 -9
  725. data/lib/tzinfo/definitions/Pacific/Fiji.rb +7 -13
  726. data/lib/tzinfo/definitions/Pacific/Funafuti.rb +3 -9
  727. data/lib/tzinfo/definitions/Pacific/Galapagos.rb +4 -10
  728. data/lib/tzinfo/definitions/Pacific/Gambier.rb +3 -9
  729. data/lib/tzinfo/definitions/Pacific/Guadalcanal.rb +3 -9
  730. data/lib/tzinfo/definitions/Pacific/Guam.rb +5 -11
  731. data/lib/tzinfo/definitions/Pacific/Honolulu.rb +7 -13
  732. data/lib/tzinfo/definitions/Pacific/Johnston.rb +2 -8
  733. data/lib/tzinfo/definitions/Pacific/Kiritimati.rb +5 -11
  734. data/lib/tzinfo/definitions/Pacific/Kosrae.rb +5 -11
  735. data/lib/tzinfo/definitions/Pacific/Kwajalein.rb +5 -11
  736. data/lib/tzinfo/definitions/Pacific/Majuro.rb +4 -10
  737. data/lib/tzinfo/definitions/Pacific/Marquesas.rb +3 -9
  738. data/lib/tzinfo/definitions/Pacific/Midway.rb +7 -13
  739. data/lib/tzinfo/definitions/Pacific/Nauru.rb +6 -12
  740. data/lib/tzinfo/definitions/Pacific/Niue.rb +5 -11
  741. data/lib/tzinfo/definitions/Pacific/Norfolk.rb +4 -10
  742. data/lib/tzinfo/definitions/Pacific/Noumea.rb +9 -15
  743. data/lib/tzinfo/definitions/Pacific/Pago_Pago.rb +7 -13
  744. data/lib/tzinfo/definitions/Pacific/Palau.rb +3 -9
  745. data/lib/tzinfo/definitions/Pacific/Pitcairn.rb +4 -10
  746. data/lib/tzinfo/definitions/Pacific/Ponape.rb +3 -9
  747. data/lib/tzinfo/definitions/Pacific/Port_Moresby.rb +4 -10
  748. data/lib/tzinfo/definitions/Pacific/Rarotonga.rb +29 -35
  749. data/lib/tzinfo/definitions/Pacific/Saipan.rb +6 -12
  750. data/lib/tzinfo/definitions/Pacific/Samoa.rb +1 -4
  751. data/lib/tzinfo/definitions/Pacific/Tahiti.rb +3 -9
  752. data/lib/tzinfo/definitions/Pacific/Tarawa.rb +3 -9
  753. data/lib/tzinfo/definitions/Pacific/Tongatapu.rb +11 -17
  754. data/lib/tzinfo/definitions/Pacific/Truk.rb +3 -9
  755. data/lib/tzinfo/definitions/Pacific/Wake.rb +3 -9
  756. data/lib/tzinfo/definitions/Pacific/Wallis.rb +3 -9
  757. data/lib/tzinfo/definitions/Pacific/Yap.rb +1 -4
  758. data/lib/tzinfo/definitions/Poland.rb +1 -4
  759. data/lib/tzinfo/definitions/Portugal.rb +1 -4
  760. data/lib/tzinfo/definitions/ROC.rb +1 -4
  761. data/lib/tzinfo/definitions/ROK.rb +1 -4
  762. data/lib/tzinfo/definitions/Singapore.rb +1 -4
  763. data/lib/tzinfo/definitions/SystemV/AST4.rb +1 -4
  764. data/lib/tzinfo/definitions/SystemV/AST4ADT.rb +1 -4
  765. data/lib/tzinfo/definitions/SystemV/CST6.rb +1 -4
  766. data/lib/tzinfo/definitions/SystemV/CST6CDT.rb +1 -4
  767. data/lib/tzinfo/definitions/SystemV/EST5.rb +1 -4
  768. data/lib/tzinfo/definitions/SystemV/EST5EDT.rb +1 -4
  769. data/lib/tzinfo/definitions/SystemV/HST10.rb +1 -4
  770. data/lib/tzinfo/definitions/SystemV/MST7.rb +1 -4
  771. data/lib/tzinfo/definitions/SystemV/MST7MDT.rb +1 -4
  772. data/lib/tzinfo/definitions/SystemV/PST8.rb +1 -4
  773. data/lib/tzinfo/definitions/SystemV/PST8PDT.rb +1 -4
  774. data/lib/tzinfo/definitions/SystemV/YST9.rb +1 -4
  775. data/lib/tzinfo/definitions/SystemV/YST9YDT.rb +1 -4
  776. data/lib/tzinfo/definitions/Turkey.rb +1 -4
  777. data/lib/tzinfo/definitions/UCT.rb +1 -4
  778. data/lib/tzinfo/definitions/US/Alaska.rb +1 -4
  779. data/lib/tzinfo/definitions/US/Aleutian.rb +1 -4
  780. data/lib/tzinfo/definitions/US/Arizona.rb +1 -4
  781. data/lib/tzinfo/definitions/US/Central.rb +1 -4
  782. data/lib/tzinfo/definitions/US/East__m__Indiana.rb +1 -4
  783. data/lib/tzinfo/definitions/US/Eastern.rb +1 -4
  784. data/lib/tzinfo/definitions/US/Hawaii.rb +1 -4
  785. data/lib/tzinfo/definitions/US/Indiana__m__Starke.rb +1 -4
  786. data/lib/tzinfo/definitions/US/Michigan.rb +1 -4
  787. data/lib/tzinfo/definitions/US/Mountain.rb +1 -4
  788. data/lib/tzinfo/definitions/US/Pacific.rb +1 -4
  789. data/lib/tzinfo/definitions/US/Pacific__m__New.rb +1 -4
  790. data/lib/tzinfo/definitions/US/Samoa.rb +1 -4
  791. data/lib/tzinfo/definitions/UTC.rb +1 -4
  792. data/lib/tzinfo/definitions/Universal.rb +1 -4
  793. data/lib/tzinfo/definitions/WET.rb +139 -145
  794. data/lib/tzinfo/definitions/W__m__SU.rb +1 -4
  795. data/lib/tzinfo/definitions/Zulu.rb +1 -4
  796. data/lib/tzinfo/timezone.rb +98 -24
  797. data/lib/tzinfo/tzdataparser.rb +24 -25
  798. metadata +2 -2
@@ -3,10 +3,7 @@ require 'tzinfo/definitions/Europe/Moscow'
3
3
  module TZInfo
4
4
  module Definitions #:nodoc:
5
5
  class W__m__SU < Definitions::Europe::Moscow #:nodoc:
6
- @@instance = new
7
- def self.instance
8
- @@instance
9
- end
6
+ set_identifier('W-SU')
10
7
  end
11
8
  end
12
9
  end
@@ -3,10 +3,7 @@ require 'tzinfo/definitions/Etc/UTC'
3
3
  module TZInfo
4
4
  module Definitions #:nodoc:
5
5
  class Zulu < Definitions::Etc::UTC #:nodoc:
6
- @@instance = new
7
- def self.instance
8
- @@instance
9
- end
6
+ set_identifier('Zulu')
10
7
  end
11
8
  end
12
9
  end
@@ -1,3 +1,4 @@
1
+ require 'tzinfo/country'
1
2
 
2
3
  module TZInfo
3
4
  class PeriodNotFound < StandardError
@@ -16,7 +17,7 @@ module TZInfo
16
17
  # (see http://www.twinsun.com/tz/tz-link.htm)
17
18
  class Timezone
18
19
  # Returns a timezone by its identifier (e.g. "Europe/London",
19
- # "America/Chicago" and "UTC").
20
+ # "America/Chicago" or "UTC").
20
21
  #
21
22
  # Raises an exception of the timezone couldn't be found.
22
23
  def self.get(identifier)
@@ -31,16 +32,69 @@ module TZInfo
31
32
  m.instance
32
33
  end
33
34
 
34
- # Initializes the timezone.
35
- def initialize
36
- super
37
- @periods = []
38
- @identifier = nil
35
+ # If identifier is nil calls super(), else calls get(identifier).
36
+ def self.new(identifier = nil)
37
+ if identifier
38
+ get(identifier)
39
+ else
40
+ super()
41
+ end
42
+ end
43
+
44
+ # At the moment, returns the result of all_country_zones. May be changed
45
+ # in the future to return all the Timezone instances including
46
+ # non-country specific zones.
47
+ def self.all
48
+ all_country_zones
49
+ end
50
+
51
+ # At the moment, returns the result of all_country_zone_identifiers. May be changed
52
+ # in the future to return all the zone identifiers including
53
+ # non-country specific zones.
54
+ def self.all_identifiers
55
+ all_country_zone_identifiers
56
+ end
57
+
58
+ # Returns all the Timezones defined for all Countries. This is not the
59
+ # complete set of Timezones as some are not country specific (e.g.
60
+ # 'Etc/GMT').
61
+ #
62
+ # This method will take a substantial time to return the first time it is
63
+ # called as all the Timezone classes will have to be loaded by Ruby. If
64
+ # you just want the zone identifiers use all_country_zone_identifiers
65
+ # instead.
66
+ def self.all_country_zones
67
+ Country.all_codes.inject([]) {|zones,country|
68
+ zones += Country.get(country).zones
69
+ }
70
+ end
71
+
72
+ # Returns all the zone identifiers defined for all Countries. This is not the
73
+ # complete set of zone identifiers as some are not country specific (e.g.
74
+ # 'Etc/GMT'). You can obtain a Timezone instance for a given identifier
75
+ # with the get method.
76
+ def self.all_country_zone_identifiers
77
+ Country.all_codes.inject([]) {|zones,country|
78
+ zones += Country.get(country).zone_identifiers
79
+ }
80
+ end
81
+
82
+ # Returns all US Timezone instances. A shortcut for
83
+ # TZInfo::Country.get('US').zones. If you only need the zone identifiers,
84
+ # use us_zone_identifiers instead.
85
+ def self.us_zones
86
+ Country.get('US').zones
87
+ end
88
+
89
+ # Returns all US zone identifiers. A shortcut for
90
+ # TZInfo::Country.get('US').zone_identifiers.
91
+ def self.us_zone_identifiers
92
+ Country.get('US').zone_identifiers
39
93
  end
40
94
 
41
95
  # The identifier of the timezone, e.g. "Europe/Paris".
42
96
  def identifier
43
- @identifier
97
+ 'Unknown'
44
98
  end
45
99
 
46
100
  # Returns the TimezonePeriod for the given UTC time. utc can either be
@@ -51,20 +105,20 @@ module TZInfo
51
105
  def period_for_utc(utc)
52
106
  run_on_datetime(utc) {|utc|
53
107
  # dumb search for now
54
- @periods.each {|period|
108
+ periods.each {|period|
55
109
  if period.valid_for_utc?(utc)
56
110
  return period
57
111
  end
58
112
  }
59
113
 
60
114
  # if nothing found, assume the first and last periods are unbounded
61
- if @periods.length > 0
115
+ if periods.length > 0
62
116
 
63
- last = @periods[@periods.length - 1]
117
+ last = periods[periods.length - 1]
64
118
  if last.utc_after_start?(utc)
65
119
  last
66
120
  else
67
- first = @periods[0]
121
+ first = periods[0]
68
122
  if first.utc_before_end?(utc)
69
123
  first
70
124
  else
@@ -86,20 +140,20 @@ module TZInfo
86
140
  def period_for_local(local)
87
141
  run_on_datetime(local) {|local|
88
142
  # dumb search for now
89
- @periods.each {|period|
143
+ periods.each {|period|
90
144
  if period.valid_for_local?(local)
91
145
  return period
92
146
  end
93
147
  }
94
148
 
95
149
  # if nothing found, assume the first and last periods are unbounded
96
- if @periods.length > 0
150
+ if periods.length > 0
97
151
 
98
- last = @periods[@periods.length - 1]
152
+ last = periods[periods.length - 1]
99
153
  if last.local_after_start?(local)
100
154
  last
101
155
  else
102
- first = @periods[0]
156
+ first = periods[0]
103
157
  if first.local_before_end?(local)
104
158
  first
105
159
  else
@@ -154,14 +208,33 @@ module TZInfo
154
208
  end
155
209
 
156
210
  protected
157
- def add_period(period)
158
- @periods << period
159
- end
160
-
161
- def set_identifier(identifier)
162
- @identifier = identifier
211
+ def self.setup
212
+ class_eval <<CODE
213
+ @@periods = []
214
+ def self.add_period(period)
215
+ @@periods << period
216
+ end
217
+
218
+ def self.set_identifier(identifier)
219
+ @@identifier = identifier
220
+ end
221
+
222
+ def periods
223
+ @@periods
224
+ end
225
+ protected :periods
226
+
227
+ def identifier
228
+ @@identifier
229
+ end
230
+
231
+ @@instance = new
232
+ def self.instance
233
+ @@instance
234
+ end
235
+ CODE
163
236
  end
164
-
237
+
165
238
  private
166
239
  # Executes a block with a DateTime. If datetime is a Time it will be
167
240
  # converted to a DateTime before yielding to the block and the result of
@@ -176,7 +249,7 @@ module TZInfo
176
249
  else
177
250
  yield datetime
178
251
  end
179
- end
252
+ end
180
253
  end
181
254
 
182
255
  # A period of time in a timezone where the same offset from UTC applies.
@@ -196,7 +269,8 @@ module TZInfo
196
269
  attr_reader :std_offset
197
270
 
198
271
  # The identifier of this period, e.g. "GMT" (Greenwich Mean Time) or "BST"
199
- # (British Summer Time) for "Europe/London".
272
+ # (British Summer Time) for "Europe/London". The returned identifier is a
273
+ # symbol.
200
274
  attr_reader :zone_identifier
201
275
 
202
276
  # Start time of the period (local time). May be nil if unbounded.
@@ -39,7 +39,7 @@ module TZInfo
39
39
  }
40
40
 
41
41
  load_countries
42
-
42
+
43
43
  @zones.each_value {|zone|
44
44
  zone.write_class(@output_dir)
45
45
  }
@@ -254,8 +254,16 @@ module TZInfo
254
254
  protected
255
255
  # Writes a period of time with the same utc and std offsets to the file.
256
256
  def write_period(file, utc_start, utc_end, period, std_offset, letter)
257
- file.puts "add_period(TimezonePeriod.new(#{datetime_constructor(utc_start)},#{datetime_constructor(utc_end)},#{period.utc_offset.to_seconds},#{std_offset.to_seconds},#{quote_str(period.format.expand(std_offset, letter))}))"
258
- puts "Period from #{utc_start} to #{utc_end}, utc_offset=#{period.utc_offset.to_seconds}, std_offset=#{std_offset.to_seconds}, name=#{period.format.expand(std_offset, letter)}"
257
+ # The tzdata neglects to define the identifier for certain periods
258
+ # These have %s as the Zone format, but don't start with at the same
259
+ # time as a rule is defined to fill in %s.
260
+ zone_id = period.format.expand(std_offset, letter)
261
+ if zone_id.empty?
262
+ zone_id = 'Unknown'
263
+ end
264
+
265
+ file.puts "add_period(TimezonePeriod.new(#{datetime_constructor(utc_start)},#{datetime_constructor(utc_end)},#{period.utc_offset.to_seconds},#{std_offset.to_seconds},:#{quote_str(zone_id)}))"
266
+ #puts "Period from #{utc_start} to #{utc_end}, utc_offset=#{period.utc_offset.to_seconds}, std_offset=#{std_offset.to_seconds}, name=#{period.format.expand(std_offset, letter)}"
259
267
  end
260
268
 
261
269
  private
@@ -616,10 +624,10 @@ module TZInfo
616
624
 
617
625
  yield file
618
626
 
619
- file.puts('@@instance = new')
620
- file.puts('def self.instance')
621
- file.puts(' @@instance')
622
- file.puts('end')
627
+ #file.puts('@@instance = new')
628
+ #file.puts('def self.instance')
629
+ #file.puts(' @@instance')
630
+ #file.puts('end')
623
631
 
624
632
  file.puts('end') # end class
625
633
 
@@ -662,6 +670,7 @@ module TZInfo
662
670
  puts "writing link #{name}"
663
671
 
664
672
  create_file(output_dir) {|file|
673
+ file.puts("set_identifier('#{@name.gsub(/'/, '\\\'')}')")
665
674
  }
666
675
  end
667
676
  end
@@ -691,8 +700,7 @@ module TZInfo
691
700
 
692
701
  create_file(output_dir) {|file|
693
702
 
694
- file.puts('def initialize')
695
- file.puts(' super')
703
+ file.puts('setup')
696
704
  file.puts("set_identifier('#{@name.gsub(/'/, '\\\'')}')")
697
705
 
698
706
  utc_start = nil
@@ -705,9 +713,7 @@ module TZInfo
705
713
  utc_start = result[0]
706
714
  std_offset = result[1]
707
715
  last_utc_offset = period.utc_offset
708
- }
709
-
710
- file.puts('end')
716
+ }
711
717
  }
712
718
  end
713
719
  end
@@ -962,23 +968,16 @@ module TZInfo
962
968
 
963
969
  file.puts("class #{@code} < Country #:nodoc:")
964
970
 
965
- file.puts('def initialize')
966
- file.puts(' super')
967
- file.puts(" set_code('#{code.gsub(/'/, '\\\'')}')")
968
- file.puts(" set_name('#{name.gsub(/'/, '\\\'')}')")
971
+ file.puts('setup')
972
+ file.puts("set_code('#{code.gsub(/'/, '\\\'')}')")
973
+ file.puts("set_name('#{name.gsub(/'/, '\\\'')}')")
969
974
 
970
975
  @zones.each_value {|zone|
971
- file.puts(" add_zone('#{zone.name.gsub(/'/, '\\\'')}')")
976
+ file.puts("add_zone('#{zone.name.gsub(/'/, '\\\'')}')")
972
977
  }
973
978
 
974
- file.puts(' zones_added')
975
-
976
- file.puts('end')
977
-
978
- file.puts('@@instance = new')
979
- file.puts('def self.instance')
980
- file.puts(' @@instance')
981
- file.puts('end')
979
+ file.puts('zones_added')
980
+
982
981
 
983
982
  file.puts('end') # end class
984
983
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: tzinfo
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2005-08-30
6
+ version: 0.0.2
7
+ date: 2005-09-13
8
8
  summary: Daylight-savings aware timezone library
9
9
  require_paths:
10
10
  - lib