aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-12-18 16:41:09 -0800
committerAndre Arko <andre@arko.net>2013-12-18 22:30:26 -0800
commit88d49f25bc0f5794ca28c51f33868e27d395d926 (patch)
treec3b00fce65b4200a1f8d2ad181a2bd780decee3b /Rakefile
parent53dc2e239a539c07ade5a197564076c6513a3684 (diff)
downloadbundler-88d49f25bc0f5794ca28c51f33868e27d395d926.tar.gz
simplify the certs manager
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Rakefile b/Rakefile
index 64ea17d1..0d469613 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,7 +3,8 @@ $:.unshift File.expand_path("../lib", __FILE__)
require 'rubygems'
require 'shellwords'
require 'benchmark'
-require 'bundler/ssl_certs/certificate_manager'
+
+RUBYGEMS_REPO = "tmp/rubygems"
def safe_task(&block)
yield
@@ -110,7 +111,7 @@ begin
end
hash = nil
- Dir.chdir("tmp/rubygems") do
+ Dir.chdir(RUBYGEMS_REPO) do
system("git remote update")
if rg == "master"
system("git checkout origin/master")
@@ -219,15 +220,14 @@ rescue LoadError
end
end
+desc "Update vendored SSL certs to match the certs vendored by Rubygems"
+task :update_certs => "spec:rubygems:clone_rubygems_master" do
+ require 'bundler/ssl_certs/certificate_manager'
+ CertificateManager.update_from!(RUBYGEMS_REPO)
+end
+
require 'bundler/gem_tasks'
task :build => ["man:clean", "man:build"]
task :release => ["man:clean", "man:build"]
task :default => :spec
-
-namespace :rubygems do
- desc "Update bundler certificates to match those from rubygems"
- task :update_certs => "spec:rubygems:clone_rubygems_master" do
- CertificateManager.new.update!
- end
-end