mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import rubygems 1.6.2 (release candidate @ 2026fbb5)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08c07a215d
commit
6e5f49770c
24 changed files with 196 additions and 64 deletions
|
@ -56,6 +56,14 @@ class Gem::GemPathSearcher
|
|||
end
|
||||
end
|
||||
|
||||
def find_active(glob)
|
||||
# HACK violation of encapsulation
|
||||
@gemspecs.find do |spec|
|
||||
# TODO: inverted responsibility
|
||||
spec.loaded? and matching_file? spec, glob
|
||||
end
|
||||
end
|
||||
|
||||
##
|
||||
# Works like #find, but finds all gemspecs matching +glob+.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue