summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-06-04 16:55:48 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-06-04 18:30:39 +0900
commit8ff5458c2edce15602b0f578d44c3118d9f8a035 (patch)
tree95ef642904ba46fb392a059ea428c8ba5d8d44f4 /lib
parentf365bef0c78085b7db9b6736ae59c1657baa79a3 (diff)
EXACT list is mostly same as SINCE list on bundled gems.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb19
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index 7b01f58029..01c6408d6d 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -33,22 +33,7 @@ module Gem::BUNDLED_GEMS
}.freeze
EXACT = {
- "abbrev" => true,
- "base64" => true,
- "bigdecimal" => true,
- "csv" => true,
- "drb" => true,
- "getoptlong" => true,
- "mutex_m" => true,
- "nkf" => true, "kconv" => "nkf",
- "observer" => true,
- "resolv-replace" => true,
- "rinda" => true,
- "syslog" => true,
- "ostruct" => true,
- "pstore" => true,
- "rdoc" => true,
- "win32ole" => true,
+ "kconv" => "nkf",
}.freeze
PREFIXED = {
@@ -99,7 +84,7 @@ module Gem::BUNDLED_GEMS
else
return
end
- EXACT[n] or PREFIXED[n = n[%r[\A[^/]+(?=/)]]] && n
+ (EXACT[n] || !!SINCE[n]) or PREFIXED[n = n[%r[\A[^/]+(?=/)]]] && n
end
def self.warning?(name, specs: nil)