mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to RubyGems 1.3.7.pre.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d0e5a34ac7
commit
372dcece3f
64 changed files with 759 additions and 240 deletions
|
@ -285,17 +285,19 @@ class Gem::SourceInfoCache
|
|||
cache_data.map do |source_uri, sic_entry|
|
||||
next unless Gem.sources.include? source_uri
|
||||
# TODO - Remove this gunk after 2008/11
|
||||
unless pattern.kind_of?(Gem::Dependency)
|
||||
pattern = Gem::Dependency.new(pattern, Gem::Requirement.default)
|
||||
unless pattern.kind_of? Gem::Dependency then
|
||||
pattern = Gem::Dependency.new pattern, Gem::Requirement.default
|
||||
end
|
||||
sic_entry.source_index.search pattern, platform_only
|
||||
end.flatten.compact
|
||||
end
|
||||
|
||||
##
|
||||
# Searches all source indexes for +pattern+. If +only_platform+ is true,
|
||||
# only gems matching Gem.platforms will be selected. Returns an Array of
|
||||
# pairs containing the Gem::Specification found and the source_uri it was
|
||||
# found at.
|
||||
|
||||
def search_with_source(pattern, only_platform = false, all = false)
|
||||
read_all_cache_data if all
|
||||
|
||||
|
@ -306,7 +308,7 @@ class Gem::SourceInfoCache
|
|||
|
||||
# TODO - Remove this gunk after 2008/11
|
||||
unless pattern.kind_of?(Gem::Dependency)
|
||||
pattern = Gem::Dependency.new(pattern, Gem::Requirement.default)
|
||||
pattern = Gem::Dependency.new(pattern, Gem::Requirement.default)
|
||||
end
|
||||
|
||||
sic_entry.source_index.search(pattern, only_platform).each do |spec|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue