End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Installer#pre_install_checks
pre_install_checks
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/installer.rb, line 895
def pre_install_checks
verify_gem_home
# The name and require_paths must be verified first, since it could contain
# ruby code that would be eval'ed in #ensure_loadable_spec
verify_spec
ensure_loadable_spec
if options[:install_as_default]
Gem.ensure_default_gem_subdirectories gem_home
else
Gem.ensure_gem_subdirectories gem_home
end
return true if @force
ensure_dependencies_met unless @ignore_dependencies
true
end
Performs various checks before installing the gem such as the install repository is writable and its directories exist, required Ruby and rubygems versions are met and that dependencies are installed.
Version and dependency checks are skipped if this install is forced.
The dependent check will be skipped if the install is ignoring dependencies.
See also
#installed_specs
#shebang
#installation_satisfies_dependency?
#spec
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1