summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-06-13 17:56:17 +0200
committergit <svn-admin@ruby-lang.org>2024-06-14 08:02:38 +0000
commit62fc473224eb8da96206badbc2496dd5ec38935d (patch)
treedbe39a0cee8507e91dfc9d601de8e92ef0737a65 /lib
parent7767b60ff2f02a600f0b1fe5f438639fea6ac7b7 (diff)
[rubygems/rubygems] Never remove executables that may belong to a default gem
https://github.com/rubygems/rubygems/commit/ed585f2fca
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/uninstaller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/uninstaller.rb b/lib/rubygems/uninstaller.rb
index 23791313c8..214ba53a88 100644
--- a/lib/rubygems/uninstaller.rb
+++ b/lib/rubygems/uninstaller.rb
@@ -178,7 +178,7 @@ class Gem::Uninstaller
# Removes installed executables and batch files (windows only) for +spec+.
def remove_executables(spec)
- return if spec.executables.empty?
+ return if spec.executables.empty? || default_spec_matches?(spec)
executables = spec.executables.clone