diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2023-03-14 15:27:15 +0100 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-17 18:50:55 +0900 |
| commit | dd0f0a5e6eb10bfa0641a3ce5d4e6374df493adb (patch) | |
| tree | d0fca6126fe06582ce93fdb3570fce99a59f8718 /lib | |
| parent | 123bedd295b584369955461ff452ca1ec005e7dd (diff) | |
[rubygems/rubygems] Fix `gem uninstall` with `--install-dir`
https://github.com/rubygems/rubygems/commit/ac23687353
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems/commands/uninstall_command.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/commands/uninstall_command.rb b/lib/rubygems/commands/uninstall_command.rb index 3c520826e5..29f6013c59 100644 --- a/lib/rubygems/commands/uninstall_command.rb +++ b/lib/rubygems/commands/uninstall_command.rb @@ -125,6 +125,9 @@ that is a dependency of an existing gem. You can use the def execute check_version + # Consider only gem specifications installed at `--install-dir` + Gem::Specification.dirs = options[:install_dir] if options[:install_dir] + if options[:all] && !options[:args].empty? uninstall_specific elsif options[:all] |
