summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb2
-rw-r--r--lib/rubygems/package.rb3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 98e7dfaf82..f48496aa31 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -9,7 +9,7 @@ require 'rbconfig'
require 'thread'
module Gem
- VERSION = '2.4.5.1'
+ VERSION = '2.4.5.2'
end
# Must be first since it unloads the prelude from 1.9.2
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb
index 417b34b79f..e8b8b38b06 100644
--- a/lib/rubygems/package.rb
+++ b/lib/rubygems/package.rb
@@ -366,8 +366,9 @@ EOM
FileUtils.mkdir_p mkdir, mkdir_options
- open destination, 'wb', entry.header.mode do |out|
+ open destination, 'wb' do |out|
out.write entry.read
+ FileUtils.chmod entry.header.mode, destination
end if entry.file?
verbose destination