ruby-changes:18334
From: nobu <ko1@a...>
Date: Sat, 25 Dec 2010 17:34:04 +0900 (JST)
Subject: [ruby-changes:18334] Ruby:r30357 (trunk): * test/csv/base.rb (TestCSV.with_diffrent_ofs): give name to
nobu 2010-12-25 17:33:58 +0900 (Sat, 25 Dec 2010) New Revision: 30357 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30357 Log: * test/csv/base.rb (TestCSV.with_diffrent_ofs): give name to anonymous classes. Modified files: trunk/ChangeLog trunk/test/csv/base.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30356) +++ ChangeLog (revision 30357) @@ -1,5 +1,8 @@ -Sat Dec 25 17:32:24 2010 Nobuyoshi Nakada <nobu@r...> +Sat Dec 25 17:33:55 2010 Nobuyoshi Nakada <nobu@r...> + * test/csv/base.rb (TestCSV.with_diffrent_ofs): give name to + anonymous classes. + * lib/csv.rb (CSV#init_separators): use IO#gets with length parameter to get rid of wrong convertion. Index: test/csv/base.rb =================================================================== --- test/csv/base.rb (revision 30356) +++ test/csv/base.rb (revision 30357) @@ -15,6 +15,6 @@ end def self.with_diffrent_ofs - Class.new(self).class_eval {include DifferentOFS} + const_set(:DifferentOFS, Class.new(self).class_eval {include DifferentOFS}).name end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/