summaryrefslogtreecommitdiff
path: root/lib/irb/completion.rb
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2023-04-05 22:40:34 +0100
committergit <[email protected]>2023-04-05 21:40:40 +0000
commit2f8e5c80e65a14b3a9298b6cae7ee7fc53890540 (patch)
treeca1b18b39c4a0d95017361207b635d71a173a639 /lib/irb/completion.rb
parent1587494b0b5f64a9976dcf0bd94dfe98123c2c27 (diff)
[ruby/irb] Drop Ruby 2.6 support
(https://github.com/ruby/irb/pull/555) * Remove all Ruby 2.6 support * Drop Ruby 2.6 specific testing conditions * Only run Ruby 2.7+ on CI * Bump Ruby requirement to 2.7+ https://github.com/ruby/irb/commit/3f714b616c
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r--lib/irb/completion.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index 6a7e04264a..84f4c4e35a 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -58,19 +58,11 @@ module IRB
BASIC_WORD_BREAK_CHARACTERS = " \t\n`><=;|&{("
- def self.absolute_path?(p) # TODO Remove this method after 2.6 EOL.
- if File.respond_to?(:absolute_path?)
- File.absolute_path?(p)
- else
- File.absolute_path(p) == p
- end
- end
-
GEM_PATHS =
if defined?(Gem::Specification)
Gem::Specification.latest_specs(true).map { |s|
s.require_paths.map { |p|
- if absolute_path?(p)
+ if File.absolute_path?(p)
p
else
File.join(s.full_gem_path, p)