Module: Gem
- Defined in:
- lib/pluginator/rubygems_fixes.rb
Overview
older versions of rubygems od not have separate method for finding only on $LOAD_PATH this is copy/paste from rubygems 2.0.0 code :nocov: not testing as it runs only on old rubygems, it’s not even our code
Class Method Summary collapse
Class Method Details
.find_files_from_load_path(glob) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/pluginator/rubygems_fixes.rb', line 6 def self.find_files_from_load_path(glob) $LOAD_PATH.map do |load_path| Dir["#{File. glob, load_path}#{Gem.suffix_pattern}"] end.flatten.select do |file| # rubocop:disable Style/MultilineBlockChain File.file? file.untaint end end |