ruby-changes:69841
From: David <ko1@a...>
Date: Mon, 22 Nov 2021 09:29:28 +0900 (JST)
Subject: [ruby-changes:69841] 997adfd410 (master): [rubygems/rubygems] Clarify `bundle viz` deprecation
https://git.ruby-lang.org/ruby.git/commit/?id=997adfd410 From 997adfd4104599de1fa99bf62ea78b5e85189441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sat, 20 Nov 2021 01:15:11 +0100 Subject: [rubygems/rubygems] Clarify `bundle viz` deprecation https://github.com/rubygems/rubygems/commit/7f22fe56b3 --- lib/bundler/cli.rb | 2 +- spec/bundler/other/major_deprecation_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 02c2d19c83f..f1785609380 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -552,7 +552,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli.rb#L552 method_option :version, :type => :boolean, :default => false, :aliases => "-v", :desc => "Set to show each gem version." method_option :without, :type => :array, :default => [], :aliases => "-W", :banner => "GROUP[ GROUP...]", :desc => "Exclude gems that are part of the specified named group." def viz - SharedHelpers.major_deprecation 2, "The `viz` command has been moved to the `bundle-viz` gem, see https://github.com/rubygems/bundler-graph" + SharedHelpers.major_deprecation 2, "The `viz` command has been renamed to `graph` and moved to a plugin. See https://github.com/rubygems/bundler-graph" require_relative "cli/viz" Viz.new(options.dup).run end diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb index d59f64662dd..b228027c03f 100644 --- a/spec/bundler/other/major_deprecation_spec.rb +++ b/spec/bundler/other/major_deprecation_spec.rb @@ -665,7 +665,7 @@ The :gist git source is deprecated, and will be removed in the future. Add this https://github.com/ruby/ruby/blob/trunk/spec/bundler/other/major_deprecation_spec.rb#L665 end it "prints a deprecation warning", :bundler => "< 3" do - expect(deprecations).to include "The `viz` command has been moved to the `bundle-viz` gem, see https://github.com/rubygems/bundler-graph" + expect(deprecations).to include "The `viz` command has been renamed to `graph` and moved to a plugin. See https://github.com/rubygems/bundler-graph" end pending "fails with a helpful message", :bundler => "3" -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/