Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated bundled TZInfo gem to version 0.3.9 for Ruby 1.9 compat

  • Loading branch information...
commit b415538b5dbf017d20226411a9d25a149f87eb51 1 parent ba0f38f
Joshua Peek josh authored
Showing with 116 additions and 110 deletions.
  1. +1 −1  activesupport/Rakefile
  2. +2 −2 activesupport/lib/active_support/vendor.rb
  3. +0 −95 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/offset_rationals.rb
  4. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo.rb
  5. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/data_timezone.rb
  6. +2 −0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/data_timezone_info.rb
  7. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Africa/Algiers.rb
  8. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Africa/Cairo.rb
  9. +2 −0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Africa/Casablanca.rb
  10. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Africa/Harare.rb
  11. 0  ...port/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Africa/Johannesburg.rb
  12. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Africa/Monrovia.rb
  13. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Africa/Nairobi.rb
  14. 0  ...tive_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Argentina/Buenos_Aires.rb
  15. 0  ...b/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Argentina/San_Juan.rb
  16. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Bogota.rb
  17. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Caracas.rb
  18. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Chicago.rb
  19. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Chihuahua.rb
  20. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Denver.rb
  21. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Godthab.rb
  22. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Guatemala.rb
  23. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Halifax.rb
  24. 0  ...active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Indiana/Indianapolis.rb
  25. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Juneau.rb
  26. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/La_Paz.rb
  27. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Lima.rb
  28. 0  ...port/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Los_Angeles.rb
  29. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Mazatlan.rb
  30. 0  ...port/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Mexico_City.rb
  31. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Monterrey.rb
  32. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/New_York.rb
  33. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Phoenix.rb
  34. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Regina.rb
  35. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Santiago.rb
  36. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/St_Johns.rb
  37. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/America/Tijuana.rb
  38. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Almaty.rb
  39. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Baghdad.rb
  40. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Baku.rb
  41. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Bangkok.rb
  42. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Chongqing.rb
  43. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Dhaka.rb
  44. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Hong_Kong.rb
  45. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Irkutsk.rb
  46. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Jakarta.rb
  47. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Jerusalem.rb
  48. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Kabul.rb
  49. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Kamchatka.rb
  50. +2 −0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Karachi.rb
  51. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Katmandu.rb
  52. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Kolkata.rb
  53. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Krasnoyarsk.rb
  54. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Kuala_Lumpur.rb
  55. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Kuwait.rb
  56. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Magadan.rb
  57. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Muscat.rb
  58. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Novosibirsk.rb
  59. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Rangoon.rb
  60. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Riyadh.rb
  61. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Seoul.rb
  62. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Shanghai.rb
  63. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Singapore.rb
  64. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Taipei.rb
  65. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Tashkent.rb
  66. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Tbilisi.rb
  67. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Tehran.rb
  68. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Tokyo.rb
  69. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Ulaanbaatar.rb
  70. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Urumqi.rb
  71. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Vladivostok.rb
  72. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Yakutsk.rb
  73. 0  ...pport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Yekaterinburg.rb
  74. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Asia/Yerevan.rb
  75. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Atlantic/Azores.rb
  76. 0  ...port/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Atlantic/Cape_Verde.rb
  77. 0  ...t/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Atlantic/South_Georgia.rb
  78. 0  ...pport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Australia/Adelaide.rb
  79. 0  ...pport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Australia/Brisbane.rb
  80. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Australia/Darwin.rb
  81. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Australia/Hobart.rb
  82. 0  ...port/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Australia/Melbourne.rb
  83. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Australia/Perth.rb
  84. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Australia/Sydney.rb
  85. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Etc/UTC.rb
  86. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Amsterdam.rb
  87. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Athens.rb
  88. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Belgrade.rb
  89. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Berlin.rb
  90. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Bratislava.rb
  91. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Brussels.rb
  92. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Bucharest.rb
  93. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Budapest.rb
  94. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Copenhagen.rb
  95. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Dublin.rb
  96. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Helsinki.rb
  97. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Istanbul.rb
  98. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Kiev.rb
  99. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Lisbon.rb
  100. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Ljubljana.rb
  101. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/London.rb
  102. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Madrid.rb
  103. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Minsk.rb
  104. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Moscow.rb
  105. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Paris.rb
  106. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Prague.rb
  107. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Riga.rb
  108. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Rome.rb
  109. 0  ...esupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Sarajevo.rb
  110. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Skopje.rb
  111. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Sofia.rb
  112. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Stockholm.rb
  113. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Tallinn.rb
  114. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Vienna.rb
  115. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Vilnius.rb
  116. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Warsaw.rb
  117. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Europe/Zagreb.rb
  118. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Auckland.rb
  119. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Fiji.rb
  120. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Guam.rb
  121. 0  ...support/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Honolulu.rb
  122. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Majuro.rb
  123. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Midway.rb
  124. 0  ...vesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Noumea.rb
  125. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Pago_Pago.rb
  126. 0  ...ort/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Port_Moresby.rb
  127. 0  ...upport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/definitions/Pacific/Tongatapu.rb
  128. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/info_timezone.rb
  129. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/linked_timezone.rb
  130. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/linked_timezone_info.rb
  131. +95 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/offset_rationals.rb
  132. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/time_or_datetime.rb
  133. +6 −6 activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/timezone.rb
  134. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/timezone_definition.rb
  135. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/timezone_info.rb
  136. +4 −4 activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/timezone_offset_info.rb
  137. 0  activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/timezone_period.rb
  138. +2 −2 activesupport/lib/active_support/vendor/{tzinfo-0.3.8 → tzinfo-0.3.9}/tzinfo/timezone_transition_info.rb
2  activesupport/Rakefile
View
@@ -119,7 +119,7 @@ namespace :tzinfo do
task :copy_definitions => :unpack_gem do
definitions_path = "#{destination_path}/tzinfo/definitions/"
mkdir_p definitions_path
- TimeZone::MAPPING.values.each do |zone|
+ ActiveSupport::TimeZone::MAPPING.values.each do |zone|
subdir = nil
if /\// === zone
subdir = zone.sub(/\w+$/, '')
4 activesupport/lib/active_support/vendor.rb
View
@@ -20,7 +20,7 @@
end
begin
- gem 'tzinfo', '~> 0.3.8'
+ gem 'tzinfo', '~> 0.3.9'
rescue Gem::LoadError
- $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.8"
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.9"
end
95 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/offset_rationals.rb
View
@@ -1,95 +0,0 @@
-#--
-# Copyright (c) 2006 Philip Ross
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in all
-# copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-#++
-
-module TZInfo
-
- # Provides a method for getting Rationals for a timezone offset in seconds.
- # Pre-reduced rationals are returned for all the half-hour intervals between
- # -14 and +14 hours to avoid having to call gcd at runtime.
- module OffsetRationals #:nodoc:
- @@rational_cache = {
- -50400 => Rational(-7,12),
- -48600 => Rational(-9,16),
- -46800 => Rational(-13,24),
- -45000 => Rational(-25,48),
- -43200 => Rational(-1,2),
- -41400 => Rational(-23,48),
- -39600 => Rational(-11,24),
- -37800 => Rational(-7,16),
- -36000 => Rational(-5,12),
- -34200 => Rational(-19,48),
- -32400 => Rational(-3,8),
- -30600 => Rational(-17,48),
- -28800 => Rational(-1,3),
- -27000 => Rational(-5,16),
- -25200 => Rational(-7,24),
- -23400 => Rational(-13,48),
- -21600 => Rational(-1,4),
- -19800 => Rational(-11,48),
- -18000 => Rational(-5,24),
- -16200 => Rational(-3,16),
- -14400 => Rational(-1,6),
- -12600 => Rational(-7,48),
- -10800 => Rational(-1,8),
- -9000 => Rational(-5,48),
- -7200 => Rational(-1,12),
- -5400 => Rational(-1,16),
- -3600 => Rational(-1,24),
- -1800 => Rational(-1,48),
- 0 => Rational(0,1),
- 1800 => Rational(1,48),
- 3600 => Rational(1,24),
- 5400 => Rational(1,16),
- 7200 => Rational(1,12),
- 9000 => Rational(5,48),
- 10800 => Rational(1,8),
- 12600 => Rational(7,48),
- 14400 => Rational(1,6),
- 16200 => Rational(3,16),
- 18000 => Rational(5,24),
- 19800 => Rational(11,48),
- 21600 => Rational(1,4),
- 23400 => Rational(13,48),
- 25200 => Rational(7,24),
- 27000 => Rational(5,16),
- 28800 => Rational(1,3),
- 30600 => Rational(17,48),
- 32400 => Rational(3,8),
- 34200 => Rational(19,48),
- 36000 => Rational(5,12),
- 37800 => Rational(7,16),
- 39600 => Rational(11,24),
- 41400 => Rational(23,48),
- 43200 => Rational(1,2),
- 45000 => Rational(25,48),
- 46800 => Rational(13,24),
- 48600 => Rational(9,16),
- 50400 => Rational(7,12)}
-
- # Returns a Rational expressing the fraction of a day that offset in
- # seconds represents (i.e. equivalent to Rational(offset, 86400)).
- def rational_for_offset(offset)
- @@rational_cache[offset] || Rational(offset, 86400)
- end
- module_function :rational_for_offset
- end
-end
0  .../lib/active_support/vendor/tzinfo-0.3.8/tzinfo.rb → .../lib/active_support/vendor/tzinfo-0.3.9/tzinfo.rb
View
File renamed without changes
0  ...pport/vendor/tzinfo-0.3.8/tzinfo/data_timezone.rb → ...pport/vendor/tzinfo-0.3.9/tzinfo/data_timezone.rb
View
File renamed without changes
2  .../vendor/tzinfo-0.3.8/tzinfo/data_timezone_info.rb → .../vendor/tzinfo-0.3.9/tzinfo/data_timezone_info.rb
View
@@ -40,6 +40,8 @@ def initialize(identifier)
super(identifier)
@offsets = {}
@transitions = []
+ @previous_offset = nil
+ @transitions_index = nil
end
# Defines a offset. The id uniquely identifies this offset within the
0  ...tzinfo-0.3.8/tzinfo/definitions/Africa/Algiers.rb → ...tzinfo-0.3.9/tzinfo/definitions/Africa/Algiers.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Africa/Cairo.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Africa/Cairo.rb
View
File renamed without changes
2  ...nfo-0.3.8/tzinfo/definitions/Africa/Casablanca.rb → ...nfo-0.3.9/tzinfo/definitions/Africa/Casablanca.rb
View
@@ -31,6 +31,8 @@ module Casablanca
tz.transition 1978, 8, :o1, 271033200
tz.transition 1984, 3, :o3, 448243200
tz.transition 1985, 12, :o1, 504918000
+ tz.transition 2008, 6, :o2, 1212278400
+ tz.transition 2008, 9, :o1, 1222556400
end
end
end
0  .../tzinfo-0.3.8/tzinfo/definitions/Africa/Harare.rb → .../tzinfo-0.3.9/tzinfo/definitions/Africa/Harare.rb
View
File renamed without changes
0  ...o-0.3.8/tzinfo/definitions/Africa/Johannesburg.rb → ...o-0.3.9/tzinfo/definitions/Africa/Johannesburg.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Africa/Monrovia.rb → ...zinfo-0.3.9/tzinfo/definitions/Africa/Monrovia.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Africa/Nairobi.rb → ...tzinfo-0.3.9/tzinfo/definitions/Africa/Nairobi.rb
View
File renamed without changes
0  ...nfo/definitions/America/Argentina/Buenos_Aires.rb → ...nfo/definitions/America/Argentina/Buenos_Aires.rb
View
File renamed without changes
0  .../tzinfo/definitions/America/Argentina/San_Juan.rb → .../tzinfo/definitions/America/Argentina/San_Juan.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/America/Bogota.rb → ...tzinfo-0.3.9/tzinfo/definitions/America/Bogota.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/America/Caracas.rb → ...zinfo-0.3.9/tzinfo/definitions/America/Caracas.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/America/Chicago.rb → ...zinfo-0.3.9/tzinfo/definitions/America/Chicago.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/America/Chihuahua.rb → ...nfo-0.3.9/tzinfo/definitions/America/Chihuahua.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/America/Denver.rb → ...tzinfo-0.3.9/tzinfo/definitions/America/Denver.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/America/Godthab.rb → ...zinfo-0.3.9/tzinfo/definitions/America/Godthab.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/America/Guatemala.rb → ...nfo-0.3.9/tzinfo/definitions/America/Guatemala.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/America/Halifax.rb → ...zinfo-0.3.9/tzinfo/definitions/America/Halifax.rb
View
File renamed without changes
0  ...zinfo/definitions/America/Indiana/Indianapolis.rb → ...zinfo/definitions/America/Indiana/Indianapolis.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/America/Juneau.rb → ...tzinfo-0.3.9/tzinfo/definitions/America/Juneau.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/America/La_Paz.rb → ...tzinfo-0.3.9/tzinfo/definitions/America/La_Paz.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/America/Lima.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/America/Lima.rb
View
File renamed without changes
0  ...o-0.3.8/tzinfo/definitions/America/Los_Angeles.rb → ...o-0.3.9/tzinfo/definitions/America/Los_Angeles.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/America/Mazatlan.rb → ...info-0.3.9/tzinfo/definitions/America/Mazatlan.rb
View
File renamed without changes
0  ...o-0.3.8/tzinfo/definitions/America/Mexico_City.rb → ...o-0.3.9/tzinfo/definitions/America/Mexico_City.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/America/Monterrey.rb → ...nfo-0.3.9/tzinfo/definitions/America/Monterrey.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/America/New_York.rb → ...info-0.3.9/tzinfo/definitions/America/New_York.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/America/Phoenix.rb → ...zinfo-0.3.9/tzinfo/definitions/America/Phoenix.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/America/Regina.rb → ...tzinfo-0.3.9/tzinfo/definitions/America/Regina.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/America/Santiago.rb → ...info-0.3.9/tzinfo/definitions/America/Santiago.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/America/St_Johns.rb → ...info-0.3.9/tzinfo/definitions/America/St_Johns.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/America/Tijuana.rb → ...zinfo-0.3.9/tzinfo/definitions/America/Tijuana.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Asia/Almaty.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Asia/Almaty.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Baghdad.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Baghdad.rb
View
File renamed without changes
0  ...ndor/tzinfo-0.3.8/tzinfo/definitions/Asia/Baku.rb → ...ndor/tzinfo-0.3.9/tzinfo/definitions/Asia/Baku.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Bangkok.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Bangkok.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Asia/Chongqing.rb → ...tzinfo-0.3.9/tzinfo/definitions/Asia/Chongqing.rb
View
File renamed without changes
0  ...dor/tzinfo-0.3.8/tzinfo/definitions/Asia/Dhaka.rb → ...dor/tzinfo-0.3.9/tzinfo/definitions/Asia/Dhaka.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Asia/Hong_Kong.rb → ...tzinfo-0.3.9/tzinfo/definitions/Asia/Hong_Kong.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Irkutsk.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Irkutsk.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Jakarta.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Jakarta.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Asia/Jerusalem.rb → ...tzinfo-0.3.9/tzinfo/definitions/Asia/Jerusalem.rb
View
File renamed without changes
0  ...dor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kabul.rb → ...dor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kabul.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Asia/Kamchatka.rb → ...tzinfo-0.3.9/tzinfo/definitions/Asia/Kamchatka.rb
View
File renamed without changes
2  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Karachi.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Karachi.rb
View
@@ -21,6 +21,8 @@ module Karachi
tz.transition 1971, 3, :o4, 38775600
tz.transition 2002, 4, :o5, 1018119660
tz.transition 2002, 10, :o4, 1033840860
+ tz.transition 2008, 5, :o5, 1212260400
+ tz.transition 2008, 8, :o4, 1220205600
end
end
end
0  .../tzinfo-0.3.8/tzinfo/definitions/Asia/Katmandu.rb → .../tzinfo-0.3.9/tzinfo/definitions/Asia/Katmandu.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Kolkata.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Kolkata.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Asia/Krasnoyarsk.rb → ...info-0.3.9/tzinfo/definitions/Asia/Krasnoyarsk.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/Asia/Kuala_Lumpur.rb → ...nfo-0.3.9/tzinfo/definitions/Asia/Kuala_Lumpur.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Asia/Kuwait.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Asia/Kuwait.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Magadan.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Magadan.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Asia/Muscat.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Asia/Muscat.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Asia/Novosibirsk.rb → ...info-0.3.9/tzinfo/definitions/Asia/Novosibirsk.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Rangoon.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Rangoon.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Asia/Riyadh.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Asia/Riyadh.rb
View
File renamed without changes
0  ...dor/tzinfo-0.3.8/tzinfo/definitions/Asia/Seoul.rb → ...dor/tzinfo-0.3.9/tzinfo/definitions/Asia/Seoul.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Asia/Shanghai.rb → .../tzinfo-0.3.9/tzinfo/definitions/Asia/Shanghai.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Asia/Singapore.rb → ...tzinfo-0.3.9/tzinfo/definitions/Asia/Singapore.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Asia/Taipei.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Asia/Taipei.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Asia/Tashkent.rb → .../tzinfo-0.3.9/tzinfo/definitions/Asia/Tashkent.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Tbilisi.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Tbilisi.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Asia/Tehran.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Asia/Tehran.rb
View
File renamed without changes
0  ...dor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tokyo.rb → ...dor/tzinfo-0.3.9/tzinfo/definitions/Asia/Tokyo.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Asia/Ulaanbaatar.rb → ...info-0.3.9/tzinfo/definitions/Asia/Ulaanbaatar.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Asia/Urumqi.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Asia/Urumqi.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Asia/Vladivostok.rb → ...info-0.3.9/tzinfo/definitions/Asia/Vladivostok.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Yakutsk.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Yakutsk.rb
View
File renamed without changes
0  ...fo-0.3.8/tzinfo/definitions/Asia/Yekaterinburg.rb → ...fo-0.3.9/tzinfo/definitions/Asia/Yekaterinburg.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Asia/Yerevan.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Asia/Yerevan.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Atlantic/Azores.rb → ...zinfo-0.3.9/tzinfo/definitions/Atlantic/Azores.rb
View
File renamed without changes
0  ...o-0.3.8/tzinfo/definitions/Atlantic/Cape_Verde.rb → ...o-0.3.9/tzinfo/definitions/Atlantic/Cape_Verde.rb
View
File renamed without changes
0  ....3.8/tzinfo/definitions/Atlantic/South_Georgia.rb → ....3.9/tzinfo/definitions/Atlantic/South_Georgia.rb
View
File renamed without changes
0  ...fo-0.3.8/tzinfo/definitions/Australia/Adelaide.rb → ...fo-0.3.9/tzinfo/definitions/Australia/Adelaide.rb
View
File renamed without changes
0  ...fo-0.3.8/tzinfo/definitions/Australia/Brisbane.rb → ...fo-0.3.9/tzinfo/definitions/Australia/Brisbane.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Australia/Darwin.rb → ...info-0.3.9/tzinfo/definitions/Australia/Darwin.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Australia/Hobart.rb → ...info-0.3.9/tzinfo/definitions/Australia/Hobart.rb
View
File renamed without changes
0  ...o-0.3.8/tzinfo/definitions/Australia/Melbourne.rb → ...o-0.3.9/tzinfo/definitions/Australia/Melbourne.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Australia/Perth.rb → ...zinfo-0.3.9/tzinfo/definitions/Australia/Perth.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Australia/Sydney.rb → ...info-0.3.9/tzinfo/definitions/Australia/Sydney.rb
View
File renamed without changes
0  ...vendor/tzinfo-0.3.8/tzinfo/definitions/Etc/UTC.rb → ...vendor/tzinfo-0.3.9/tzinfo/definitions/Etc/UTC.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Europe/Amsterdam.rb → ...info-0.3.9/tzinfo/definitions/Europe/Amsterdam.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Athens.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Athens.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Europe/Belgrade.rb → ...zinfo-0.3.9/tzinfo/definitions/Europe/Belgrade.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Berlin.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Berlin.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/Europe/Bratislava.rb → ...nfo-0.3.9/tzinfo/definitions/Europe/Bratislava.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Europe/Brussels.rb → ...zinfo-0.3.9/tzinfo/definitions/Europe/Brussels.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Europe/Bucharest.rb → ...info-0.3.9/tzinfo/definitions/Europe/Bucharest.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Europe/Budapest.rb → ...zinfo-0.3.9/tzinfo/definitions/Europe/Budapest.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/Europe/Copenhagen.rb → ...nfo-0.3.9/tzinfo/definitions/Europe/Copenhagen.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Dublin.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Dublin.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Europe/Helsinki.rb → ...zinfo-0.3.9/tzinfo/definitions/Europe/Helsinki.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Europe/Istanbul.rb → ...zinfo-0.3.9/tzinfo/definitions/Europe/Istanbul.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Europe/Kiev.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Europe/Kiev.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Lisbon.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Lisbon.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Europe/Ljubljana.rb → ...info-0.3.9/tzinfo/definitions/Europe/Ljubljana.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/London.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/London.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Madrid.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Madrid.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Europe/Minsk.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Europe/Minsk.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Moscow.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Moscow.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Europe/Paris.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Europe/Paris.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Prague.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Prague.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Europe/Riga.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Europe/Riga.rb
View
File renamed without changes
0  ...or/tzinfo-0.3.8/tzinfo/definitions/Europe/Rome.rb → ...or/tzinfo-0.3.9/tzinfo/definitions/Europe/Rome.rb
View
File renamed without changes
0  ...zinfo-0.3.8/tzinfo/definitions/Europe/Sarajevo.rb → ...zinfo-0.3.9/tzinfo/definitions/Europe/Sarajevo.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Skopje.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Skopje.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Europe/Sofia.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Europe/Sofia.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Europe/Stockholm.rb → ...info-0.3.9/tzinfo/definitions/Europe/Stockholm.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Europe/Tallinn.rb → ...tzinfo-0.3.9/tzinfo/definitions/Europe/Tallinn.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Vienna.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Vienna.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Europe/Vilnius.rb → ...tzinfo-0.3.9/tzinfo/definitions/Europe/Vilnius.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Warsaw.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Warsaw.rb
View
File renamed without changes
0  .../tzinfo-0.3.8/tzinfo/definitions/Europe/Zagreb.rb → .../tzinfo-0.3.9/tzinfo/definitions/Europe/Zagreb.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Pacific/Auckland.rb → ...info-0.3.9/tzinfo/definitions/Pacific/Auckland.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Pacific/Fiji.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Pacific/Fiji.rb
View
File renamed without changes
0  ...r/tzinfo-0.3.8/tzinfo/definitions/Pacific/Guam.rb → ...r/tzinfo-0.3.9/tzinfo/definitions/Pacific/Guam.rb
View
File renamed without changes
0  ...info-0.3.8/tzinfo/definitions/Pacific/Honolulu.rb → ...info-0.3.9/tzinfo/definitions/Pacific/Honolulu.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Pacific/Majuro.rb → ...tzinfo-0.3.9/tzinfo/definitions/Pacific/Majuro.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Pacific/Midway.rb → ...tzinfo-0.3.9/tzinfo/definitions/Pacific/Midway.rb
View
File renamed without changes
0  ...tzinfo-0.3.8/tzinfo/definitions/Pacific/Noumea.rb → ...tzinfo-0.3.9/tzinfo/definitions/Pacific/Noumea.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/Pacific/Pago_Pago.rb → ...nfo-0.3.9/tzinfo/definitions/Pacific/Pago_Pago.rb
View
File renamed without changes
0  ...-0.3.8/tzinfo/definitions/Pacific/Port_Moresby.rb → ...-0.3.9/tzinfo/definitions/Pacific/Port_Moresby.rb
View
File renamed without changes
0  ...nfo-0.3.8/tzinfo/definitions/Pacific/Tongatapu.rb → ...nfo-0.3.9/tzinfo/definitions/Pacific/Tongatapu.rb
View
File renamed without changes
0  ...pport/vendor/tzinfo-0.3.8/tzinfo/info_timezone.rb → ...pport/vendor/tzinfo-0.3.9/tzinfo/info_timezone.rb
View
File renamed without changes
0  ...ort/vendor/tzinfo-0.3.8/tzinfo/linked_timezone.rb → ...ort/vendor/tzinfo-0.3.9/tzinfo/linked_timezone.rb
View
File renamed without changes
0  ...endor/tzinfo-0.3.8/tzinfo/linked_timezone_info.rb → ...endor/tzinfo-0.3.9/tzinfo/linked_timezone_info.rb
View
File renamed without changes
95 activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/offset_rationals.rb
View
@@ -0,0 +1,95 @@
+#--
+# Copyright (c) 2006 Philip Ross
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#++
+
+module TZInfo
+
+ # Provides a method for getting Rationals for a timezone offset in seconds.
+ # Pre-reduced rationals are returned for all the half-hour intervals between
+ # -14 and +14 hours to avoid having to call gcd at runtime.
+ module OffsetRationals #:nodoc:
+ @@rational_cache = {
+ -50400 => Rational.send(:new!, -7,12),
+ -48600 => Rational.send(:new!, -9,16),
+ -46800 => Rational.send(:new!, -13,24),
+ -45000 => Rational.send(:new!, -25,48),
+ -43200 => Rational.send(:new!, -1,2),
+ -41400 => Rational.send(:new!, -23,48),
+ -39600 => Rational.send(:new!, -11,24),
+ -37800 => Rational.send(:new!, -7,16),
+ -36000 => Rational.send(:new!, -5,12),
+ -34200 => Rational.send(:new!, -19,48),
+ -32400 => Rational.send(:new!, -3,8),
+ -30600 => Rational.send(:new!, -17,48),
+ -28800 => Rational.send(:new!, -1,3),
+ -27000 => Rational.send(:new!, -5,16),
+ -25200 => Rational.send(:new!, -7,24),
+ -23400 => Rational.send(:new!, -13,48),
+ -21600 => Rational.send(:new!, -1,4),
+ -19800 => Rational.send(:new!, -11,48),
+ -18000 => Rational.send(:new!, -5,24),
+ -16200 => Rational.send(:new!, -3,16),
+ -14400 => Rational.send(:new!, -1,6),
+ -12600 => Rational.send(:new!, -7,48),
+ -10800 => Rational.send(:new!, -1,8),
+ -9000 => Rational.send(:new!, -5,48),
+ -7200 => Rational.send(:new!, -1,12),
+ -5400 => Rational.send(:new!, -1,16),
+ -3600 => Rational.send(:new!, -1,24),
+ -1800 => Rational.send(:new!, -1,48),
+ 0 => Rational.send(:new!, 0,1),
+ 1800 => Rational.send(:new!, 1,48),
+ 3600 => Rational.send(:new!, 1,24),
+ 5400 => Rational.send(:new!, 1,16),
+ 7200 => Rational.send(:new!, 1,12),
+ 9000 => Rational.send(:new!, 5,48),
+ 10800 => Rational.send(:new!, 1,8),
+ 12600 => Rational.send(:new!, 7,48),
+ 14400 => Rational.send(:new!, 1,6),
+ 16200 => Rational.send(:new!, 3,16),
+ 18000 => Rational.send(:new!, 5,24),
+ 19800 => Rational.send(:new!, 11,48),
+ 21600 => Rational.send(:new!, 1,4),
+ 23400 => Rational.send(:new!, 13,48),
+ 25200 => Rational.send(:new!, 7,24),
+ 27000 => Rational.send(:new!, 5,16),
+ 28800 => Rational.send(:new!, 1,3),
+ 30600 => Rational.send(:new!, 17,48),
+ 32400 => Rational.send(:new!, 3,8),
+ 34200 => Rational.send(:new!, 19,48),
+ 36000 => Rational.send(:new!, 5,12),
+ 37800 => Rational.send(:new!, 7,16),
+ 39600 => Rational.send(:new!, 11,24),
+ 41400 => Rational.send(:new!, 23,48),
+ 43200 => Rational.send(:new!, 1,2),
+ 45000 => Rational.send(:new!, 25,48),
+ 46800 => Rational.send(:new!, 13,24),
+ 48600 => Rational.send(:new!, 9,16),
+ 50400 => Rational.send(:new!, 7,12)}
+
+ # Returns a Rational expressing the fraction of a day that offset in
+ # seconds represents (i.e. equivalent to Rational(offset, 86400)).
+ def rational_for_offset(offset)
+ @@rational_cache[offset] || Rational(offset, 86400)
+ end
+ module_function :rational_for_offset
+ end
+end
0  ...rt/vendor/tzinfo-0.3.8/tzinfo/time_or_datetime.rb → ...rt/vendor/tzinfo-0.3.9/tzinfo/time_or_datetime.rb
View
File renamed without changes
12 ...ve_support/vendor/tzinfo-0.3.8/tzinfo/timezone.rb → ...ve_support/vendor/tzinfo-0.3.9/tzinfo/timezone.rb
View
@@ -371,8 +371,8 @@ def period_for_local(local, dst = nil)
# type as utc. Any timezone information in utc is ignored (it is treated as
# a UTC time).
def utc_to_local(utc)
- TimeOrDateTime.wrap(utc) {|utc|
- period_for_utc(utc).to_local(utc)
+ TimeOrDateTime.wrap(utc) {|wrapped|
+ period_for_utc(wrapped).to_local(wrapped)
}
end
@@ -410,14 +410,14 @@ def utc_to_local(utc)
# single period to use to convert the time or return nil or an empty array
# to cause an AmbiguousTime exception to be raised.
def local_to_utc(local, dst = nil)
- TimeOrDateTime.wrap(local) {|local|
+ TimeOrDateTime.wrap(local) {|wrapped|
if block_given?
- period = period_for_local(local, dst) {|periods| yield periods }
+ period = period_for_local(wrapped, dst) {|periods| yield periods }
else
- period = period_for_local(local, dst)
+ period = period_for_local(wrapped, dst)
end
- period.to_utc(local)
+ period.to_utc(wrapped)
}
end
0  ...vendor/tzinfo-0.3.8/tzinfo/timezone_definition.rb → ...vendor/tzinfo-0.3.9/tzinfo/timezone_definition.rb
View
File renamed without changes
0  ...pport/vendor/tzinfo-0.3.8/tzinfo/timezone_info.rb → ...pport/vendor/tzinfo-0.3.9/tzinfo/timezone_info.rb
View
File renamed without changes
8 ...endor/tzinfo-0.3.8/tzinfo/timezone_offset_info.rb → ...endor/tzinfo-0.3.9/tzinfo/timezone_offset_info.rb
View
@@ -56,15 +56,15 @@ def dst?
# Converts a UTC DateTime to local time based on the offset of this period.
def to_local(utc)
- TimeOrDateTime.wrap(utc) {|utc|
- utc + @utc_total_offset
+ TimeOrDateTime.wrap(utc) {|wrapped|
+ wrapped + @utc_total_offset
}
end
# Converts a local DateTime to UTC based on the offset of this period.
def to_utc(local)
- TimeOrDateTime.wrap(local) {|local|
- local - @utc_total_offset
+ TimeOrDateTime.wrap(local) {|wrapped|
+ wrapped - @utc_total_offset
}
end
0  ...ort/vendor/tzinfo-0.3.8/tzinfo/timezone_period.rb → ...ort/vendor/tzinfo-0.3.9/tzinfo/timezone_period.rb
View
File renamed without changes
4 ...r/tzinfo-0.3.8/tzinfo/timezone_transition_info.rb → ...r/tzinfo-0.3.9/tzinfo/timezone_transition_info.rb
View
@@ -48,7 +48,7 @@ class TimezoneTransitionInfo #:nodoc:
# seconds since the epoch. If denominator is specified numerator_or_time
# and denominator are used to create a DateTime as follows:
#
- # DateTime.new!(Rational.new!(numerator_or_time, denominator), 0, Date::ITALY)
+ # DateTime.new!(Rational.send(:new!, numerator_or_time, denominator), 0, Date::ITALY)
#
# For performance reasons, the numerator and denominator must be specified
# in their lowest form.
@@ -70,7 +70,7 @@ def at
unless @denominator
@at = TimeOrDateTime.new(@numerator_or_time)
else
- r = Rational.new!(@numerator_or_time, @denominator)
+ r = Rational.send(:new!, @numerator_or_time, @denominator)
# Ruby 1.8.6 introduced new! and deprecated new0.
# Ruby 1.9.0 removed new0.
Please sign in to comment.
Something went wrong with that request. Please try again.