wayback_machine_downloader 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wayback_machine_downloader.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fe008c699d3d8137e9dc73b9c6c77ae4cf7886b
|
4
|
+
data.tar.gz: 864dd732b60b0cff81148b42601b3cac4a3743e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 303ada150902728471bb8c9e1c9142f196150c090bb639c6fd2065e0d9a46543817e741b5e38a347e3b3a7be92deddbaf32087789121364c7fe21edf5eb91d5a
|
7
|
+
data.tar.gz: ae96aa328dc944d6a17e8fc614fadde6f39c79bb89054b676862012183ed9a0c0ff4a7f7b1ba09430b2f2b3dab8ff6908108b715894e15e50b8b7ec8b58ecadc
|
@@ -9,7 +9,7 @@ require_relative 'wayback_machine_downloader/to_regex'
|
|
9
9
|
|
10
10
|
class WaybackMachineDownloader
|
11
11
|
|
12
|
-
VERSION = "0.4.
|
12
|
+
VERSION = "0.4.8"
|
13
13
|
|
14
14
|
attr_accessor :base_url, :from_timestamp, :to_timestamp, :only_filter, :exclude_filter, :all, :list
|
15
15
|
|
@@ -171,7 +171,7 @@ class WaybackMachineDownloader
|
|
171
171
|
rescue StandardError => e
|
172
172
|
puts "#{file_url} # #{e}"
|
173
173
|
ensure
|
174
|
-
if File.size(file_path) == 0
|
174
|
+
if not @all and File.exists?(file_path) and File.size(file_path) == 0
|
175
175
|
File.delete(file_path)
|
176
176
|
puts "#{file_path} was empty and was removed."
|
177
177
|
end
|