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_gem
build_gem(gem_name, 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 189
def build_gem(gem_name, source_date_epoch, output_file)
gemspec = options[:gemspec_file] || find_gemspec("#{gem_name}.gemspec")
if gemspec
build_package(gemspec, source_date_epoch, output_file)
else
alert_error error_message(gem_name)
terminate_interaction(1)
end
end
No documentation available