Skip to content

Commit

Permalink
[rubygems/rubygems] Fix advice in bundle install --system deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Nov 27, 2023
1 parent e00d7b6 commit 56ac1b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/bundler/cli.rb
Expand Up @@ -250,10 +250,12 @@ def remove(*gems)
def install
SharedHelpers.major_deprecation(2, "The `--force` option has been renamed to `--redownload`") if ARGV.include?("--force")

%w[clean deployment frozen no-prune path shebang system without with].each do |option|
%w[clean deployment frozen no-prune path shebang without with].each do |option|
remembered_flag_deprecation(option)
end

print_remembered_flag_deprecation("--system", "path.system", "true") if ARGV.include?("--system")

remembered_negative_flag_deprecation("no-deployment")

require_relative "cli/install"
Expand Down
2 changes: 1 addition & 1 deletion spec/bundler/other/major_deprecation_spec.rb
Expand Up @@ -377,7 +377,7 @@
"no-prune" => ["no_prune", "true"],
"path" => ["path", "'vendor/bundle'"],
"shebang" => ["shebang", "'ruby27'"],
"system" => ["system", "true"],
"system" => ["path.system", "true"],
"without" => ["without", "'development'"],
"with" => ["with", "'development'"],
}.each do |name, expectations|
Expand Down

0 comments on commit 56ac1b0

Please sign in to comment.