ruby-changes:5179
From: nobu <ko1@a...>
Date: Wed, 28 May 2008 18:11:01 +0900 (JST)
Subject: [ruby-changes:5179] Ruby:r16674 (ruby_1_8, trunk): * ext/purelib.rb: get rid of recent feature.
nobu 2008-05-28 18:10:50 +0900 (Wed, 28 May 2008) New Revision: 16674 Modified files: branches/ruby_1_8/ext/purelib.rb trunk/ext/purelib.rb Log: * ext/purelib.rb: get rid of recent feature. [ruby-dev:34864] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/purelib.rb?r1=16674&r2=16673&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/purelib.rb?r1=16674&r2=16673&diff_format=u Index: ext/purelib.rb =================================================================== --- ext/purelib.rb (revision 16673) +++ ext/purelib.rb (revision 16674) @@ -1,3 +1,10 @@ -if nul = $:.find_index {|path| /\A(?:\.\/)*-\z/ =~ path} +nul = nil +$:.each_with_index {|path, index| + if /\A(?:\.\/)*-\z/ =~ path + nul = index + break + end +} +if nul $:[nul..-1] = ["."] end Index: ruby_1_8/ext/purelib.rb =================================================================== --- ruby_1_8/ext/purelib.rb (revision 16673) +++ ruby_1_8/ext/purelib.rb (revision 16674) @@ -1,3 +1,10 @@ -if nul = $:.find_index {|path| /\A(?:\.\/)*-\z/ =~ path} +nul = nil +$:.each_with_index {|path, index| + if /\A(?:\.\/)*-\z/ =~ path + nul = index + break + end +} +if nul $:[nul..-1] = ["."] end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/