ruby-changes:35162
From: hsbt <ko1@a...>
Date: Fri, 22 Aug 2014 11:39:32 +0900 (JST)
Subject: [ruby-changes:35162] hsbt:r47243 (trunk): * lib/prettyprint.rb: removed PrettyPrint#first?
hsbt 2014-08-22 11:38:59 +0900 (Fri, 22 Aug 2014) New Revision: 47243 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47243 Log: * lib/prettyprint.rb: removed PrettyPrint#first? because it is obsoleted method since Ruby 1.8.2 Modified files: trunk/ChangeLog trunk/NEWS trunk/lib/prettyprint.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47242) +++ ChangeLog (revision 47243) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Aug 22 11:38:49 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * lib/prettyprint.rb: removed PrettyPrint#first? + because it is obsoleted method since Ruby 1.8.2 + Thu Aug 21 17:10:31 2014 Nobuyoshi Nakada <nobu@r...> * win32/win32.c (constat_attr): manage reverse video internally Index: lib/prettyprint.rb =================================================================== --- lib/prettyprint.rb (revision 47242) +++ lib/prettyprint.rb (revision 47243) @@ -154,28 +154,6 @@ class PrettyPrint https://github.com/ruby/ruby/blob/trunk/lib/prettyprint.rb#L154 @group_stack.last end - # first? is a predicate to test the call is a first call to first? with - # current group. - # - # It is useful to format comma separated values as: - # - # q.group(1, '[', ']') { - # xxx.each {|yyy| - # unless q.first? - # q.text ',' - # q.breakable - # end - # ... pretty printing yyy ... - # } - # } - # - # first? is obsoleted in 1.8.2. - # - def first? - warn "PrettyPrint#first? is obsoleted at 1.8.2." - current_group.first? - end - # Breaks the buffer into lines that are shorter than #maxwidth def break_outmost_groups while @maxwidth < @output_width + @buffer_width Index: NEWS =================================================================== --- NEWS (revision 47242) +++ NEWS (revision 47243) @@ -134,6 +134,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L134 * Time.httpdate produces always UTC Time object. * Time.strptime raises ArgumentError when no date information. +* lib/prettyprint.rb + * Removed PrettyPrint#first? + * lib/minitest/*.rb * Removed because it conflicts to minitest 5. [Feature #9711] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/