mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Upgrade to RubyGems 1.2.0 r1824. Incorporates [ruby-core:17353].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dbf3fb3d8e
commit
8b424513fd
29 changed files with 515 additions and 240 deletions
|
|
@ -30,7 +30,7 @@ class Gem::FakeFetcher
|
|||
@paths = []
|
||||
end
|
||||
|
||||
def fetch_path(path)
|
||||
def fetch_path path, mtime = nil
|
||||
path = path.to_s
|
||||
@paths << path
|
||||
raise ArgumentError, 'need full URI' unless path =~ %r'^http://'
|
||||
|
|
@ -40,7 +40,12 @@ class Gem::FakeFetcher
|
|||
raise Gem::RemoteFetcher::FetchError.new('no data', path)
|
||||
end
|
||||
|
||||
data.respond_to?(:call) ? data.call : data
|
||||
if data.respond_to?(:call) then
|
||||
data.call
|
||||
else
|
||||
data = Gem.gunzip data if path.to_s =~ /gz$/ unless data.empty?
|
||||
data
|
||||
end
|
||||
end
|
||||
|
||||
def fetch_size(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue