Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Commands::ExecCommand#install_if_needed
install_if_needed
lib/rubygems/commands/exec_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/commands/exec_command.rb, line 137
def install_if_needed
activate!
rescue Gem::MissingSpecError
verbose "#{Gem::Dependency.new(options[:gem_name], options[:version])} not available locally, installing from remote"
install
activate!
end
No documentation available