diff options
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -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" |