diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-07-09 14:48:40 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-07-09 14:48:40 +0900 |
commit | c016c325b975da76c58be99cb4af7bd0be36a4f4 (patch) | |
tree | eaf8106f31824b7246853407bc1bc0a9290bf6dc | |
parent | 757664c0048a53f65724e76319449680e124d2bc (diff) | |
download | bundler-c016c325b975da76c58be99cb4af7bd0be36a4f4.tar.gz |
Change deprecation from `bundle list` to `bundle show`
-rw-r--r-- | lib/bundler/cli.rb | 4 | ||||
-rw-r--r-- | man/bundle.ronn | 2 | ||||
-rw-r--r-- | spec/other/major_deprecation_spec.rb | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 786e24b2de..7992540793 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -245,11 +245,11 @@ module Bundler method_option "outdated", :type => :boolean, :banner => "Show verbose output including whether gems are outdated." def show(gem_name = nil) - Bundler::SharedHelpers.major_deprecation("use `bundle show` instead of `bundle list`") if ARGV[0] == "list" + Bundler::SharedHelpers.major_deprecation("use `bundle list` instead of `bundle show`") if ARGV[0] == "show" require "bundler/cli/show" Show.new(options, gem_name).run end - # TODO: 2.0 remove `bundle list` + # TODO: 2.0 remove `bundle show` map %w[list] => "show" desc "info GEM [OPTIONS]", "Show information for the given gem" diff --git a/man/bundle.ronn b/man/bundle.ronn index c0726c9dcd..7df59d66a9 100644 --- a/man/bundle.ronn +++ b/man/bundle.ronn @@ -102,4 +102,4 @@ and execute it, passing down any extra arguments to it. These commands are obsolete and should no longer be used * `bundle cache(1)` -* `bundle list(1)` +* `bundle show(1)` diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb index d79a9b6392..dada1db317 100644 --- a/spec/other/major_deprecation_spec.rb +++ b/spec/other/major_deprecation_spec.rb @@ -253,18 +253,18 @@ The :bitbucket git source is deprecated, and will be removed in Bundler 2.0. Add end end - context "bundle list" do + context "bundle show" do it "prints a deprecation warning" do install_gemfile! <<-G source "file://#{gem_repo1}" gem "rack" G - bundle! :list + bundle! :show warnings.gsub!(/gems included.*?\[DEPRECATED/im, "[DEPRECATED") - expect(warnings).to have_major_deprecation("use `bundle show` instead of `bundle list`") + expect(warnings).to have_major_deprecation("use `bundle list` instead of `bundle show`") end end |