ruby-changes:19932
From: nobu <ko1@a...>
Date: Fri, 10 Jun 2011 13:01:38 +0900 (JST)
Subject: [ruby-changes:19932] nobu:r31979 (trunk): * test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all
nobu 2011-06-10 13:01:26 +0900 (Fri, 10 Jun 2011) New Revision: 31979 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31979 Log: * test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all module related to Rake. Modified files: trunk/ChangeLog trunk/test/ruby/test_module.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31978) +++ ChangeLog (revision 31979) @@ -1,3 +1,8 @@ +Fri Jun 10 13:01:24 2011 Nobuyoshi Nakada <nobu@r...> + + * test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all + module related to Rake. + Fri Jun 10 09:52:38 2011 Eric Hodel <drbrain@s...> * encoding.c: Mention that Encoding.compatible? can work with more Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 31978) +++ test/ruby/test_module.rb (revision 31979) @@ -73,9 +73,10 @@ end def remove_rake_mixins(list) - list. - reject {|c| c.to_s == "RakeFileUtils" }. - reject {|c| c.to_s.start_with?("FileUtils") } + list.reject {|c| + name = c.name + name.start_with?("Rake") or name.start_with?("FileUtils") + } end module Mixin -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/