diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 05:11:55 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 05:11:55 +0000 |
commit | f20ad4889d5c7af44581373d25fd326ce796c4b3 (patch) | |
tree | b7bf99329ed8c29768f2502d3bd418e57be32268 /lib/rubygems/security | |
parent | 513345607da396f33b862dc2a48135e8a14bad99 (diff) | |
download | ruby-f20ad4889d5c7af44581373d25fd326ce796c4b3.tar.gz |
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems
HEAD(2c6d256). It contains to update vendored Molinillo to 0.5.0.
https://github.com/rubygems/rubygems/pull/1638
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/security')
-rw-r--r-- | lib/rubygems/security/signer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/security/signer.rb b/lib/rubygems/security/signer.rb index 1c9d9b7d3b..0c6ef60a9a 100644 --- a/lib/rubygems/security/signer.rb +++ b/lib/rubygems/security/signer.rb @@ -102,6 +102,8 @@ class Gem::Security::Signer def sign data return unless @key + raise Gem::Security::Exception, 'no certs provided' if @cert_chain.empty? + if @cert_chain.length == 1 and @cert_chain.last.not_after < Time.now then re_sign_key end |