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
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ *2.1.2 (October 23rd, 2008)*
2
+
3
+ * TimeWithZone#freeze: preload instance variables so that we can actually freeze [Geoff Buesing]
4
+
5
+
1
6
  *2.1.1 (September 4th, 2008)*
2
7
 
3
8
  * Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances are now correctly unmarshaled with a utc zone instead of the system local zone [#900 state:resolved]:activesupport/CHANGELOG
@@ -10,7 +10,7 @@ module ActiveSupport #:nodoc:
10
10
  module Except
11
11
  # Returns a new hash without the given keys.
12
12
  def except(*keys)
13
- clone.except!(*keys)
13
+ dup.except!(*keys)
14
14
  end
15
15
 
16
16
  # Replaces the hash without only the given keys.
@@ -15,7 +15,7 @@ module ActiveSupport #:nodoc:
15
15
  # Returns a new hash with only the given keys.
16
16
  def slice(*keys)
17
17
  allowed = Set.new(respond_to?(:convert_key) ? keys.map { |key| convert_key(key) } : keys)
18
- hash = {}
18
+ hash = self.class.new
19
19
  allowed.each { |k| hash[k] = self[k] if has_key?(k) }
20
20
  hash
21
21
  end
@@ -3,18 +3,17 @@ class Object
3
3
  Class.remove_class(*subclasses_of(*superclasses))
4
4
  end
5
5
 
6
- # Exclude this class unless it's a subclass of our supers and is defined.
7
- # We check defined? in case we find a removed class that has yet to be
8
- # garbage collected. This also fails for anonymous classes -- please
9
- # submit a patch if you have a workaround.
10
6
  def subclasses_of(*superclasses) #:nodoc:
11
7
  subclasses = []
12
8
 
13
- superclasses.each do |sup|
14
- ObjectSpace.each_object(class << sup; self; end) do |k|
15
- if k != sup && (k.name.blank? || eval("defined?(::#{k}) && ::#{k}.object_id == k.object_id"))
16
- subclasses << k
17
- end
9
+ # Exclude this class unless it's a subclass of our supers and is defined.
10
+ # We check defined? in case we find a removed class that has yet to be
11
+ # garbage collected. This also fails for anonymous classes -- please
12
+ # submit a patch if you have a workaround.
13
+ ObjectSpace.each_object(Class) do |k|
14
+ if superclasses.any? { |superclass| k < superclass } &&
15
+ (k.name.blank? || eval("defined?(::#{k}) && ::#{k}.object_id == k.object_id"))
16
+ subclasses << k
18
17
  end
19
18
  end
20
19
 
@@ -5,7 +5,8 @@ require 'rexml/entity'
5
5
  # http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
6
6
  # This fix is identical to rexml-expansion-fix version 1.0.1
7
7
 
8
- unless REXML::VERSION > "3.1.7.2"
8
+ # Earlier versions of rexml defined REXML::Version, newer ones REXML::VERSION
9
+ unless (defined?(REXML::VERSION) ? REXML::VERSION : REXML::Version) > "3.1.7.2"
9
10
  module REXML
10
11
  class Entity < Child
11
12
  undef_method :unnormalized
@@ -32,4 +33,4 @@ unless REXML::VERSION > "3.1.7.2"
32
33
  end
33
34
  end
34
35
  end
35
- end
36
+ end
@@ -51,7 +51,7 @@ module ActiveSupport
51
51
 
52
52
  private
53
53
  def deprecation_message(callstack, message = nil)
54
- message ||= "You are using deprecated behavior which will be removed from Rails 2.0."
54
+ message ||= "You are using deprecated behavior which will be removed from Rails 2.2"
55
55
  "DEPRECATION WARNING: #{message} See http://www.rubyonrails.org/deprecation for details. #{deprecation_caller_message(callstack)}"
56
56
  end
57
57
 
@@ -252,10 +252,10 @@ module ActiveSupport
252
252
  klass == ::Time || super
253
253
  end
254
254
  alias_method :kind_of?, :is_a?
255
-
256
- # Neuter freeze because freezing can cause problems with lazy loading of attributes.
255
+
257
256
  def freeze
258
- self
257
+ period; utc; time # preload instance variables before freezing
258
+ super
259
259
  end
260
260
 
261
261
  def marshal_dump
@@ -51,7 +51,7 @@ module ActiveSupport
51
51
  "La Paz" => "America/La_Paz",
52
52
  "Santiago" => "America/Santiago",
53
53
  "Newfoundland" => "America/St_Johns",
54
- "Brasilia" => "America/Argentina/Buenos_Aires",
54
+ "Brasilia" => "America/Sao_Paulo",
55
55
  "Buenos Aires" => "America/Argentina/Buenos_Aires",
56
56
  "Georgetown" => "America/Argentina/San_Juan",
57
57
  "Greenland" => "America/Godthab",
@@ -20,7 +20,7 @@ rescue Gem::LoadError
20
20
  end
21
21
 
22
22
  begin
23
- gem 'tzinfo', '~> 0.3.9'
23
+ gem 'tzinfo', '~> 0.3.11'
24
24
  rescue Gem::LoadError
25
- $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.9"
25
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.11"
26
26
  end
@@ -32,7 +32,7 @@ module TZInfo
32
32
  tz.transition 1984, 3, :o3, 448243200
33
33
  tz.transition 1985, 12, :o1, 504918000
34
34
  tz.transition 2008, 6, :o2, 1212278400
35
- tz.transition 2008, 9, :o1, 1222556400
35
+ tz.transition 2008, 8, :o1, 1220223600
36
36
  end
37
37
  end
38
38
  end
@@ -74,89 +74,89 @@ module TZInfo
74
74
  tz.transition 2000, 3, :o4, 952052400
75
75
  tz.transition 2007, 12, :o5, 1198983600
76
76
  tz.transition 2008, 3, :o4, 1205632800
77
- tz.transition 2008, 10, :o5, 1223175600
77
+ tz.transition 2008, 10, :o5, 1224385200
78
78
  tz.transition 2009, 3, :o4, 1237082400
79
- tz.transition 2009, 10, :o5, 1254625200
79
+ tz.transition 2009, 10, :o5, 1255834800
80
80
  tz.transition 2010, 3, :o4, 1269136800
81
- tz.transition 2010, 10, :o5, 1286074800
81
+ tz.transition 2010, 10, :o5, 1287284400
82
82
  tz.transition 2011, 3, :o4, 1300586400
83
- tz.transition 2011, 10, :o5, 1317524400
83
+ tz.transition 2011, 10, :o5, 1318734000
84
84
  tz.transition 2012, 3, :o4, 1332036000
85
- tz.transition 2012, 10, :o5, 1349578800
85
+ tz.transition 2012, 10, :o5, 1350788400
86
86
  tz.transition 2013, 3, :o4, 1363485600
87
- tz.transition 2013, 10, :o5, 1381028400
87
+ tz.transition 2013, 10, :o5, 1382238000
88
88
  tz.transition 2014, 3, :o4, 1394935200
89
- tz.transition 2014, 10, :o5, 1412478000
89
+ tz.transition 2014, 10, :o5, 1413687600
90
90
  tz.transition 2015, 3, :o4, 1426384800
91
- tz.transition 2015, 10, :o5, 1443927600
91
+ tz.transition 2015, 10, :o5, 1445137200
92
92
  tz.transition 2016, 3, :o4, 1458439200
93
- tz.transition 2016, 10, :o5, 1475377200
93
+ tz.transition 2016, 10, :o5, 1476586800
94
94
  tz.transition 2017, 3, :o4, 1489888800
95
- tz.transition 2017, 10, :o5, 1506826800
95
+ tz.transition 2017, 10, :o5, 1508036400
96
96
  tz.transition 2018, 3, :o4, 1521338400
97
- tz.transition 2018, 10, :o5, 1538881200
97
+ tz.transition 2018, 10, :o5, 1540090800
98
98
  tz.transition 2019, 3, :o4, 1552788000
99
- tz.transition 2019, 10, :o5, 1570330800
99
+ tz.transition 2019, 10, :o5, 1571540400
100
100
  tz.transition 2020, 3, :o4, 1584237600
101
- tz.transition 2020, 10, :o5, 1601780400
101
+ tz.transition 2020, 10, :o5, 1602990000
102
102
  tz.transition 2021, 3, :o4, 1616292000
103
- tz.transition 2021, 10, :o5, 1633230000
103
+ tz.transition 2021, 10, :o5, 1634439600
104
104
  tz.transition 2022, 3, :o4, 1647741600
105
- tz.transition 2022, 10, :o5, 1664679600
105
+ tz.transition 2022, 10, :o5, 1665889200
106
106
  tz.transition 2023, 3, :o4, 1679191200
107
- tz.transition 2023, 10, :o5, 1696129200
107
+ tz.transition 2023, 10, :o5, 1697338800
108
108
  tz.transition 2024, 3, :o4, 1710640800
109
- tz.transition 2024, 10, :o5, 1728183600
109
+ tz.transition 2024, 10, :o5, 1729393200
110
110
  tz.transition 2025, 3, :o4, 1742090400
111
- tz.transition 2025, 10, :o5, 1759633200
111
+ tz.transition 2025, 10, :o5, 1760842800
112
112
  tz.transition 2026, 3, :o4, 1773540000
113
- tz.transition 2026, 10, :o5, 1791082800
113
+ tz.transition 2026, 10, :o5, 1792292400
114
114
  tz.transition 2027, 3, :o4, 1805594400
115
- tz.transition 2027, 10, :o5, 1822532400
115
+ tz.transition 2027, 10, :o5, 1823742000
116
116
  tz.transition 2028, 3, :o4, 1837044000
117
- tz.transition 2028, 10, :o5, 1853982000
117
+ tz.transition 2028, 10, :o5, 1855191600
118
118
  tz.transition 2029, 3, :o4, 1868493600
119
- tz.transition 2029, 10, :o5, 1886036400
119
+ tz.transition 2029, 10, :o5, 1887246000
120
120
  tz.transition 2030, 3, :o4, 1899943200
121
- tz.transition 2030, 10, :o5, 1917486000
121
+ tz.transition 2030, 10, :o5, 1918695600
122
122
  tz.transition 2031, 3, :o4, 1931392800
123
- tz.transition 2031, 10, :o5, 1948935600
123
+ tz.transition 2031, 10, :o5, 1950145200
124
124
  tz.transition 2032, 3, :o4, 1963447200
125
- tz.transition 2032, 10, :o5, 1980385200
125
+ tz.transition 2032, 10, :o5, 1981594800
126
126
  tz.transition 2033, 3, :o4, 1994896800
127
- tz.transition 2033, 10, :o5, 2011834800
127
+ tz.transition 2033, 10, :o5, 2013044400
128
128
  tz.transition 2034, 3, :o4, 2026346400
129
- tz.transition 2034, 10, :o5, 2043284400
129
+ tz.transition 2034, 10, :o5, 2044494000
130
130
  tz.transition 2035, 3, :o4, 2057796000
131
- tz.transition 2035, 10, :o5, 2075338800
131
+ tz.transition 2035, 10, :o5, 2076548400
132
132
  tz.transition 2036, 3, :o4, 2089245600
133
- tz.transition 2036, 10, :o5, 2106788400
133
+ tz.transition 2036, 10, :o5, 2107998000
134
134
  tz.transition 2037, 3, :o4, 2120695200
135
- tz.transition 2037, 10, :o5, 2138238000
135
+ tz.transition 2037, 10, :o5, 2139447600
136
136
  tz.transition 2038, 3, :o4, 29586043, 12
137
- tz.transition 2038, 10, :o5, 19725597, 8
137
+ tz.transition 2038, 10, :o5, 19725709, 8
138
138
  tz.transition 2039, 3, :o4, 29590411, 12
139
- tz.transition 2039, 10, :o5, 19728509, 8
139
+ tz.transition 2039, 10, :o5, 19728621, 8
140
140
  tz.transition 2040, 3, :o4, 29594779, 12
141
- tz.transition 2040, 10, :o5, 19731477, 8
141
+ tz.transition 2040, 10, :o5, 19731589, 8
142
142
  tz.transition 2041, 3, :o4, 29599147, 12
143
- tz.transition 2041, 10, :o5, 19734389, 8
143
+ tz.transition 2041, 10, :o5, 19734501, 8
144
144
  tz.transition 2042, 3, :o4, 29603515, 12
145
- tz.transition 2042, 10, :o5, 19737301, 8
145
+ tz.transition 2042, 10, :o5, 19737413, 8
146
146
  tz.transition 2043, 3, :o4, 29607883, 12
147
- tz.transition 2043, 10, :o5, 19740213, 8
147
+ tz.transition 2043, 10, :o5, 19740325, 8
148
148
  tz.transition 2044, 3, :o4, 29612335, 12
149
- tz.transition 2044, 10, :o5, 19743125, 8
149
+ tz.transition 2044, 10, :o5, 19743237, 8
150
150
  tz.transition 2045, 3, :o4, 29616703, 12
151
- tz.transition 2045, 10, :o5, 19746037, 8
151
+ tz.transition 2045, 10, :o5, 19746149, 8
152
152
  tz.transition 2046, 3, :o4, 29621071, 12
153
- tz.transition 2046, 10, :o5, 19749005, 8
153
+ tz.transition 2046, 10, :o5, 19749117, 8
154
154
  tz.transition 2047, 3, :o4, 29625439, 12
155
- tz.transition 2047, 10, :o5, 19751917, 8
155
+ tz.transition 2047, 10, :o5, 19752029, 8
156
156
  tz.transition 2048, 3, :o4, 29629807, 12
157
- tz.transition 2048, 10, :o5, 19754829, 8
157
+ tz.transition 2048, 10, :o5, 19754941, 8
158
158
  tz.transition 2049, 3, :o4, 29634259, 12
159
- tz.transition 2049, 10, :o5, 19757741, 8
159
+ tz.transition 2049, 10, :o5, 19757853, 8
160
160
  tz.transition 2050, 3, :o4, 29638627, 12
161
161
  end
162
162
  end
@@ -78,89 +78,89 @@ module TZInfo
78
78
  tz.transition 2004, 7, :o4, 1090728000
79
79
  tz.transition 2007, 12, :o5, 1198983600
80
80
  tz.transition 2008, 3, :o4, 1205632800
81
- tz.transition 2008, 10, :o5, 1223175600
81
+ tz.transition 2008, 10, :o5, 1224385200
82
82
  tz.transition 2009, 3, :o4, 1237082400
83
- tz.transition 2009, 10, :o5, 1254625200
83
+ tz.transition 2009, 10, :o5, 1255834800
84
84
  tz.transition 2010, 3, :o4, 1269136800
85
- tz.transition 2010, 10, :o5, 1286074800
85
+ tz.transition 2010, 10, :o5, 1287284400
86
86
  tz.transition 2011, 3, :o4, 1300586400
87
- tz.transition 2011, 10, :o5, 1317524400
87
+ tz.transition 2011, 10, :o5, 1318734000
88
88
  tz.transition 2012, 3, :o4, 1332036000
89
- tz.transition 2012, 10, :o5, 1349578800
89
+ tz.transition 2012, 10, :o5, 1350788400
90
90
  tz.transition 2013, 3, :o4, 1363485600
91
- tz.transition 2013, 10, :o5, 1381028400
91
+ tz.transition 2013, 10, :o5, 1382238000
92
92
  tz.transition 2014, 3, :o4, 1394935200
93
- tz.transition 2014, 10, :o5, 1412478000
93
+ tz.transition 2014, 10, :o5, 1413687600
94
94
  tz.transition 2015, 3, :o4, 1426384800
95
- tz.transition 2015, 10, :o5, 1443927600
95
+ tz.transition 2015, 10, :o5, 1445137200
96
96
  tz.transition 2016, 3, :o4, 1458439200
97
- tz.transition 2016, 10, :o5, 1475377200
97
+ tz.transition 2016, 10, :o5, 1476586800
98
98
  tz.transition 2017, 3, :o4, 1489888800
99
- tz.transition 2017, 10, :o5, 1506826800
99
+ tz.transition 2017, 10, :o5, 1508036400
100
100
  tz.transition 2018, 3, :o4, 1521338400
101
- tz.transition 2018, 10, :o5, 1538881200
101
+ tz.transition 2018, 10, :o5, 1540090800
102
102
  tz.transition 2019, 3, :o4, 1552788000
103
- tz.transition 2019, 10, :o5, 1570330800
103
+ tz.transition 2019, 10, :o5, 1571540400
104
104
  tz.transition 2020, 3, :o4, 1584237600
105
- tz.transition 2020, 10, :o5, 1601780400
105
+ tz.transition 2020, 10, :o5, 1602990000
106
106
  tz.transition 2021, 3, :o4, 1616292000
107
- tz.transition 2021, 10, :o5, 1633230000
107
+ tz.transition 2021, 10, :o5, 1634439600
108
108
  tz.transition 2022, 3, :o4, 1647741600
109
- tz.transition 2022, 10, :o5, 1664679600
109
+ tz.transition 2022, 10, :o5, 1665889200
110
110
  tz.transition 2023, 3, :o4, 1679191200
111
- tz.transition 2023, 10, :o5, 1696129200
111
+ tz.transition 2023, 10, :o5, 1697338800
112
112
  tz.transition 2024, 3, :o4, 1710640800
113
- tz.transition 2024, 10, :o5, 1728183600
113
+ tz.transition 2024, 10, :o5, 1729393200
114
114
  tz.transition 2025, 3, :o4, 1742090400
115
- tz.transition 2025, 10, :o5, 1759633200
115
+ tz.transition 2025, 10, :o5, 1760842800
116
116
  tz.transition 2026, 3, :o4, 1773540000
117
- tz.transition 2026, 10, :o5, 1791082800
117
+ tz.transition 2026, 10, :o5, 1792292400
118
118
  tz.transition 2027, 3, :o4, 1805594400
119
- tz.transition 2027, 10, :o5, 1822532400
119
+ tz.transition 2027, 10, :o5, 1823742000
120
120
  tz.transition 2028, 3, :o4, 1837044000
121
- tz.transition 2028, 10, :o5, 1853982000
121
+ tz.transition 2028, 10, :o5, 1855191600
122
122
  tz.transition 2029, 3, :o4, 1868493600
123
- tz.transition 2029, 10, :o5, 1886036400
123
+ tz.transition 2029, 10, :o5, 1887246000
124
124
  tz.transition 2030, 3, :o4, 1899943200
125
- tz.transition 2030, 10, :o5, 1917486000
125
+ tz.transition 2030, 10, :o5, 1918695600
126
126
  tz.transition 2031, 3, :o4, 1931392800
127
- tz.transition 2031, 10, :o5, 1948935600
127
+ tz.transition 2031, 10, :o5, 1950145200
128
128
  tz.transition 2032, 3, :o4, 1963447200
129
- tz.transition 2032, 10, :o5, 1980385200
129
+ tz.transition 2032, 10, :o5, 1981594800
130
130
  tz.transition 2033, 3, :o4, 1994896800
131
- tz.transition 2033, 10, :o5, 2011834800
131
+ tz.transition 2033, 10, :o5, 2013044400
132
132
  tz.transition 2034, 3, :o4, 2026346400
133
- tz.transition 2034, 10, :o5, 2043284400
133
+ tz.transition 2034, 10, :o5, 2044494000
134
134
  tz.transition 2035, 3, :o4, 2057796000
135
- tz.transition 2035, 10, :o5, 2075338800
135
+ tz.transition 2035, 10, :o5, 2076548400
136
136
  tz.transition 2036, 3, :o4, 2089245600
137
- tz.transition 2036, 10, :o5, 2106788400
137
+ tz.transition 2036, 10, :o5, 2107998000
138
138
  tz.transition 2037, 3, :o4, 2120695200
139
- tz.transition 2037, 10, :o5, 2138238000
139
+ tz.transition 2037, 10, :o5, 2139447600
140
140
  tz.transition 2038, 3, :o4, 29586043, 12
141
- tz.transition 2038, 10, :o5, 19725597, 8
141
+ tz.transition 2038, 10, :o5, 19725709, 8
142
142
  tz.transition 2039, 3, :o4, 29590411, 12
143
- tz.transition 2039, 10, :o5, 19728509, 8
143
+ tz.transition 2039, 10, :o5, 19728621, 8
144
144
  tz.transition 2040, 3, :o4, 29594779, 12
145
- tz.transition 2040, 10, :o5, 19731477, 8
145
+ tz.transition 2040, 10, :o5, 19731589, 8
146
146
  tz.transition 2041, 3, :o4, 29599147, 12
147
- tz.transition 2041, 10, :o5, 19734389, 8
147
+ tz.transition 2041, 10, :o5, 19734501, 8
148
148
  tz.transition 2042, 3, :o4, 29603515, 12
149
- tz.transition 2042, 10, :o5, 19737301, 8
149
+ tz.transition 2042, 10, :o5, 19737413, 8
150
150
  tz.transition 2043, 3, :o4, 29607883, 12
151
- tz.transition 2043, 10, :o5, 19740213, 8
151
+ tz.transition 2043, 10, :o5, 19740325, 8
152
152
  tz.transition 2044, 3, :o4, 29612335, 12
153
- tz.transition 2044, 10, :o5, 19743125, 8
153
+ tz.transition 2044, 10, :o5, 19743237, 8
154
154
  tz.transition 2045, 3, :o4, 29616703, 12
155
- tz.transition 2045, 10, :o5, 19746037, 8
155
+ tz.transition 2045, 10, :o5, 19746149, 8
156
156
  tz.transition 2046, 3, :o4, 29621071, 12
157
- tz.transition 2046, 10, :o5, 19749005, 8
157
+ tz.transition 2046, 10, :o5, 19749117, 8
158
158
  tz.transition 2047, 3, :o4, 29625439, 12
159
- tz.transition 2047, 10, :o5, 19751917, 8
159
+ tz.transition 2047, 10, :o5, 19752029, 8
160
160
  tz.transition 2048, 3, :o4, 29629807, 12
161
- tz.transition 2048, 10, :o5, 19754829, 8
161
+ tz.transition 2048, 10, :o5, 19754941, 8
162
162
  tz.transition 2049, 3, :o4, 29634259, 12
163
- tz.transition 2049, 10, :o5, 19757741, 8
163
+ tz.transition 2049, 10, :o5, 19757853, 8
164
164
  tz.transition 2050, 3, :o4, 29638627, 12
165
165
  end
166
166
  end