Sha256: c4be0fc123a58d3bd5769df502b54a3232145ebb8bcdbaa4e33adbb4d0dc2fa0
Contents?: true
Size: 429 Bytes
Versions: 3
Compression:
Stored size: 429 Bytes
Contents
require 'facets/gem/specification/current_specs' module Gem # Search RubyGems for matching paths in current gem versions. def self.search(match, options={}) matches = [] Gem::Specification.current_specs.each do |spec| glob = File.join(spec.lib_dirs_glob, match) list = Dir[glob] #.map{ |f| f.untaint } list = list.map{ |d| d.chomp('/') } matches.concat(list) end matches end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | lib/standard/facets/gem/search.rb |
facets-3.1.0 | lib/standard/facets/gem/search.rb |
facets-3.0.0 | lib/standard/facets/gem/search.rb |