{"record":{"id":"dde64d743affc710","repo":"ruby/rubygems","slug":"invalid-email-address-email","errorCode":null,"errorMessage":"Invalid email address #{email}","messagePattern":"Invalid email address #(.+?)","errorType":"exception","errorClass":"Gem::CommandLineError","httpStatus":null,"severity":"error","filePath":"lib/rubygems/commands/cert_command.rb","lineNumber":138,"sourceCode":"\n    options[:build].each do |email|\n      build email\n    end\n\n    if options[:resign]\n      re_sign_cert(\n        options[:issuer_cert],\n        options[:issuer_cert_file],\n        options[:key]\n      )\n    end\n\n    sign_certificates unless options[:sign].empty?\n  end\n\n  def build(email)\n    unless valid_email?(email)\n      raise Gem::CommandLineError, \"Invalid email address #{email}\"\n    end\n\n    key, key_path = build_key\n    cert_path = build_cert email, key\n\n    say \"Certificate: #{cert_path}\"\n\n    if key_path\n      say \"Private Key: #{key_path}\"\n      say \"Don't forget to move the key file to somewhere private!\"\n    end\n  end\n\n  def build_cert(email, key) # :nodoc:\n    expiration_length_days = options[:expiration_length_days] ||\n                             Gem.configuration.cert_expiration_length_days\n\n    cert = Gem::Security.create_cert_email(","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/commands/cert_command.rb#L120-L156","documentation":"Error \"Invalid email address #{email}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/commands/cert_command.rb:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}