zipr 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zipr/archive.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1cb5647f8410511bd09812946a161adacdc465363420c634d739c862a84b5dc
4
- data.tar.gz: 1ba4bab69bc9c06b4662b32cb1d74f41810819cf3f0326a424c88caafff5ed4c
3
+ metadata.gz: 6976718d5e5290a0ae2569b40ddbcb99e96215356a1ec154f3b6bfe2a2486062
4
+ data.tar.gz: d59070f7523eb976b4e443440e7c8f5468b42fc7465ad95041f10081971bfdb4
5
5
  SHA512:
6
- metadata.gz: b823246639b77616bc82dddd9c7018a671f159d0df8777520136a7328db96daff199a926b417d84b2489d3b1faed9b8fa93bb4edbe25eb38192ab96142196b78
7
- data.tar.gz: 7aa3d47e4e7dcd7f8ef8e8e676569cffe33eeec5cf2b60e4a0416947edc85f1fc4c1a91854395f031e9b81109fd0a7c297b4ef366db387e819a47ba564dc9e7a
6
+ metadata.gz: 31dd85955d53b08413d931d7a65c755c697c2b54e1dd3d85d54fea007fcd346e079b5badac853815670644d15f06e16ea460c00c13a1257817b98ee0b05f6b39
7
+ data.tar.gz: fe3f113d4098f1ddfac92b70b470b3aced82a49806b78f0df4284330e75e433595da060699ad4121fc6afaf23d13ed251289e4c76b8cbc9005325952fff16e44
data/lib/zipr/archive.rb CHANGED
@@ -441,6 +441,7 @@ module Zipr
441
441
  def _extract_file?(archive_entry_name, is_a_directory, destination_folder, files_to_check)
442
442
  destination_path = "#{destination_folder}/#{archive_entry_name}"
443
443
  return false unless files_to_check == :all || files_to_check.include?(archive_entry_name) # Make sure the file is in the whitelist if it was provided
444
+ return false if archive_entry_name == 'archive_checksum'
444
445
  return false if ::File.directory?(destination_path) && is_a_directory # Archive item is a directory and the destination directory exists
445
446
  return false if @mode == :if_missing && ::File.exist?(destination_path) # File exists and we're not overwriting existing files due to the mode
446
447
  return false if _excluded_file?(archive_entry_name, destination_path: destination_path) # File is excluded in :options
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Munoz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-09 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: easy_io