[rubygems/rubygems] Simplify remembered flags deprecation message

Configuration is now local by default.

https://github.com/rubygems/rubygems/commit/6bc7709aa8
This commit is contained in:
David Rodríguez 2023-11-23 22:53:35 +01:00 committed by Hiroshi SHIBATA
parent 60803e192e
commit bd4bd61650
2 changed files with 4 additions and 4 deletions

View File

@ -888,7 +888,7 @@ module Bundler
Bundler::SharedHelpers.major_deprecation 2,
"The `#{flag_name}` flag is deprecated because it relies on being " \
"remembered across bundler invocations, which bundler will no longer " \
"do in future versions. Instead please use `bundle config set --local #{name.tr("-", "_")} " \
"do in future versions. Instead please use `bundle config set #{name.tr("-", "_")} " \
"'#{value}'`, and stop using this flag"
end
end

View File

@ -125,7 +125,7 @@ RSpec.describe "major deprecations" do
expect(deprecations).to include(
"The `--path` flag is deprecated because it relies on being " \
"remembered across bundler invocations, which bundler will no " \
"longer do in future versions. Instead please use `bundle config set --local " \
"longer do in future versions. Instead please use `bundle config set " \
"path 'vendor/bundle'`, and stop using this flag"
)
end
@ -147,7 +147,7 @@ RSpec.describe "major deprecations" do
expect(deprecations).to include(
"The `--path` flag is deprecated because it relies on being " \
"remembered across bundler invocations, which bundler will no " \
"longer do in future versions. Instead please use `bundle config set --local " \
"longer do in future versions. Instead please use `bundle config set " \
"path 'vendor/bundle'`, and stop using this flag"
)
end
@ -395,7 +395,7 @@ RSpec.describe "major deprecations" do
"The `#{flag_name}` flag is deprecated because it relies on " \
"being remembered across bundler invocations, which bundler " \
"will no longer do in future versions. Instead please use " \
"`bundle config set --local #{option_name} '#{value}'`, and stop using this flag"
"`bundle config set #{option_name} '#{value}'`, and stop using this flag"
)
end