Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Package::Old#verify
verify
lib/rubygems/package/old.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/package/old.rb, line 165
def verify
return true unless @security_policy
raise Gem::Security::Exception,
"old format gems do not contain signatures and cannot be verified" if
@security_policy.verify_data
true
end
Raises an exception if a security policy that verifies data is active. Old format gems cannot be verified as signed.