End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Package::Old#verify
verify
lib/rubygems/package/old.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/package/old.rb, line 159
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.