Class Gem::Package::TarInput
In: lib/rubygems/package.rb
Parent: Object

Methods

Included Modules

FSyncDir Enumerable

Attributes

metadata  [R] 

Public Class methods

Public Instance methods

Attempt to YAML-load a gemspec from the given io parameter. Return nil if it fails.

Return an IO stream for the zipped entry.

If zlib is earlier than 1.2.1, then read the entry into memory and create a string IO object from it. This avoids a "buffer error" problem on windows when using an earlier version of zlib. This problem has not been observed in versions of zlib 1.2.1 or later. (Update: Kornelius Kalnbach has reported seeing it in zlib 1.2.1, so the condition now provides the workaround for 1.2.1 as well)

[Validate]