1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Importing rubygems @ c2d4131: Deal with platforms that have DLEXT2 == nil. Fixes RF#28867

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ryan 2011-01-19 21:23:04 +00:00
parent df2762fb1a
commit 64847a9cfe
10 changed files with 274 additions and 91 deletions

View file

@ -20,7 +20,6 @@ end
Gem.load_yaml
require 'rubygems/package'
require 'rubygems/security'
##
# The Builder class processes RubyGem specification files
@ -73,6 +72,8 @@ EOM
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 }