End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Package#gzip_to
gzip_to(io) { |gz_io| ... }
lib/rubygems/package.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/package.rb, line 467
def gzip_to(io) # :yields: gz_io
gz_io = Zlib::GzipWriter.new io, Zlib::BEST_COMPRESSION
gz_io.mtime = @build_time
yield gz_io
ensure
gz_io.close
end
Gzips content written to gz_io to io.
See also
#extract_files
#initialize
#copy_to
#normalize_path
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1