diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-08 07:41:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-08 07:41:23 +0000 |
commit | f3ad9bf9b3009ef1ac13222adc0aba5d7c156876 (patch) | |
tree | f8bceb77b9bde9399608216e4b23c6721dd8f04b /ext/purelib.rb | |
parent | 714cd205ccaf326abc1b275923dccaa58cfec6c3 (diff) | |
download | ruby-f3ad9bf9b3009ef1ac13222adc0aba5d7c156876.tar.gz |
* 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
Diffstat (limited to 'ext/purelib.rb')
-rw-r--r-- | ext/purelib.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |