mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/compile_prelude.rb: fix require path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a6569ad637
commit
cd2a49f3c7
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Feb 6 19:35:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* tool/compile_prelude.rb: fix require path.
|
||||||
|
|
||||||
Sat Feb 6 12:02:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Feb 6 12:02:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/delegate.rb (Delegator#method_missing),
|
* lib/delegate.rb (Delegator#method_missing),
|
||||||
|
|
|
@ -38,7 +38,7 @@ lines_list = preludes.map {|filename|
|
||||||
line.gsub!(/RbConfig::CONFIG\["(\w+)"\]/) {
|
line.gsub!(/RbConfig::CONFIG\["(\w+)"\]/) {
|
||||||
key = $1
|
key = $1
|
||||||
unless mkconf
|
unless mkconf
|
||||||
require 'rbconfig'
|
require './rbconfig'
|
||||||
mkconf = RbConfig::MAKEFILE_CONFIG.merge('prefix'=>'#{TMP_RUBY_PREFIX}')
|
mkconf = RbConfig::MAKEFILE_CONFIG.merge('prefix'=>'#{TMP_RUBY_PREFIX}')
|
||||||
setup_ruby_prefix = "TMP_RUBY_PREFIX = $:.reverse.find{|e|e!=\".\"}.sub(%r{(.*)/lib/.*}m, \"\\\\1\")\n"
|
setup_ruby_prefix = "TMP_RUBY_PREFIX = $:.reverse.find{|e|e!=\".\"}.sub(%r{(.*)/lib/.*}m, \"\\\\1\")\n"
|
||||||
teardown_ruby_prefix = 'Object.class_eval { remove_const "TMP_RUBY_PREFIX" }'
|
teardown_ruby_prefix = 'Object.class_eval { remove_const "TMP_RUBY_PREFIX" }'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue