ruby-changes:30424
From: zzak <ko1@a...>
Date: Sun, 11 Aug 2013 10:44:48 +0900 (JST)
Subject: [ruby-changes:30424] zzak:r42503 (trunk): * lib/time.rb: [DOC] Correcting rdoc visibility of time.rb constants
zzak 2013-08-11 10:44:42 +0900 (Sun, 11 Aug 2013) New Revision: 42503 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42503 Log: * lib/time.rb: [DOC] Correcting rdoc visibility of time.rb constants Reported by Tanaka Akira [ruby-core:56517] Modified files: trunk/ChangeLog trunk/lib/time.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 42502) +++ ChangeLog (revision 42503) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Aug 11 10:40:48 2013 Zachary Scott <e@z...> + + * lib/time.rb: [DOC] Correcting rdoc visibility of time.rb constants + Reported by Tanaka Akira [ruby-core:56517] + Sun Aug 11 04:48:14 2013 NARUSE, Yui <naruse@r...> * file.c (rb_str_normalize_ospath): Index: lib/time.rb =================================================================== --- lib/time.rb (revision 42502) +++ lib/time.rb (revision 42503) @@ -174,10 +174,8 @@ class Time https://github.com/ruby/ruby/blob/trunk/lib/time.rb#L174 end private :zone_utc? - # An array with the number of days per month in a leap year. - LeapYearMonthDays = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] - # An array with the number of days per month in a regular year. - CommonYearMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] + LeapYearMonthDays = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] # :nodoc: + CommonYearMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] # :nodoc: def month_days(y, m) if ((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0) LeapYearMonthDays[m-1] @@ -403,14 +401,7 @@ class Time https://github.com/ruby/ruby/blob/trunk/lib/time.rb#L401 end end - # - # A hash of upcased RFC2822 month-names mapped to number of the month. - # For example: - # - # Time.MonthValue['JAN'] - # #=> 1 - # - MonthValue = { + MonthValue = { # :nodoc: 'JAN' => 1, 'FEB' => 2, 'MAR' => 3, 'APR' => 4, 'MAY' => 5, 'JUN' => 6, 'JUL' => 7, 'AUG' => 8, 'SEP' => 9, 'OCT' =>10, 'NOV' =>11, 'DEC' =>12 } @@ -587,13 +578,11 @@ class Time https://github.com/ruby/ruby/blob/trunk/lib/time.rb#L578 alias rfc822 rfc2822 - # An array of day names, as defined by RFC 2822 - RFC2822_DAY_NAME = [ + RFC2822_DAY_NAME = [ # :nodoc: 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ] - # An array of month names, as defined by RFC 2822 - RFC2822_MONTH_NAME = [ + RFC2822_MONTH_NAME = [ # :nodoc: 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/