This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
sign()
private
If the signing key was specified, then load the file, and swap to the
public key (TODO: we should probably just omit the signing key in favor of
the signing certificate, but that’s for the future, also the signature
algorithm should be configurable)
# File lib/rubygems/builder.rb, line 61
def sign
signer = nil
if @spec.respond_to?(:signing_key) and @spec.signing_key then
require 'rubygems/security'
signer = Gem::Security::Signer.new @spec.signing_key, @spec.cert_chain
@spec.signing_key = nil
@spec.cert_chain = signer.cert_chain.map { |cert| cert.to_s }
end
signer
end