Skip to content

Commit 6d39532

Browse files
committed
Gems tests undefined RUBY_ENGINE so we can’t test against that
1 parent ea34034 commit 6d39532

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/mri/rubygems/util.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,12 @@ def self.traverse_parents(directory, &block)
121121
# returning absolute paths to the matching files.
122122

123123
def self.glob_files_in_dir(glob, base_path)
124-
if RUBY_VERSION >= "2.5" && RUBY_ENGINE != 'truffleruby' # TruffleRuby bug doesn't support base:
125-
Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) }
126-
else
124+
# TruffleRuby bug doesn't support base:, and gem tests remove RUBY_ENGINE
125+
#if RUBY_VERSION >= "2.5"
126+
# Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) }
127+
#else
127128
Dir.glob(File.expand_path(glob, base_path))
128-
end
129+
#end
129130
end
130131

131132
end

0 commit comments

Comments
 (0)