add_file_simple (Gem::Package::TarWriter)

    # File lib/rubygems/package/tar_writer.rb, line 135
      def add_file_simple(name, mode, size) # :yields: io
        check_closed

        name, prefix = split_name name

        header = Gem::Package::TarHeader.new(:name => name, :mode => mode,
                                             :size => size, :prefix => prefix).to_s

        @io.write header
        os = BoundedStream.new @io, size

        yield os if block_given?

        min_padding = size - os.written
        @io.write("\0" * min_padding)

        remainder = (512 - (size % 512)) % 512
        @io.write("\0" * remainder)

        self
      end