We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea34034 commit 6d39532Copy full SHA for 6d39532
lib/mri/rubygems/util.rb
@@ -121,11 +121,12 @@ def self.traverse_parents(directory, &block)
121
# returning absolute paths to the matching files.
122
123
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
+ # TruffleRuby bug doesn't support base:, and gem tests remove RUBY_ENGINE
+ #if RUBY_VERSION >= "2.5"
+ # Dir.glob(glob, base: base_path).map! {|f| File.expand_path(f, base_path) }
127
+ #else
128
Dir.glob(File.expand_path(glob, base_path))
- end
129
+ #end
130
end
131
132
0 commit comments