aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-07-13 08:36:33 +0900
committerHomu <homu@barosl.com>2016-07-13 08:36:33 +0900
commitce40e1f365d9ea69d6e9e0290c4ddfd57a59d934 (patch)
treecd326c443dd9036b9b07c9e43e8ae289cae1a0c2 /lib/bundler/cli
parentd794552dd915da6e3b503da0fe20cb2d49b2578f (diff)
parentf94755cb4b0524c6225b31b133c5c93193f3a523 (diff)
downloadbundler-ce40e1f365d9ea69d6e9e0290c4ddfd57a59d934.tar.gz
Auto merge of #4741 - bundler:seg-1-99-rebase, r=indirect
Re-integrate 1-99-dev into master @indirect please make sure I didn't miss anything here?
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r--lib/bundler/cli/console.rb3
-rw-r--r--lib/bundler/cli/install.rb5
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/cli/console.rb b/lib/bundler/cli/console.rb
index 5e72cdbf..715abf25 100644
--- a/lib/bundler/cli/console.rb
+++ b/lib/bundler/cli/console.rb
@@ -8,6 +8,9 @@ module Bundler
end
def run
+ Bundler::SharedHelpers.major_deprecation "bundle console will be replaced " \
+ "by `bin/console` generated by `bundle gem <name>`"
+
group ? Bundler.require(:default, *(group.split.map!(&:to_sym))) : Bundler.require
ARGV.clear
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index 07950c90..2dee4a5a 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -55,6 +55,11 @@ module Bundler
Bundler::Fetcher.disable_endpoint = options["full-index"]
+ if options["binstubs"]
+ Bundler::SharedHelpers.major_deprecation \
+ "the --binstubs option will be removed in favor of `bundle binstubs`"
+ end
+
# rubygems plugins sometimes hook into the gem install process
Gem.load_env_plugins if Gem.respond_to?(:load_env_plugins)