summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/Rakefile b/Rakefile
index 928fe9e38f..8142fbba3d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -235,18 +235,6 @@ begin
raise "Spec run failed, please review the log for more information"
end
end
-
- namespace :travis do
- task :sub_version do
- next unless version = ENV["BUNDLER_SPEC_SUB_VERSION"]
- version_file = File.expand_path("../lib/bundler/version.rb", __FILE__)
- contents = File.read(version_file)
- unless contents.sub!(/(^\s+VERSION\s*=\s*)"#{Gem::Version::VERSION_PATTERN}"/, %(\\1"#{version}"))
- abort("Failed to change bundler version")
- end
- File.open(version_file, "w") {|f| f << contents }
- end
- end
end
rescue LoadError
@@ -373,6 +361,16 @@ rescue LoadError
end
end
+task :override_version do
+ next unless version = ENV["BUNDLER_SPEC_SUB_VERSION"]
+ version_file = File.expand_path("../lib/bundler/version.rb", __FILE__)
+ contents = File.read(version_file)
+ unless contents.sub!(/(^\s+VERSION\s*=\s*)"#{Gem::Version::VERSION_PATTERN}"/, %(\\1"#{version}"))
+ abort("Failed to change bundler version")
+ end
+ File.open(version_file, "w") {|f| f << contents }
+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"