Sha256: f35e8051a256a91df3e95aa6200f3fd00406daa1b737d3a5bed8943f7d55094f

Contents?: true

Size: 393 Bytes

Versions: 160

Compression:

Stored size: 393 Bytes

Contents

methods = Zlib::GzipReader.public_instance_methods
if !methods.include?(:readpartial) && !methods.include?('readpartial')
  class Zlib::GzipReader
    def readpartial(size, out=nil)
      o = read(size)
      if o
        if out
          out.replace(o)
          return out
        else
          return o
        end
      end
      raise EOFError, "end of file reached"
    end
  end
end

Version data entries

160 entries across 160 versions & 2 rubygems

Version Path
td-0.10.81 lib/td/compat_gzip_reader.rb
td-client-0.8.51 lib/td/client/compat_gzip_reader.rb
td-0.10.79 lib/td/compat_gzip_reader.rb
td-0.10.78 lib/td/compat_gzip_reader.rb
td-client-0.8.50 lib/td/client/compat_gzip_reader.rb
td-0.10.77 lib/td/compat_gzip_reader.rb
td-client-0.8.49 lib/td/client/compat_gzip_reader.rb
td-0.10.76 lib/td/compat_gzip_reader.rb
td-client-0.8.48 lib/td/client/compat_gzip_reader.rb
td-client-0.8.47 lib/td/client/compat_gzip_reader.rb
td-0.10.75 lib/td/compat_gzip_reader.rb
td-0.10.74 lib/td/compat_gzip_reader.rb
td-client-0.8.46 lib/td/client/compat_gzip_reader.rb
td-0.10.73 lib/td/compat_gzip_reader.rb
td-0.10.72 lib/td/compat_gzip_reader.rb
td-0.10.71 lib/td/compat_gzip_reader.rb
td-0.10.70 lib/td/compat_gzip_reader.rb
td-client-0.8.45 lib/td/client/compat_gzip_reader.rb
td-client-0.8.44 lib/td/client/compat_gzip_reader.rb
td-0.10.69 lib/td/compat_gzip_reader.rb