End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Package::TarWriter::BoundedStream.new
new(io, limit)
lib/rubygems/package/tar_writer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/package/tar_writer.rb, line 30
def initialize(io, limit)
@io = io
@limit = limit
@written = 0
end
Wraps io and allows up to limit bytes to be written