ruby-changes:17301
From: akr <ko1@a...>
Date: Mon, 20 Sep 2010 11:26:38 +0900 (JST)
Subject: [ruby-changes:17301] Ruby:r29305 (trunk): * ext/pathname/pathname.c (Init_pathname): Pathname#=~ undefinition
akr 2010-09-20 11:26:30 +0900 (Mon, 20 Sep 2010) New Revision: 29305 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29305 Log: * ext/pathname/pathname.c (Init_pathname): Pathname#=~ undefinition translated from pathname.rb. Modified files: trunk/ChangeLog trunk/ext/pathname/lib/pathname.rb trunk/ext/pathname/pathname.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29304) +++ ChangeLog (revision 29305) @@ -1,3 +1,8 @@ +Mon Sep 20 11:25:49 2010 Tanaka Akira <akr@f...> + + * ext/pathname/pathname.c (Init_pathname): Pathname#=~ undefinition + translated from pathname.rb. + Mon Sep 20 02:34:11 2010 Kenta Murata <mrkn@m...> * ext/bigdecimal/bigdecimal.c (check_rounding_mode, BigDecimal_mode): Index: ext/pathname/lib/pathname.rb =================================================================== --- ext/pathname/lib/pathname.rb (revision 29304) +++ ext/pathname/lib/pathname.rb (revision 29305) @@ -526,10 +526,6 @@ end -class Pathname - undef =~ -end - module Kernel # create a pathname object. # Index: ext/pathname/pathname.c =================================================================== --- ext/pathname/pathname.c (revision 29304) +++ ext/pathname/pathname.c (revision 29305) @@ -1224,4 +1224,5 @@ rb_define_method(rb_cPathname, "each_entry", path_each_entry, 0); rb_define_method(rb_cPathname, "unlink", path_unlink, 0); rb_define_method(rb_cPathname, "delete", path_unlink, 0); + rb_undef_method(rb_cPathname, "=~"); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/