diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-10-18 12:26:02 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-10-18 14:51:48 +0900 |
commit | 46766e922b46cb3bdc42fa0b2052265c2f6c2a65 (patch) | |
tree | f12c6d1319986fef4960f3e4930a9324107d188e | |
parent | 3b690b726df82f399023b26fdb7530fb9009acf5 (diff) | |
download | ruby-46766e922b46cb3bdc42fa0b2052265c2f6c2a65.tar.gz |
normalize gem name without .so or .bundle
-rw-r--r-- | lib/bundled_gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |