mirror of
https://github.com/discourse/discourse.git
synced 2026-08-03 09:53:24 -05:00
Build(deps): Bump rubyzip from 2.4.1 to 3.2.2 (#35749)
Bumps [rubyzip](https://github.com/rubyzip/rubyzip) from 2.4.1 to 3.2.2. - [Release notes](https://github.com/rubyzip/rubyzip/releases) - [Changelog](https://github.com/rubyzip/rubyzip/blob/main/Changelog.md) - [Commits](https://github.com/rubyzip/rubyzip/compare/v2.4.1...v3.2.2) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
co-authored by
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Joffrey JAFFEUX
parent
4f00f63acd
commit
8af9e66aa7
+2
-2
@@ -609,7 +609,7 @@ GEM
|
||||
guess_html_encoding (>= 0.0.4)
|
||||
nokogiri (>= 1.6.0)
|
||||
ruby2_keywords (0.0.5)
|
||||
rubyzip (2.4.1)
|
||||
rubyzip (3.2.2)
|
||||
sanitize (7.0.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.16.8)
|
||||
@@ -1181,7 +1181,7 @@ CHECKSUMS
|
||||
ruby-rc4 (0.1.5) sha256=00cc40a39d20b53f5459e7ea006a92cf584e9bc275e2a6f7aa1515510e896c03
|
||||
ruby-readability (0.7.2) sha256=7351ddc89ac62ecdd35336acb1313ac29dc1dad9745d59f25109ec2215c6580c
|
||||
ruby2_keywords (0.0.5) sha256=ffd13740c573b7301cf7a2e61fc857b2a8e3d3aff32545d6f8300d8bae10e3ef
|
||||
rubyzip (2.4.1) sha256=8577c88edc1fde8935eb91064c5cb1aef9ad5494b940cf19c775ee833e075615
|
||||
rubyzip (3.2.2) sha256=c0ed99385f0625415c8f05bcae33fe649ed2952894a95ff8b08f26ca57ea5b3c
|
||||
sanitize (7.0.0) sha256=269d1b9d7326e69307723af5643ec032ff86ad616e72a3b36d301ac75a273984
|
||||
sass-embedded (1.91.0-aarch64-linux-gnu) sha256=932bf7223ffbbdeefc91cd364de6bf9dbfdc7d80201911eb4dae8d9a7f5bee50
|
||||
sass-embedded (1.91.0-aarch64-linux-musl) sha256=08449fac861094055a1afe7da376f887f8192b3dba6658db1de7be17d32355c4
|
||||
|
||||
@@ -12,7 +12,7 @@ module Compression
|
||||
absolute_path = sanitize_path("#{path}/#{target_name}")
|
||||
zip_filename = "#{absolute_path}.zip"
|
||||
|
||||
::Zip::File.open(zip_filename, ::Zip::File::CREATE) do |zipfile|
|
||||
::Zip::File.open(zip_filename, create: true) do |zipfile|
|
||||
if File.directory?(absolute_path)
|
||||
entries = Dir.entries(absolute_path) - %w[. ..]
|
||||
write_entries(entries, absolute_path, "", zipfile)
|
||||
@@ -27,7 +27,8 @@ module Compression
|
||||
private
|
||||
|
||||
def extract_folder(entry, entry_path)
|
||||
entry.extract(entry_path)
|
||||
dest_dir = entry_path.delete_suffix(entry.name)
|
||||
entry.extract(destination_directory: dest_dir)
|
||||
end
|
||||
|
||||
def get_compressed_file_stream(compressed_file_path)
|
||||
|
||||
@@ -35,10 +35,9 @@ module PageObjects
|
||||
def unzip(file)
|
||||
paths = []
|
||||
Zip::File.open(file) do |zip_file|
|
||||
zip_file.each do |f|
|
||||
path = File.join(Downloads::FOLDER, f.name)
|
||||
zip_file.extract(f, path)
|
||||
paths << path
|
||||
zip_file.each do |entry|
|
||||
entry.extract(destination_directory: Downloads::FOLDER)
|
||||
paths << File.join(Downloads::FOLDER, entry.name)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user