ruby/ruby · error · Gem::Security::Exception

old format gems do not contain signatures and cannot be veri

Error message

old format gems do not contain signatures and cannot be verified

What it means

Error "old format gems do not contain signatures and cannot be verified" thrown in ruby/ruby.

Source

Thrown at lib/rubygems/package/old.rb:168

    end

    begin
      @spec = Gem::Specification.from_yaml yaml
    rescue Psych::SyntaxError
      raise Gem::Exception, "Failed to parse gem specification out of gem file"
    end
  rescue ArgumentError
    raise Gem::Exception, "Failed to parse gem specification out of gem file"
  end

  ##
  # Raises an exception if a security policy that verifies data is active.
  # Old format gems cannot be verified as signed.

  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
end

View on GitHub (pinned to 0e5b888e1c)

When it happens

Trigger: Thrown at lib/rubygems/package/old.rb:168 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruby/ruby@0e5b888e1c (2026-08-21). Data as JSON: /api/errors/98958a9f4c24b952. Report an issue: GitHub.