Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Commands::RebuildCommand#build_package
build_package(gemspec, source_date_epoch, output_file)
lib/rubygems/commands/rebuild_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/rebuild_command.rb, line 200
def build_package(gemspec, source_date_epoch, output_file)
with_source_date_epoch(source_date_epoch) do
spec = Gem::Specification.load(gemspec)
if spec
Gem::Package.build(
spec,
options[:force],
options[:strict],
output_file
)
else
alert_error "Error loading gemspec. Aborting."
terminate_interaction 1
end
end
end
No documentation available