module Gem
Public Instance Methods
glob_files_in_dir(glob, base_path)
click to toggle source
# File lib/bundler/rubygems_ext.rb, line 199 def glob_files_in_dir(glob, base_path) if RUBY_VERSION >= "2.5" Dir.glob(glob, :base => base_path).map! {|f| File.expand_path(f, base_path) } else Dir.glob(File.join(base_path.to_s.gsub(/[\[\]]/, '\\\\\\&'), glob)).map! {|f| File.expand_path(f) } end end