summaryrefslogtreecommitdiff
path: root/lib/bundled_gems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2025-01-23 17:29:03 +0900
committerHiroshi SHIBATA <[email protected]>2025-01-24 15:46:46 +0900
commit68095ffc1668c32d201f12e258891d028641e43c ()
treebf4c21da39edbc0e5ff62f6170ca2a7f8e34be9e /lib/bundled_gems.rb
parent750e6195040ec3f9d0b172ac1a49a49d9b7d8ba0 (diff)
irb and reline are now bundled gems, we don't need to skip workaround for them
Notes: Merged: https://.com/ruby/ruby/pull/12624
-rw-r--r--lib/bundled_gems.rb5
1 files changed, 0 insertions, 5 deletions
@@ -127,11 +127,6 @@ module Gem::BUNDLED_GEMS # :nodoc:
# name can be a feature name or a file path with String or Pathname
feature = File.path(name)
- # irb already has reline as a dependency on gemspec, so we don't want to warn about it.
- # We should update this with a more general solution when we have another case.
- # ex: Gem.loaded_specs[called_gem].dependencies.any? {|d| d.name == feature }
- return false if feature.start_with?("reline") && caller_locations(2, 1)[0].to_s.include?("irb")
-
# The actual checks needed to properly identify the gem being required
# are costly (see [Bug #20641]), so we first do a much cheaper check
# to exclude the vast majority of candidates.