ruby-changes:18525
From: nobu <ko1@a...>
Date: Sat, 15 Jan 2011 10:07:07 +0900 (JST)
Subject: [ruby-changes:18525] Ruby:r30548 (trunk): * tool/compile_prelude.rb (Prelude#initialize): ignore empty
nobu 2011-01-15 10:00:09 +0900 (Sat, 15 Jan 2011) New Revision: 30548 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30548 Log: * tool/compile_prelude.rb (Prelude#initialize): ignore empty preludes. Modified files: trunk/ChangeLog trunk/tool/compile_prelude.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30547) +++ ChangeLog (revision 30548) @@ -1,5 +1,8 @@ -Sat Jan 15 09:48:14 2011 Nobuyoshi Nakada <nobu@r...> +Sat Jan 15 10:00:07 2011 Nobuyoshi Nakada <nobu@r...> + * tool/compile_prelude.rb (Prelude#initialize): ignore empty + preludes. + * ruby.c (ruby_init_prelude): get rid of global namespace pullution. Index: tool/compile_prelude.rb =================================================================== --- tool/compile_prelude.rb (revision 30547) +++ tool/compile_prelude.rb (revision 30548) @@ -36,6 +36,7 @@ @need_ruby_prefix = false @preludes = {} @mains = preludes.map {|filename| translate(filename)[0]} + @preludes.delete_if {|_, (_, _, lines, sub)| !sub && lines.empty?} end def translate(filename, sub = false) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/