mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to RubyGems 1.1.1 r1701.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ae6c7f816
commit
e72b71d56a
31 changed files with 272 additions and 888 deletions
|
@ -82,13 +82,15 @@ class Gem::Commands::QueryCommand < Gem::Command
|
|||
say "*** REMOTE GEMS ***"
|
||||
say
|
||||
|
||||
all = options[:all]
|
||||
|
||||
begin
|
||||
Gem::SourceInfoCache.cache.refresh options[:all]
|
||||
Gem::SourceInfoCache.cache all
|
||||
rescue Gem::RemoteFetcher::FetchError
|
||||
# no network
|
||||
end
|
||||
|
||||
output_query_results Gem::SourceInfoCache.search(name, false, true)
|
||||
output_query_results Gem::SourceInfoCache.search(name, false, all)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue