lib/rake_dependencies/extractors.rb in rake_dependencies-1.14.0 vs lib/rake_dependencies/extractors.rb in rake_dependencies-1.15.0.pre.1
- old
+ new
@@ -13,9 +13,10 @@
end
def extract
FileUtils.mkdir_p(@extract_path)
Zip::File.open(@file_path) do |zip_file_entries|
+ zip_file_entries.restore_permissions = true
zip_file_entries.each do |entry|
entry_pathname = Pathname.new(entry.name)
strip_pathname = Pathname.new(@options[:strip_path] || '')
target_pathname = entry_pathname.relative_path_from(strip_pathname)