Skip to content

Commit 916ed6f

Browse files
committed
Avoid loading RubyGems in irb/completion.rb
* Fixes spec/truffle/lazy_rubygems_spec.rb
1 parent 794b8e4 commit 916ed6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mri/irb/completion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def self.absolute_path?(p) # TODO Remove this method after 2.6 EOL.
6969
end
7070

7171
GEM_PATHS =
72-
if defined?(Gem::Specification)
72+
if !defined?(::TruffleRuby) and defined?(Gem::Specification)
7373
Gem::Specification.latest_specs(true).map { |s|
7474
s.require_paths.map { |p|
7575
if absolute_path?(p)

0 commit comments

Comments
 (0)