From 46766e922b46cb3bdc42fa0b2052265c2f6c2a65 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 18 Oct 2023 12:26:02 +0900 Subject: normalize gem name without .so or .bundle --- lib/bundled_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index 6ca5de75ab..1ce2ff9a42 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -69,7 +69,7 @@ module Gem::BUNDLED_GEMS end def self.warning?(name, specs: nil) - return if specs.to_a.map(&:name).include?(name) + return if specs.to_a.map(&:name).include?(name.sub(LIBEXT, "")) name = name.tr("/", "-") _t, path = $:.resolve_feature_path(name) return unless gem = find_gem(path) -- cgit v1.2.3