[#30408] Ruby 1.8.6 preview2 has been released — "Akinori MUSHA" <knu@...>

 Ruby 1.8.6 preview2 をリリースしました。

20 messages 2007/02/24
[#30414] fail to autoload at $SAFE==4 (Re: Ruby 1.8.6 preview2 has been released) — Hidetoshi NAGAI <nagai@...> 2007/02/25

永井@知能.九工大です.

[#30418] Re: fail to autoload at $SAFE==4 (Re: Ruby 1.8.6 preview2 has been released) — Nobuyoshi Nakada <nobu@...> 2007/02/25

なかだです。

[ruby-dev:30320] autorunner.rbの-nが動かない

From: Kouhei Sutou <kou@...>
Date: 2007-02-11 12:54:23 UTC
List: ruby-dev #30320
須藤です.

method_nameがStringではなくSymbolで返ってくるようになったた
めautorunner.rbの-nオプションが動かなくなっています.

Attachments (1)

ruby-trunk-autorunner.diff (662 Bytes, text/x-diff)
Index: lib/test/unit/autorunner.rb
===================================================================
--- lib/test/unit/autorunner.rb	(revision 11702)
+++ lib/test/unit/autorunner.rb	(working copy)
@@ -144,9 +144,9 @@
             n = (%r{\A/(.*)/\Z} =~ n ? Regexp.new($1) : n)
             case n
             when Regexp
-              @filters << proc{|t| n =~ t.method_name ? true : nil}
+              @filters << proc{|t| n =~ t.method_name.to_s ? true : nil}
             else
-              @filters << proc{|t| n == t.method_name ? true : nil}
+              @filters << proc{|t| n == t.method_name.to_s ? true : nil}
             end
           end
 

In This Thread

Prev Next