diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-11-23 23:01:35 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-11-27 15:04:40 +0900 |
commit | fe57be5a2ea80655e1ece52518e3fe72058a0ad9 (patch) | |
tree | 9cc7a2e008c85fcf217ed270e2e8684350425085 /lib/bundler/cli.rb | |
parent | bd4bd61650403121dc1fc29fab850d048d851a55 (diff) |
[rubygems/rubygems] Avoid some unnecessary quotes in remember flag deprecation message
https://github.com/rubygems/rubygems/commit/3fd627e486
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 942f2984d4..adc228193b 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -884,12 +884,13 @@ module Bundler value = options[name] value = value.join(" ").to_s if option.type == :array + value = "'#{value}'" unless option.type == :boolean 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 #{name.tr("-", "_")} " \ - "'#{value}'`, and stop using this flag" + "#{value}`, and stop using this flag" end end end |