Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem.ensure_default_gem_subdirectories
(?::String dir, ?::Integer | ::String mode) -> ::Array[::String]
ensure_default_gem_subdirectories(dir = Gem.dir, mode = nil)
lib/rubygems.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems.rb, line 441
def self.ensure_default_gem_subdirectories(dir = Gem.dir, mode = nil)
ensure_subdirectories(dir, mode, REPOSITORY_DEFAULT_GEM_SUBDIRECTORIES)
end
Quietly ensure the Gem directory dir contains all the proper subdirectories for handling default gems. If we can’t create a directory due to a permission problem, then we will silently continue.
If mode is given, missing directories are created with this mode.
World-writable directories will never be created.
See also
.dynamic_library_suffixes
.ensure_gem_subdirectories
.done_installing
.env_requirement
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0