[rubygems/rubygems] Move default specifications dir definition out of BasicSpecification.

This was never the right place. The method got there just by evolution,
not by design. Move it within default methods, where it suits better.

Since this method is presumably used just internally, it should be safe
to deprecate it and remove later.

0c0dd9458a
This commit is contained in:
Vít Ondruch 2019-07-22 14:31:10 +02:00 committed by Hiroshi SHIBATA
parent d1806bd8da
commit a3b784b3a0
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
8 changed files with 27 additions and 13 deletions

View file

@ -382,7 +382,7 @@ By default, this RubyGems will install gem as:
end
def install_default_bundler_gem(bin_dir)
specs_dir = Gem::Specification.default_specifications_dir
specs_dir = Gem.default_specifications_dir
specs_dir = File.join(options[:destdir], specs_dir) unless Gem.win_platform?
mkdir_p specs_dir, :mode => 0755