From f3ad9bf9b3009ef1ac13222adc0aba5d7c156876 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 8 May 2008 07:41:23 +0000 Subject: * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb. [ruby-core:16642] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/purelib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/purelib.rb') diff --git a/ext/purelib.rb b/ext/purelib.rb index 10ee06176c..284254a8b4 100644 --- a/ext/purelib.rb +++ b/ext/purelib.rb @@ -1,3 +1,3 @@ -if nul = $:.index("-") +if nul = $:.find_index {|path| /\A(?:\.\/)*-\z/ =~ path} $:[nul..-1] = ["."] end -- cgit v1.2.3