summaryrefslogtreecommitdiff
path: root/lib/rubygems/package.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-12-22 07:01:12 +0900
committerHiroshi SHIBATA <[email protected]>2023-12-22 07:24:04 +0900
commit82496f2b389278a569fa7680ee6faa55a97410d7 ()
treeacce0c98431a9f617be3d5c971b4c684155c5b94 /lib/rubygems/package.rb
parentfc549b2b3a65a95a734ee8679293a30284f84622 (diff)
Merge RubyGems-3.5.2 and Bundler-2.5.2
-rw-r--r--lib/rubygems/package.rb14
1 files changed, 12 insertions, 2 deletions
@@ -268,7 +268,7 @@ class Gem::Package
tar.add_file_simple file, stat.mode, stat.size do |dst_io|
File.open file, "rb" do |src_io|
- dst_io.write src_io.read 16_384 until src_io.eof?
end
end
end
@@ -453,7 +453,7 @@ EOM
end
if entry.file?
- File.open(destination, "wb") {|out| out.write entry.read }
FileUtils.chmod file_mode(entry.header.mode), destination
end
@@ -714,6 +714,16 @@ EOM
rescue Zlib::GzipFile::Error => e
raise Gem::Package::FormatError.new(e.message, entry.full_name)
end
end
require_relative "package/digest_io"