# File bundler/rubygems_ext.rb, line 230 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
# File bundler/rubygems_ext.rb, line 207 def match_gem?(platform, gem_name) match_platforms?(platform, Gem.platforms) end
# File bundler/rubygems_ext.rb, line 213 def match_platforms?(platform, platforms) platforms.any? do |local_platform| platform.nil? || local_platform == platform || (local_platform != Gem::Platform::RUBY && local_platform =~ platform) end end