Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Installer.for_spec
for_spec(spec, options = {})
lib/rubygems/installer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/installer.rb, line 143
def self.for_spec(spec, options = {})
# FIXME: we should have a real Package class for this
new FakePackage.new(spec), options
end
Construct an installer object for an ephemeral gem (one where we don’t actually have a .gem file, just a spec)