diff options
-rw-r--r-- | lib/rubygems/package/old.rb | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,4 +1,4 @@ -# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. @@ -64,7 +64,7 @@ class Gem::Package::Old < Gem::Package destination = install_location full_name, destination_dir - file_data = '' read_until_dashes io do |line| file_data << line @@ -95,7 +95,7 @@ class Gem::Package::Old < Gem::Package # Reads the file list section from the old-format gem +io+ def file_list io # :nodoc: - header = '' read_until_dashes io do |line| header << line @@ -135,7 +135,7 @@ class Gem::Package::Old < Gem::Package return @spec if @spec - yaml = '' @gem.with_read_io do |io| skip_ruby io @@ -176,4 +176,3 @@ class Gem::Package::Old < Gem::Package end end - |