[前][次][番号順一覧][スレッド一覧]

ruby-changes:9262

From: usa <ko1@a...>
Date: Tue, 16 Dec 2008 22:45:27 +0900 (JST)
Subject: [ruby-changes:9262] Ruby:r20799 (trunk): * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.

usa	2008-12-16 22:43:34 +0900 (Tue, 16 Dec 2008)

  New Revision: 20799

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20799

  Log:
    * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.

  Modified files:
    trunk/ChangeLog
    trunk/lib/test/unit.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20798)
+++ ChangeLog	(revision 20799)
@@ -1,3 +1,7 @@
+Tue Dec 16 22:42:16 2008  NAKAMURA Usaku  <usa@r...>
+
+	* lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.
+
 Tue Dec 16 22:15:17 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
Index: lib/test/unit.rb
===================================================================
--- lib/test/unit.rb	(revision 20798)
+++ lib/test/unit.rb	(revision 20799)
@@ -32,7 +32,7 @@
       end
 
       files.map! {|f|
-        f.gsub!(/#{File::ALT_SEPARATOR}/o, File::SEPARATOR) if File::ALT_SEPARATOR
+        f = f.gsub(Regexp.compile(Regexp.quote(File::ALT_SEPARATOR)), File::SEPARATOR) if File::ALT_SEPARATOR
         if File.directory? f
           Dir["#{f}/**/test_*.rb"]
         elsif File.file? f

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]