# File lib/rubygems/package.rb, line 616 def zipped_stream(entry) # This is Jamis Buck's ZLib workaround. The original code is # commented out while we evaluate this patch. entry.read(10) # skip the gzip header zis = Zlib::Inflate.new(-Zlib::MAX_WBITS) is = StringIO.new(zis.inflate(entry.read)) # zis = Zlib::GzipReader.new entry # dis = zis.read # is = StringIO.new(dis) ensure zis.finish if zis end