diff options
author | Andre Arko <andre@arko.net> | 2014-11-10 16:46:19 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2014-11-10 16:47:08 -0800 |
commit | dc55c6471f3e425ba7a9e52ec285526fca5a812a (patch) | |
tree | 82a0f57ce19ca7c24a84381e757b764ec60ae343 | |
parent | 45b80e02783b2a5243ce75b9ab75c55839632f08 (diff) | |
download | bundler-dc55c6471f3e425ba7a9e52ec285526fca5a812a.tar.gz |
allow more certs than Rubygems has
-rw-r--r-- | lib/bundler/ssl_certs/certificate_manager.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/ssl_certs/certificate_manager.rb b/lib/bundler/ssl_certs/certificate_manager.rb index dea184dd..1f6a7b09 100644 --- a/lib/bundler/ssl_certs/certificate_manager.rb +++ b/lib/bundler/ssl_certs/certificate_manager.rb @@ -18,8 +18,10 @@ module Bundler end def up_to_date? - bundler_certs.zip(rubygems_certs).all? do |bc, rc| - File.basename(bc) == File.basename(rc) && FileUtils.compare_file(bc, rc) + rubygems_certs.all? do |rc| + bundler_certs.find do |bc| + File.basename(bc) == File.basename(rc) && FileUtils.compare_file(bc, rc) + end end end |