* tool/rbinstall.rb (gem): fix for rubygems change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-06-01 06:40:55 +00:00
Родитель f964813967
Коммит 19a8b5cbdc
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Wed Jun 1 15:40:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/rbinstall.rb (gem): fix for rubygems change.
Wed Jun 1 14:07:57 2011 Ryan Davis <ryand-ruby@zenspider.com> Wed Jun 1 14:07:57 2011 Ryan Davis <ryand-ruby@zenspider.com>
* lib/minitest/*: MOSTLY Imported minitest 2.2.1 (r6277)... One * lib/minitest/*: MOSTLY Imported minitest 2.2.1 (r6277)... One

Просмотреть файл

@ -532,14 +532,10 @@ install?(:local, :comm, :man) do
end end
install?(:ext, :comm, :gem) do install?(:ext, :comm, :gem) do
directories = [] $:.unshift(File.join(srcdir, "lib"))
IO.foreach(File.join(srcdir, "lib/rubygems.rb")) do |line| require("rubygems.rb")
if /^\s*DIRECTORIES\s*=\s*%w\[(.*?)\]/ =~ line gpath = Gem.default_dir
directories = $1.split directories = Gem.ensure_gem_subdirectories(gpath)
break
end
end
gpath = CONFIG["sitelibdir"].sub(%r'/site_ruby/(?=[^/]+)', '/gems/')
prepare "default gems", gpath, directories prepare "default gems", gpath, directories
destdir = File.join(gpath, directories.grep(/^spec/)[0]) destdir = File.join(gpath, directories.grep(/^spec/)[0])