Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Commands::PushCommand#load_attestation
load_attestation(file)
lib/rubygems/commands/push_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/commands/push_command.rb, line 210
def load_attestation(file)
data = begin
Gem.read_binary(file)
rescue SystemCallError, IOError, ArgumentError => e
raise Gem::Exception, "Failed to read attestation #{file}: #{e.message}"
end
validate_attestation_json(data, file)
end
No documentation available