summaryrefslogtreecommitdiffstats
path: root/ext/purelib.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-28 09:10:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-28 09:10:50 +0000
commit9a9a7c364ec3e808617d54a2c339c8b62be56384 (patch)
tree28a7f2854f4298bc11b3c6211426fe71ed6e4b25 /ext/purelib.rb
parentdd2769f206ce5b0a3ea3382e99ce3a8c9000005f (diff)
downloadruby-9a9a7c364ec3e808617d54a2c339c8b62be56384.tar.gz
ruby-9a9a7c364ec3e808617d54a2c339c8b62be56384.tar.xz
ruby-9a9a7c364ec3e808617d54a2c339c8b62be56384.zip
* ext/purelib.rb: get rid of recent feature. [ruby-dev:34864]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/purelib.rb')
-rw-r--r--ext/purelib.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/purelib.rb b/ext/purelib.rb
index 284254a8b..dbe514c34 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