diff options
author | The Bundler Bot <bot@bundler.io> | 2017-07-26 20:46:17 +0000 |
---|---|---|
committer | The Bundler Bot <bot@bundler.io> | 2017-07-26 20:46:17 +0000 |
commit | 92f7781eda8e429a189c1d2ebc642ec4f8febdbf (patch) | |
tree | 102d0581de53a71f9dd1ce9129bf20b7e9c0413e | |
parent | a77bb6a39a7a96f3695a42ff18b3925b9b8aea3f (diff) | |
parent | 8bfb5ebc524e199ea0b0fce178d486213fae58cc (diff) | |
download | bundler-92f7781eda8e429a189c1d2ebc642ec4f8febdbf.tar.gz |
Auto merge of #5901 - bundler:seg-bundler-2-tasks, r=indirect
Add tasks to make running in 2.0 mode easier
### What was the end-user problem that led to this PR?
The problem was it was too difficult to run Bundler in 2.0 mode.
### What was your diagnosis of the problem?
My diagnosis was we needed a way to install a dev version of 2.0, and also to run commands as bundler 2.
### What is your fix for the problem, implemented in this PR?
My fix adds a `bin/bundle2` bin stub that runs bundler as 2.0.0.dev, and a `bundle_2:install` rake task that will install `bundler-2.0.0.dev`
-rwxr-xr-x | bin/bundle2 | 8 | ||||
-rw-r--r-- | task/bundler_2.rake | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/bin/bundle2 b/bin/bundle2 new file mode 100755 index 0000000000..e8ab8c33c9 --- /dev/null +++ b/bin/bundle2 @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +module Bundler + VERSION = "2.0.0.dev".freeze +end + +load File.expand_path("../bundle", __FILE__) diff --git a/task/bundler_2.rake b/task/bundler_2.rake new file mode 100644 index 0000000000..b76b63d85f --- /dev/null +++ b/task/bundler_2.rake @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +namespace :bundler_2 do + task :install do + ENV["BUNDLER_SPEC_SUB_VERSION"] = "2.0.0.dev" + Rake::Task["spec:travis:sub_version"].invoke + Rake::Task["install"].invoke + sh("git", "checkout", "--", "lib/bundler/version.rb") + end +end |