public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
- Updated tzinfo to use Rational() instead of Rational.new! due to "private 
method new!" in Ruby 1.9 - Added ^object_id$ as ignore pattern to fixing 
"redefining object_id" issue in Ruby 1.9

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Nate Wiger (author)
Mon May 19 11:42:37 -0700 2008
jeremy (committer)
Mon May 19 19:07:01 -0700 2008
commit  a34cc42a2c29928bcdc75b700343f978a9524e58
tree    ef186be8a9211da3a00373d76a2da79379909999
parent  762295e0ae9d67450403596412bb8489893378d9
...
49
50
51
52
 
53
54
55
...
49
50
51
 
52
53
54
55
0
@@ -49,7 +49,7 @@ module ActiveRecord
0
       alias_method :proxy_respond_to?, :respond_to?
0
       alias_method :proxy_extend, :extend
0
       delegate :to_param, :to => :proxy_target
0
-      instance_methods.each { |m| undef_method m unless m =~ /(^__|^nil\?$|^send$|proxy_)/ }
0
+      instance_methods.each { |m| undef_method m unless m =~ /(^__|^nil\?$|^send$|proxy_|^object_id$)/ }
0
 
0
       def initialize(owner, reflection)
0
         @owner, @reflection = owner, reflection
...
102
103
104
105
 
106
107
108
...
136
137
138
139
140
 
...
102
103
104
 
105
106
107
108
...
136
137
138
 
139
140
0
@@ -102,7 +102,7 @@ module ActiveRecord
0
     
0
     class Scope
0
       attr_reader :proxy_scope, :proxy_options
0
-      [].methods.each { |m| delegate m, :to => :proxy_found unless m =~ /(^__|^nil\?|^send|class|extend|find|count|sum|average|maximum|minimum|paginate)/ }
0
+      [].methods.each { |m| delegate m, :to => :proxy_found unless m =~ /(^__|^nil\?|^send|^object_id$|class|extend|find|count|sum|average|maximum|minimum|paginate)/ }
0
       delegate :scopes, :with_scope, :to => :proxy_scope
0
 
0
       def initialize(proxy_scope, options, &block)
0
@@ -136,4 +136,4 @@ module ActiveRecord
0
       end
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end
...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
88
89
...
27
28
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
0
@@ -27,63 +27,63 @@ module TZInfo
0
   # -14 and +14 hours to avoid having to call gcd at runtime.  
0
   module OffsetRationals #:nodoc:
0
     @@rational_cache = {
0
-      -50400 => Rational.new!(-7,12), 
0
-      -48600 => Rational.new!(-9,16),
0
-      -46800 => Rational.new!(-13,24),
0
-      -45000 => Rational.new!(-25,48),
0
-      -43200 => Rational.new!(-1,2),
0
-      -41400 => Rational.new!(-23,48),
0
-      -39600 => Rational.new!(-11,24),
0
-      -37800 => Rational.new!(-7,16),
0
-      -36000 => Rational.new!(-5,12),
0
-      -34200 => Rational.new!(-19,48),
0
-      -32400 => Rational.new!(-3,8),
0
-      -30600 => Rational.new!(-17,48),
0
-      -28800 => Rational.new!(-1,3),
0
-      -27000 => Rational.new!(-5,16),
0
-      -25200 => Rational.new!(-7,24),
0
-      -23400 => Rational.new!(-13,48),
0
-      -21600 => Rational.new!(-1,4),
0
-      -19800 => Rational.new!(-11,48),
0
-      -18000 => Rational.new!(-5,24),
0
-      -16200 => Rational.new!(-3,16),
0
-      -14400 => Rational.new!(-1,6),
0
-      -12600 => Rational.new!(-7,48),
0
-      -10800 => Rational.new!(-1,8),
0
-       -9000 => Rational.new!(-5,48),
0
-       -7200 => Rational.new!(-1,12),
0
-       -5400 => Rational.new!(-1,16),
0
-       -3600 => Rational.new!(-1,24),
0
-       -1800 => Rational.new!(-1,48),
0
-           0 => Rational.new!(0,1),
0
-        1800 => Rational.new!(1,48),
0
-        3600 => Rational.new!(1,24),
0
-        5400 => Rational.new!(1,16),
0
-        7200 => Rational.new!(1,12),
0
-        9000 => Rational.new!(5,48),
0
-       10800 => Rational.new!(1,8),
0
-       12600 => Rational.new!(7,48),
0
-       14400 => Rational.new!(1,6),
0
-       16200 => Rational.new!(3,16),
0
-       18000 => Rational.new!(5,24),
0
-       19800 => Rational.new!(11,48),
0
-       21600 => Rational.new!(1,4),
0
-       23400 => Rational.new!(13,48),
0
-       25200 => Rational.new!(7,24),
0
-       27000 => Rational.new!(5,16),
0
-       28800 => Rational.new!(1,3),
0
-       30600 => Rational.new!(17,48),
0
-       32400 => Rational.new!(3,8),
0
-       34200 => Rational.new!(19,48),
0
-       36000 => Rational.new!(5,12),
0
-       37800 => Rational.new!(7,16),
0
-       39600 => Rational.new!(11,24),
0
-       41400 => Rational.new!(23,48),
0
-       43200 => Rational.new!(1,2),
0
-       45000 => Rational.new!(25,48),
0
-       46800 => Rational.new!(13,24),  
0
-       48600 => Rational.new!(9,16),            
0
-       50400 => Rational.new!(7,12)}
0
+      -50400 => Rational(-7,12),
0
+      -48600 => Rational(-9,16),
0
+      -46800 => Rational(-13,24),
0
+      -45000 => Rational(-25,48),
0
+      -43200 => Rational(-1,2),
0
+      -41400 => Rational(-23,48),
0
+      -39600 => Rational(-11,24),
0
+      -37800 => Rational(-7,16),
0
+      -36000 => Rational(-5,12),
0
+      -34200 => Rational(-19,48),
0
+      -32400 => Rational(-3,8),
0
+      -30600 => Rational(-17,48),
0
+      -28800 => Rational(-1,3),
0
+      -27000 => Rational(-5,16),
0
+      -25200 => Rational(-7,24),
0
+      -23400 => Rational(-13,48),
0
+      -21600 => Rational(-1,4),
0
+      -19800 => Rational(-11,48),
0
+      -18000 => Rational(-5,24),
0
+      -16200 => Rational(-3,16),
0
+      -14400 => Rational(-1,6),
0
+      -12600 => Rational(-7,48),
0
+      -10800 => Rational(-1,8),
0
+       -9000 => Rational(-5,48),
0
+       -7200 => Rational(-1,12),
0
+       -5400 => Rational(-1,16),
0
+       -3600 => Rational(-1,24),
0
+       -1800 => Rational(-1,48),
0
+           0 => Rational(0,1),
0
+        1800 => Rational(1,48),
0
+        3600 => Rational(1,24),
0
+        5400 => Rational(1,16),
0
+        7200 => Rational(1,12),
0
+        9000 => Rational(5,48),
0
+       10800 => Rational(1,8),
0
+       12600 => Rational(7,48),
0
+       14400 => Rational(1,6),
0
+       16200 => Rational(3,16),
0
+       18000 => Rational(5,24),
0
+       19800 => Rational(11,48),
0
+       21600 => Rational(1,4),
0
+       23400 => Rational(13,48),
0
+       25200 => Rational(7,24),
0
+       27000 => Rational(5,16),
0
+       28800 => Rational(1,3),
0
+       30600 => Rational(17,48),
0
+       32400 => Rational(3,8),
0
+       34200 => Rational(19,48),
0
+       36000 => Rational(5,12),
0
+       37800 => Rational(7,16),
0
+       39600 => Rational(11,24),
0
+       41400 => Rational(23,48),
0
+       43200 => Rational(1,2),
0
+       45000 => Rational(25,48),
0
+       46800 => Rational(13,24),
0
+       48600 => Rational(9,16),
0
+       50400 => Rational(7,12)}
0
     
0
     # Returns a Rational expressing the fraction of a day that offset in 
0
     # seconds represents (i.e. equivalent to Rational(offset, 86400)). 

Comments