mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
f964813967
commit
19a8b5cbdc
2 changed files with 8 additions and 8 deletions
|
@ -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>
|
||||
|
||||
* lib/minitest/*: MOSTLY Imported minitest 2.2.1 (r6277)... One
|
||||
|
|
|
@ -532,14 +532,10 @@ install?(:local, :comm, :man) do
|
|||
end
|
||||
|
||||
install?(:ext, :comm, :gem) do
|
||||
directories = []
|
||||
IO.foreach(File.join(srcdir, "lib/rubygems.rb")) do |line|
|
||||
if /^\s*DIRECTORIES\s*=\s*%w\[(.*?)\]/ =~ line
|
||||
directories = $1.split
|
||||
break
|
||||
end
|
||||
end
|
||||
gpath = CONFIG["sitelibdir"].sub(%r'/site_ruby/(?=[^/]+)', '/gems/')
|
||||
$:.unshift(File.join(srcdir, "lib"))
|
||||
require("rubygems.rb")
|
||||
gpath = Gem.default_dir
|
||||
directories = Gem.ensure_gem_subdirectories(gpath)
|
||||
prepare "default gems", gpath, directories
|
||||
|
||||
destdir = File.join(gpath, directories.grep(/^spec/)[0])
|
||||
|
|
Loading…
Reference in a new issue