summaryrefslogtreecommitdiff
path: root/lib/rubygems/package/old.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/package/old.rb')
-rw-r--r--lib/rubygems/package/old.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/rubygems/package/old.rb b/lib/rubygems/package/old.rb
index 1f1f33b856..5e722baa35 100644
--- a/lib/rubygems/package/old.rb
+++ b/lib/rubygems/package/old.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
#--
# 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 = ''
+ file_data = String.new
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 = ''
+ header = String.new
read_until_dashes io do |line|
header << line
@@ -135,7 +135,7 @@ class Gem::Package::Old < Gem::Package
return @spec if @spec
- yaml = ''
+ yaml = String.new
@gem.with_read_io do |io|
skip_ruby io
@@ -176,4 +176,3 @@ class Gem::Package::Old < Gem::Package
end
end
-