diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-28 09:10:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-28 09:10:50 +0000 |
commit | e2db8af8a3c3968466a4d6c66db08ab342274b75 (patch) | |
tree | 28a7f2854f4298bc11b3c6211426fe71ed6e4b25 /ext | |
parent | a9396fd580a40ab02d50b65fe38c7d4c35ebe3cd (diff) | |
download | ruby-e2db8af8a3c3968466a4d6c66db08ab342274b75.tar.gz |
* ext/purelib.rb: get rid of recent feature. [ruby-dev:34864]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/purelib.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/purelib.rb b/ext/purelib.rb index 284254a8b4..dbe514c34a 100644 --- a/ext/purelib.rb +++ b/ext/purelib.rb @@ -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 |