mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Ensure all default gems have an gem folder
Even if they don't ship with any executables. This makes rbinstall behaviour consistent with rubygems `gem install --default` command.
This commit is contained in:
parent
1c5a268239
commit
3b55394b07
Notes:
git
2019-08-31 04:40:14 +09:00
1 changed files with 5 additions and 1 deletions
|
@ -841,8 +841,12 @@ def install_default_gem(dir, srcdir)
|
|||
gemspec.to_ruby
|
||||
end
|
||||
|
||||
specific_gem_dir = File.join(gem_dir, 'gems', full_name)
|
||||
|
||||
makedirs(specific_gem_dir)
|
||||
|
||||
unless gemspec.executables.empty? then
|
||||
bin_dir = File.join(gem_dir, 'gems', full_name, gemspec.bindir)
|
||||
bin_dir = File.join(specific_gem_dir, gemspec.bindir)
|
||||
makedirs(bin_dir)
|
||||
|
||||
gemspec.executables.map {|exec|
|
||||
|
|
Loading…
Add table
Reference in a new issue