Skip to content

Commit

Permalink
Revert "[Bug #20060] Properly return matched gem name in case of EXACT"
Browse files Browse the repository at this point in the history
  This reverts commit 75c4080.

  This change is now working correctly with warning cases.
  • Loading branch information
hsbt committed Dec 15, 2023
1 parent 202c608 commit c3ae4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundled_gems.rb
Expand Up @@ -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)
Expand Down

0 comments on commit c3ae4b6

Please sign in to comment.