summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-12-02 11:39:29 +0900
committergit <svn-admin@ruby-lang.org>2025-12-02 03:39:58 +0000
commit7df97983be41e893afee6d0012c6dced55ff98f8 (patch)
treed01a0a79df6f1b8e7a6d507ecc6d05d743674ac9
parente2d176556e36ae7911af3ff6163420a48b82af92 (diff)
[ruby/rubygems] Improve banner message for the default command.
Co-authored-by: Benoit Daloze <eregontp@gmail.com> https://github.com/ruby/rubygems/commit/463488b439 Co-authored-by: Patrik Ragnarsson <patrik@starkast.net>
-rw-r--r--lib/bundler/cli.rb6
-rw-r--r--spec/bundler/bundler/cli_spec.rb4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index f5977863dd..9c29751a7c 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -133,10 +133,10 @@ module Bundler
unless Bundler.settings[:default_cli_command]
Bundler.ui.info <<-MSG
- In the feature version of Bundler, running `bundle` without argument will no longer run `bundle install`.
+ In a future version of Bundler, running `bundle` without argument will no longer run `bundle install`.
Instead, the `cli_help` command will be displayed. Please use `bundle install` explicitly for scripts like CI/CD.
- If you wish to use feature behavior now with `bundle config set default_cli_command cli_help --global`
- or you can continue to use the old behavior with `bundle config set default_cli_command install_or_cli_help --global`.
+ You can use the future behavior now with `bundle config set default_cli_command cli_help --global`,
+ or you can continue to use the current behavior with `bundle config set default_cli_command install_or_cli_help --global`.
This message will be removed after a default_cli_command value is set.
MSG
end
diff --git a/spec/bundler/bundler/cli_spec.rb b/spec/bundler/bundler/cli_spec.rb
index ac6b77ad74..4503cea6a0 100644
--- a/spec/bundler/bundler/cli_spec.rb
+++ b/spec/bundler/bundler/cli_spec.rb
@@ -90,7 +90,7 @@ RSpec.describe "bundle executable" do
it "tries to installs by default but print help on missing Gemfile" do
bundle "", raise_on_error: false
expect(err).to include("Could not locate Gemfile")
- expect(out).to include("In the feature version of Bundler")
+ expect(out).to include("In a future version of Bundler")
expect(out).to include("Bundler version #{Bundler::VERSION}").
and include("\n\nBundler commands:\n\n").
@@ -102,7 +102,7 @@ RSpec.describe "bundle executable" do
it "runs bundle install when default_cli_command set to install" do
bundle "config set default_cli_command install_or_cli_help"
bundle "", raise_on_error: false
- expect(out).to_not include("In the feature version of Bundler")
+ expect(out).to_not include("In a future version of Bundler")
expect(err).to include("Could not locate Gemfile")
end
end