mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems 2.0.3
* test/rubygems: Tests for the above. * NEWS: Added RubyGems 2.0.3 note. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0454c0a281
commit
091c24d51b
12 changed files with 62 additions and 26 deletions
|
@ -180,7 +180,7 @@ For further reading on signing gems see `ri Gem::Security`.
|
|||
end
|
||||
|
||||
def load_default_cert
|
||||
cert_file = File.join Gem.user_home, 'gem-public_cert.pem'
|
||||
cert_file = File.join Gem.default_cert_path
|
||||
cert = File.read cert_file
|
||||
options[:issuer_cert] = OpenSSL::X509::Certificate.new cert
|
||||
rescue Errno::ENOENT
|
||||
|
@ -196,7 +196,7 @@ For further reading on signing gems see `ri Gem::Security`.
|
|||
end
|
||||
|
||||
def load_default_key
|
||||
key_file = File.join Gem.user_home, 'gem-private_key.pem'
|
||||
key_file = File.join Gem.default_key_path
|
||||
key = File.read key_file
|
||||
options[:key] = OpenSSL::PKey::RSA.new key
|
||||
rescue Errno::ENOENT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue