$58 GRAYBYTE WORDPRESS FILE MANAGER $12

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby31/share/rubygems/rubygems/package/

HOME
Current File : /opt/alt/ruby31/share/rubygems/rubygems/package//io_source.rb
# frozen_string_literal: true
##
# Supports reading and writing gems from/to a generic IO object.  This is
# useful for other applications built on top of rubygems, such as
# rubygems.org.
#
# This is a private class, do not depend on it directly. Instead, pass an IO
# object to `Gem::Package.new`.

class Gem::Package::IOSource < Gem::Package::Source # :nodoc: all
  attr_reader :io

  def initialize(io)
    @io = io
  end

  def start
    @start ||= begin
      if io.pos > 0
        raise Gem::Package::Error, "Cannot read start unless IO is at start"
      end

      value = io.read 20
      io.rewind
      value
    end
  end

  def present?
    true
  end

  def with_read_io
    yield io
  ensure
    io.rewind
  end

  def with_write_io
    yield io
  ensure
    io.rewind
  end

  def path
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 May 2025 8.50 AM
root / linksafe
0755
tar_reader
--
13 May 2025 8.50 AM
root / linksafe
0755
digest_io.rb
1.331 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
file_source.rb
0.595 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
io_source.rb
0.794 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
old.rb
3.627 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
source.rb
0.069 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
tar_header.rb
5.914 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
tar_reader.rb
2.346 KB
28 Apr 2025 5.36 PM
root / linksafe
0644
tar_writer.rb
7.51 KB
28 Apr 2025 5.36 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF