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.11.6 lib/td/compat_gzip_reader.rb
td-client-0.8.67 lib/td/client/compat_gzip_reader.rb
td-0.11.5 lib/td/compat_gzip_reader.rb
td-client-0.8.66 lib/td/client/compat_gzip_reader.rb
td-client-0.8.65 lib/td/client/compat_gzip_reader.rb
td-0.11.4 lib/td/compat_gzip_reader.rb
td-client-0.8.64 lib/td/client/compat_gzip_reader.rb
td-0.11.3 lib/td/compat_gzip_reader.rb
td-client-0.8.63 lib/td/client/compat_gzip_reader.rb
td-0.11.2 lib/td/compat_gzip_reader.rb
td-client-0.8.62 lib/td/client/compat_gzip_reader.rb
td-client-0.8.61 lib/td/client/compat_gzip_reader.rb
td-0.11.1 lib/td/compat_gzip_reader.rb
td-client-0.8.60 lib/td/client/compat_gzip_reader.rb
td-client-0.8.59 lib/td/client/compat_gzip_reader.rb
td-client-0.8.58 lib/td/client/compat_gzip_reader.rb
td-0.10.99 lib/td/compat_gzip_reader.rb
td-0.10.98 lib/td/compat_gzip_reader.rb
td-client-0.8.57 lib/td/client/compat_gzip_reader.rb
td-0.10.97 lib/td/compat_gzip_reader.rb