summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-15 14:06:48 +0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-15 14:06:53 +0800
commitc3ae4b6ae12546a1b5adb33f8789a7bddd4739f1 (patch)
treeda1d095d6b18ea2eec5c763622fa6136f397bf1a /lib
parent202c608248a63979b1f43e9b7970a259d3d5e726 (diff)
Revert "[Bug #20060] Properly return matched gem name in case of EXACT"
This reverts commit 75c40802cb06d83fc2c3d0eca6d904fa41307230. This change is now working correctly with warning cases.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index fe88cb3baf..f0e114138a 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -85,7 +85,7 @@ module Gem::BUNDLED_GEMS
else
return
end
- (EXACT[n] or PREFIXED[n = n[%r[\A[^/]+(?=/)]]]) && n
+ EXACT[n] or PREFIXED[n = n[%r[\A[^/]+(?=/)]]] && n
end
def self.warning?(name, specs: nil)