mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* instruby.rb: easy code contains fewer bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
80618e75aa
commit
6645606d41
1 changed files with 5 additions and 3 deletions
|
@ -410,9 +410,11 @@ end
|
|||
install?(:local, :comm, :gem) do
|
||||
puts "creating default gem directories"
|
||||
|
||||
directories = open(File.join(srcdir, "lib/rubygems.rb")) do |f|
|
||||
if f.grep(/^\s*DIRECTORIES\s*=\s*%w\[(.*?)\]/)
|
||||
break $1.split
|
||||
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/')
|
||||
|
|
Loading…
Reference in a new issue