activesupport 2.1.1 → 2.1.2

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

Potentially problematic release.


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

Files changed (149) hide show
  1. data/CHANGELOG +5 -0
  2. data/lib/active_support/core_ext/hash/except.rb +1 -1
  3. data/lib/active_support/core_ext/hash/slice.rb +1 -1
  4. data/lib/active_support/core_ext/object/extending.rb +8 -9
  5. data/lib/active_support/core_ext/rexml.rb +3 -2
  6. data/lib/active_support/deprecation.rb +1 -1
  7. data/lib/active_support/time_with_zone.rb +3 -3
  8. data/lib/active_support/values/time_zone.rb +1 -1
  9. data/lib/active_support/vendor.rb +2 -2
  10. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo.rb +0 -0
  11. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/data_timezone.rb +0 -0
  12. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/data_timezone_info.rb +0 -0
  13. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Algiers.rb +0 -0
  14. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Cairo.rb +0 -0
  15. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Casablanca.rb +1 -1
  16. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Harare.rb +0 -0
  17. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Johannesburg.rb +0 -0
  18. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Monrovia.rb +0 -0
  19. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Africa/Nairobi.rb +0 -0
  20. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +42 -42
  21. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Argentina/San_Juan.rb +42 -42
  22. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Bogota.rb +0 -0
  23. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Caracas.rb +0 -0
  24. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Chicago.rb +0 -0
  25. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Chihuahua.rb +0 -0
  26. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Denver.rb +0 -0
  27. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Godthab.rb +0 -0
  28. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Guatemala.rb +0 -0
  29. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Halifax.rb +0 -0
  30. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Indiana/Indianapolis.rb +0 -0
  31. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Juneau.rb +0 -0
  32. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/La_Paz.rb +0 -0
  33. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Lima.rb +0 -0
  34. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Los_Angeles.rb +0 -0
  35. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Mazatlan.rb +0 -0
  36. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Mexico_City.rb +0 -0
  37. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Monterrey.rb +0 -0
  38. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/New_York.rb +0 -0
  39. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Phoenix.rb +0 -0
  40. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Regina.rb +0 -0
  41. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Santiago.rb +0 -0
  42. data/lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
  43. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/St_Johns.rb +0 -0
  44. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/America/Tijuana.rb +0 -0
  45. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Almaty.rb +0 -0
  46. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Baghdad.rb +0 -0
  47. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Baku.rb +0 -0
  48. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Bangkok.rb +0 -0
  49. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Chongqing.rb +0 -0
  50. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Dhaka.rb +0 -0
  51. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Hong_Kong.rb +0 -0
  52. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Irkutsk.rb +0 -0
  53. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Jakarta.rb +0 -0
  54. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Jerusalem.rb +0 -0
  55. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kabul.rb +0 -0
  56. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kamchatka.rb +0 -0
  57. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Karachi.rb +1 -1
  58. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Katmandu.rb +0 -0
  59. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kolkata.rb +0 -0
  60. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Krasnoyarsk.rb +0 -0
  61. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kuala_Lumpur.rb +0 -0
  62. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Kuwait.rb +0 -0
  63. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Magadan.rb +0 -0
  64. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Muscat.rb +0 -0
  65. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Novosibirsk.rb +0 -0
  66. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Rangoon.rb +0 -0
  67. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Riyadh.rb +0 -0
  68. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Seoul.rb +0 -0
  69. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Shanghai.rb +0 -0
  70. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Singapore.rb +0 -0
  71. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Taipei.rb +0 -0
  72. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tashkent.rb +0 -0
  73. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tbilisi.rb +0 -0
  74. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tehran.rb +0 -0
  75. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Tokyo.rb +0 -0
  76. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Ulaanbaatar.rb +0 -0
  77. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Urumqi.rb +0 -0
  78. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Vladivostok.rb +0 -0
  79. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Yakutsk.rb +0 -0
  80. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Yekaterinburg.rb +0 -0
  81. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Asia/Yerevan.rb +0 -0
  82. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Atlantic/Azores.rb +0 -0
  83. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Atlantic/Cape_Verde.rb +0 -0
  84. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Atlantic/South_Georgia.rb +0 -0
  85. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Adelaide.rb +0 -0
  86. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Brisbane.rb +0 -0
  87. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Darwin.rb +0 -0
  88. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Hobart.rb +0 -0
  89. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Melbourne.rb +0 -0
  90. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Perth.rb +0 -0
  91. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Australia/Sydney.rb +0 -0
  92. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Etc/UTC.rb +0 -0
  93. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Amsterdam.rb +0 -0
  94. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Athens.rb +0 -0
  95. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Belgrade.rb +0 -0
  96. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Berlin.rb +1 -1
  97. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Bratislava.rb +0 -0
  98. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Brussels.rb +0 -0
  99. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Bucharest.rb +0 -0
  100. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Budapest.rb +0 -0
  101. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Copenhagen.rb +0 -0
  102. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Dublin.rb +0 -0
  103. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Helsinki.rb +0 -0
  104. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Istanbul.rb +0 -0
  105. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Kiev.rb +0 -0
  106. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Lisbon.rb +0 -0
  107. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Ljubljana.rb +0 -0
  108. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/London.rb +0 -0
  109. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Madrid.rb +0 -0
  110. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Minsk.rb +0 -0
  111. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Moscow.rb +0 -0
  112. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Paris.rb +0 -0
  113. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Prague.rb +0 -0
  114. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Riga.rb +0 -0
  115. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Rome.rb +0 -0
  116. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Sarajevo.rb +0 -0
  117. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Skopje.rb +0 -0
  118. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Sofia.rb +0 -0
  119. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Stockholm.rb +0 -0
  120. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Tallinn.rb +0 -0
  121. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Vienna.rb +0 -0
  122. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Vilnius.rb +0 -0
  123. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Warsaw.rb +0 -0
  124. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Europe/Zagreb.rb +0 -0
  125. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Auckland.rb +0 -0
  126. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Fiji.rb +0 -0
  127. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Guam.rb +0 -0
  128. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Honolulu.rb +0 -0
  129. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Majuro.rb +0 -0
  130. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Midway.rb +0 -0
  131. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Noumea.rb +0 -0
  132. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Pago_Pago.rb +0 -0
  133. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Port_Moresby.rb +0 -0
  134. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/definitions/Pacific/Tongatapu.rb +0 -0
  135. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/info_timezone.rb +0 -0
  136. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/linked_timezone.rb +0 -0
  137. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/linked_timezone_info.rb +0 -0
  138. data/lib/active_support/vendor/tzinfo-0.3.11/tzinfo/offset_rationals.rb +98 -0
  139. data/lib/active_support/vendor/tzinfo-0.3.11/tzinfo/ruby_core_support.rb +56 -0
  140. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/time_or_datetime.rb +0 -0
  141. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone.rb +0 -0
  142. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_definition.rb +0 -0
  143. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_info.rb +0 -0
  144. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_offset_info.rb +0 -0
  145. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_period.rb +0 -0
  146. data/lib/active_support/vendor/{tzinfo-0.3.9 → tzinfo-0.3.11}/tzinfo/timezone_transition_info.rb +2 -11
  147. data/lib/active_support/version.rb +1 -1
  148. metadata +153 -151
  149. data/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/offset_rationals.rb +0 -95
@@ -0,0 +1,56 @@
1
+ #--
2
+ # Copyright (c) 2008 Philip Ross
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
21
+ #++
22
+
23
+ require 'date'
24
+ require 'rational'
25
+
26
+ module TZInfo
27
+
28
+ # Methods to support different versions of Ruby.
29
+ module RubyCoreSupport #:nodoc:
30
+
31
+ # Use Rational.new! for performance reasons in Ruby 1.8.
32
+ # This has been removed from 1.9, but Rational performs better.
33
+ if Rational.respond_to? :new!
34
+ def self.rational_new!(numerator, denominator = 1)
35
+ Rational.new!(numerator, denominator)
36
+ end
37
+ else
38
+ def self.rational_new!(numerator, denominator = 1)
39
+ Rational(numerator, denominator)
40
+ end
41
+ end
42
+
43
+ # Ruby 1.8.6 introduced new! and deprecated new0.
44
+ # Ruby 1.9.0 removed new0.
45
+ # We still need to support new0 for older versions of Ruby.
46
+ if DateTime.respond_to? :new!
47
+ def self.datetime_new!(ajd = 0, of = 0, sg = Date::ITALY)
48
+ DateTime.new!(ajd, of, sg)
49
+ end
50
+ else
51
+ def self.datetime_new!(ajd = 0, of = 0, sg = Date::ITALY)
52
+ DateTime.new0(ajd, of, sg)
53
+ end
54
+ end
55
+ end
56
+ end
@@ -70,17 +70,8 @@ module TZInfo
70
70
  unless @denominator
71
71
  @at = TimeOrDateTime.new(@numerator_or_time)
72
72
  else
73
- r = Rational.send(:new!, @numerator_or_time, @denominator)
74
-
75
- # Ruby 1.8.6 introduced new! and deprecated new0.
76
- # Ruby 1.9.0 removed new0.
77
- # We still need to support new0 for older versions of Ruby.
78
- if DateTime.respond_to? :new!
79
- dt = DateTime.new!(r, 0, Date::ITALY)
80
- else
81
- dt = DateTime.new0(r, 0, Date::ITALY)
82
- end
83
-
73
+ r = RubyCoreSupport.rational_new!(@numerator_or_time, @denominator)
74
+ dt = RubyCoreSupport.datetime_new!(r, 0, Date::ITALY)
84
75
  @at = TimeOrDateTime.new(dt)
85
76
  end
86
77
  end
@@ -2,7 +2,7 @@ module ActiveSupport
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-04 00:00:00 +02:00
12
+ date: 2008-10-23 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -218,154 +218,156 @@ files:
218
218
  - lib/active_support/vendor/builder-2.1.2/builder.rb
219
219
  - lib/active_support/vendor/memcache-client-1.5.0
220
220
  - lib/active_support/vendor/memcache-client-1.5.0/memcache.rb
221
- - lib/active_support/vendor/tzinfo-0.3.9
222
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo
223
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/data_timezone.rb
224
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/data_timezone_info.rb
225
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions
226
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa
227
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Algiers.rb
228
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Cairo.rb
229
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Casablanca.rb
230
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Harare.rb
231
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Johannesburg.rb
232
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Monrovia.rb
233
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Africa/Nairobi.rb
234
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America
235
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Argentina
236
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Argentina/Buenos_Aires.rb
237
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Argentina/San_Juan.rb
238
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Bogota.rb
239
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Caracas.rb
240
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Chicago.rb
241
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Chihuahua.rb
242
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Denver.rb
243
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Godthab.rb
244
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Guatemala.rb
245
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Halifax.rb
246
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Indiana
247
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Indiana/Indianapolis.rb
248
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Juneau.rb
249
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/La_Paz.rb
250
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Lima.rb
251
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Los_Angeles.rb
252
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Mazatlan.rb
253
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Mexico_City.rb
254
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Monterrey.rb
255
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/New_York.rb
256
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Phoenix.rb
257
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Regina.rb
258
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Santiago.rb
259
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/St_Johns.rb
260
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/America/Tijuana.rb
261
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia
262
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Almaty.rb
263
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Baghdad.rb
264
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Baku.rb
265
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Bangkok.rb
266
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Chongqing.rb
267
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Dhaka.rb
268
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Hong_Kong.rb
269
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Irkutsk.rb
270
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Jakarta.rb
271
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Jerusalem.rb
272
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kabul.rb
273
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kamchatka.rb
274
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Karachi.rb
275
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Katmandu.rb
276
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kolkata.rb
277
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Krasnoyarsk.rb
278
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kuala_Lumpur.rb
279
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Kuwait.rb
280
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Magadan.rb
281
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Muscat.rb
282
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Novosibirsk.rb
283
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Rangoon.rb
284
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Riyadh.rb
285
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Seoul.rb
286
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Shanghai.rb
287
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Singapore.rb
288
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Taipei.rb
289
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Tashkent.rb
290
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Tbilisi.rb
291
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Tehran.rb
292
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Tokyo.rb
293
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Ulaanbaatar.rb
294
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Urumqi.rb
295
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Vladivostok.rb
296
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Yakutsk.rb
297
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Yekaterinburg.rb
298
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Asia/Yerevan.rb
299
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Atlantic
300
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Atlantic/Azores.rb
301
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Atlantic/Cape_Verde.rb
302
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Atlantic/South_Georgia.rb
303
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia
304
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia/Adelaide.rb
305
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia/Brisbane.rb
306
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia/Darwin.rb
307
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia/Hobart.rb
308
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia/Melbourne.rb
309
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia/Perth.rb
310
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Australia/Sydney.rb
311
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Etc
312
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Etc/UTC.rb
313
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe
314
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Amsterdam.rb
315
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Athens.rb
316
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Belgrade.rb
317
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Berlin.rb
318
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Bratislava.rb
319
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Brussels.rb
320
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Bucharest.rb
321
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Budapest.rb
322
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Copenhagen.rb
323
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Dublin.rb
324
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Helsinki.rb
325
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Istanbul.rb
326
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Kiev.rb
327
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Lisbon.rb
328
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Ljubljana.rb
329
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/London.rb
330
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Madrid.rb
331
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Minsk.rb
332
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Moscow.rb
333
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Paris.rb
334
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Prague.rb
335
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Riga.rb
336
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Rome.rb
337
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Sarajevo.rb
338
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Skopje.rb
339
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Sofia.rb
340
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Stockholm.rb
341
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Tallinn.rb
342
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Vienna.rb
343
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Vilnius.rb
344
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Warsaw.rb
345
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Zagreb.rb
346
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific
347
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Auckland.rb
348
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Fiji.rb
349
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Guam.rb
350
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Honolulu.rb
351
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Majuro.rb
352
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Midway.rb
353
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Noumea.rb
354
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Pago_Pago.rb
355
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Port_Moresby.rb
356
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Pacific/Tongatapu.rb
357
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/info_timezone.rb
358
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/linked_timezone.rb
359
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/linked_timezone_info.rb
360
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/offset_rationals.rb
361
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/time_or_datetime.rb
362
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/timezone.rb
363
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/timezone_definition.rb
364
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/timezone_info.rb
365
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/timezone_offset_info.rb
366
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/timezone_period.rb
367
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo/timezone_transition_info.rb
368
- - lib/active_support/vendor/tzinfo-0.3.9/tzinfo.rb
221
+ - lib/active_support/vendor/tzinfo-0.3.11
222
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo
223
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/data_timezone.rb
224
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/data_timezone_info.rb
225
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions
226
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa
227
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa/Algiers.rb
228
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa/Cairo.rb
229
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa/Casablanca.rb
230
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa/Harare.rb
231
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa/Johannesburg.rb
232
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa/Monrovia.rb
233
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Africa/Nairobi.rb
234
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America
235
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Argentina
236
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Argentina/Buenos_Aires.rb
237
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Argentina/San_Juan.rb
238
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Bogota.rb
239
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Caracas.rb
240
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Chicago.rb
241
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Chihuahua.rb
242
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Denver.rb
243
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Godthab.rb
244
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Guatemala.rb
245
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Halifax.rb
246
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Indiana
247
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Indiana/Indianapolis.rb
248
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Juneau.rb
249
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/La_Paz.rb
250
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Lima.rb
251
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Los_Angeles.rb
252
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Mazatlan.rb
253
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Mexico_City.rb
254
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Monterrey.rb
255
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/New_York.rb
256
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Phoenix.rb
257
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Regina.rb
258
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Santiago.rb
259
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Sao_Paulo.rb
260
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/St_Johns.rb
261
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/America/Tijuana.rb
262
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia
263
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Almaty.rb
264
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Baghdad.rb
265
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Baku.rb
266
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Bangkok.rb
267
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Chongqing.rb
268
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Dhaka.rb
269
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Hong_Kong.rb
270
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Irkutsk.rb
271
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Jakarta.rb
272
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Jerusalem.rb
273
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Kabul.rb
274
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Kamchatka.rb
275
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Karachi.rb
276
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Katmandu.rb
277
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Kolkata.rb
278
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Krasnoyarsk.rb
279
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Kuala_Lumpur.rb
280
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Kuwait.rb
281
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Magadan.rb
282
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Muscat.rb
283
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Novosibirsk.rb
284
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Rangoon.rb
285
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Riyadh.rb
286
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Seoul.rb
287
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Shanghai.rb
288
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Singapore.rb
289
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Taipei.rb
290
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Tashkent.rb
291
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Tbilisi.rb
292
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Tehran.rb
293
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Tokyo.rb
294
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Ulaanbaatar.rb
295
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Urumqi.rb
296
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Vladivostok.rb
297
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Yakutsk.rb
298
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Yekaterinburg.rb
299
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Asia/Yerevan.rb
300
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Atlantic
301
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Atlantic/Azores.rb
302
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Atlantic/Cape_Verde.rb
303
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Atlantic/South_Georgia.rb
304
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia
305
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia/Adelaide.rb
306
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia/Brisbane.rb
307
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia/Darwin.rb
308
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia/Hobart.rb
309
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia/Melbourne.rb
310
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia/Perth.rb
311
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Australia/Sydney.rb
312
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Etc
313
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Etc/UTC.rb
314
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe
315
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Amsterdam.rb
316
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Athens.rb
317
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Belgrade.rb
318
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Berlin.rb
319
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Bratislava.rb
320
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Brussels.rb
321
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Bucharest.rb
322
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Budapest.rb
323
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Copenhagen.rb
324
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Dublin.rb
325
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Helsinki.rb
326
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Istanbul.rb
327
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Kiev.rb
328
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Lisbon.rb
329
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Ljubljana.rb
330
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/London.rb
331
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Madrid.rb
332
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Minsk.rb
333
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Moscow.rb
334
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Paris.rb
335
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Prague.rb
336
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Riga.rb
337
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Rome.rb
338
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Sarajevo.rb
339
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Skopje.rb
340
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Sofia.rb
341
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Stockholm.rb
342
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Tallinn.rb
343
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Vienna.rb
344
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Vilnius.rb
345
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Warsaw.rb
346
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Europe/Zagreb.rb
347
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific
348
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Auckland.rb
349
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Fiji.rb
350
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Guam.rb
351
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Honolulu.rb
352
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Majuro.rb
353
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Midway.rb
354
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Noumea.rb
355
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Pago_Pago.rb
356
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Port_Moresby.rb
357
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/definitions/Pacific/Tongatapu.rb
358
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/info_timezone.rb
359
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/linked_timezone.rb
360
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/linked_timezone_info.rb
361
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/offset_rationals.rb
362
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/ruby_core_support.rb
363
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/time_or_datetime.rb
364
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/timezone.rb
365
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/timezone_definition.rb
366
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/timezone_info.rb
367
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/timezone_offset_info.rb
368
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/timezone_period.rb
369
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo/timezone_transition_info.rb
370
+ - lib/active_support/vendor/tzinfo-0.3.11/tzinfo.rb
369
371
  - lib/active_support/vendor/xml-simple-1.0.11
370
372
  - lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb
371
373
  - lib/active_support/vendor.rb
@@ -395,7 +397,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
395
397
  requirements: []
396
398
 
397
399
  rubyforge_project: activesupport
398
- rubygems_version: 1.2.0
400
+ rubygems_version: 1.3.0
399
401
  signing_key:
400
402
  specification_version: 2
401
403
  summary: Support and utility classes used by the Rails framework.
@@ -1,95 +0,0 @@
1
- #--
2
- # Copyright (c) 2006 Philip Ross
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in all
12
- # copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #++
22
-
23
- module TZInfo
24
-
25
- # Provides a method for getting Rationals for a timezone offset in seconds.
26
- # Pre-reduced rationals are returned for all the half-hour intervals between
27
- # -14 and +14 hours to avoid having to call gcd at runtime.
28
- module OffsetRationals #:nodoc:
29
- @@rational_cache = {
30
- -50400 => Rational.send(:new!, -7,12),
31
- -48600 => Rational.send(:new!, -9,16),
32
- -46800 => Rational.send(:new!, -13,24),
33
- -45000 => Rational.send(:new!, -25,48),
34
- -43200 => Rational.send(:new!, -1,2),
35
- -41400 => Rational.send(:new!, -23,48),
36
- -39600 => Rational.send(:new!, -11,24),
37
- -37800 => Rational.send(:new!, -7,16),
38
- -36000 => Rational.send(:new!, -5,12),
39
- -34200 => Rational.send(:new!, -19,48),
40
- -32400 => Rational.send(:new!, -3,8),
41
- -30600 => Rational.send(:new!, -17,48),
42
- -28800 => Rational.send(:new!, -1,3),
43
- -27000 => Rational.send(:new!, -5,16),
44
- -25200 => Rational.send(:new!, -7,24),
45
- -23400 => Rational.send(:new!, -13,48),
46
- -21600 => Rational.send(:new!, -1,4),
47
- -19800 => Rational.send(:new!, -11,48),
48
- -18000 => Rational.send(:new!, -5,24),
49
- -16200 => Rational.send(:new!, -3,16),
50
- -14400 => Rational.send(:new!, -1,6),
51
- -12600 => Rational.send(:new!, -7,48),
52
- -10800 => Rational.send(:new!, -1,8),
53
- -9000 => Rational.send(:new!, -5,48),
54
- -7200 => Rational.send(:new!, -1,12),
55
- -5400 => Rational.send(:new!, -1,16),
56
- -3600 => Rational.send(:new!, -1,24),
57
- -1800 => Rational.send(:new!, -1,48),
58
- 0 => Rational.send(:new!, 0,1),
59
- 1800 => Rational.send(:new!, 1,48),
60
- 3600 => Rational.send(:new!, 1,24),
61
- 5400 => Rational.send(:new!, 1,16),
62
- 7200 => Rational.send(:new!, 1,12),
63
- 9000 => Rational.send(:new!, 5,48),
64
- 10800 => Rational.send(:new!, 1,8),
65
- 12600 => Rational.send(:new!, 7,48),
66
- 14400 => Rational.send(:new!, 1,6),
67
- 16200 => Rational.send(:new!, 3,16),
68
- 18000 => Rational.send(:new!, 5,24),
69
- 19800 => Rational.send(:new!, 11,48),
70
- 21600 => Rational.send(:new!, 1,4),
71
- 23400 => Rational.send(:new!, 13,48),
72
- 25200 => Rational.send(:new!, 7,24),
73
- 27000 => Rational.send(:new!, 5,16),
74
- 28800 => Rational.send(:new!, 1,3),
75
- 30600 => Rational.send(:new!, 17,48),
76
- 32400 => Rational.send(:new!, 3,8),
77
- 34200 => Rational.send(:new!, 19,48),
78
- 36000 => Rational.send(:new!, 5,12),
79
- 37800 => Rational.send(:new!, 7,16),
80
- 39600 => Rational.send(:new!, 11,24),
81
- 41400 => Rational.send(:new!, 23,48),
82
- 43200 => Rational.send(:new!, 1,2),
83
- 45000 => Rational.send(:new!, 25,48),
84
- 46800 => Rational.send(:new!, 13,24),
85
- 48600 => Rational.send(:new!, 9,16),
86
- 50400 => Rational.send(:new!, 7,12)}
87
-
88
- # Returns a Rational expressing the fraction of a day that offset in
89
- # seconds represents (i.e. equivalent to Rational(offset, 86400)).
90
- def rational_for_offset(offset)
91
- @@rational_cache[offset] || Rational(offset, 86400)
92
- end
93
- module_function :rational_for_offset
94
- end
95
- end