ruby/rubygems · error · Gem::CommandLineError
Invalid email address #{email}
Error message
Invalid email address #{email} What it means
Error "Invalid email address #{email}" thrown in ruby/rubygems.
Source
Thrown at lib/rubygems/commands/cert_command.rb:138
options[:build].each do |email|
build email
end
if options[:resign]
re_sign_cert(
options[:issuer_cert],
options[:issuer_cert_file],
options[:key]
)
end
sign_certificates unless options[:sign].empty?
end
def build(email)
unless valid_email?(email)
raise Gem::CommandLineError, "Invalid email address #{email}"
end
key, key_path = build_key
cert_path = build_cert email, key
say "Certificate: #{cert_path}"
if key_path
say "Private Key: #{key_path}"
say "Don't forget to move the key file to somewhere private!"
end
end
def build_cert(email, key) # :nodoc:
expiration_length_days = options[:expiration_length_days] ||
Gem.configuration.cert_expiration_length_days
cert = Gem::Security.create_cert_email(View on GitHub (pinned to 86cbb817a3)
When it happens
Trigger: Thrown at lib/rubygems/commands/cert_command.rb:138 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/dde64d743affc710.
Report an issue: GitHub.