From c3ae4b6ae12546a1b5adb33f8789a7bddd4739f1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 15 Dec 2023 14:06:48 +0800 Subject: [PATCH] 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. --- lib/bundled_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index fe88cb3bafdac4..f0e114138a381b 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -85,7 +85,7 @@ def self.find_gem(path) 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)