diff options
author | Vít Ondruch <vondruch@redhat.com> | 2019-07-22 14:31:10 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-31 07:47:02 +0800 |
commit | a3b784b3a068ddd9a395b8951e9977035eca5066 (patch) | |
tree | 1f88477341eacd8c4b00ae4704441511cc79d2d2 /lib/rubygems/commands | |
parent | d1806bd8da963c597ccd8c0b63ceac4dbe3ff3ae (diff) | |
download | ruby-a3b784b3a068ddd9a395b8951e9977035eca5066.tar.gz |
[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.
https://github.com/rubygems/rubygems/commit/0c0dd9458a
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 1754630c8c..1cbc980eb0 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -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 |