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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e029096f51177e5f4929d5f6aa87b57526c0ed80
4
- data.tar.gz: 1089cf5998af684937bc93f571e3f4f2c2b17980
3
+ metadata.gz: 2fe008c699d3d8137e9dc73b9c6c77ae4cf7886b
4
+ data.tar.gz: 864dd732b60b0cff81148b42601b3cac4a3743e4
5
5
  SHA512:
6
- metadata.gz: eae916ce693e0c594ec2b4031d84b03e21e4201debece0898492bdd937a55282ae744ad623cfc81a53a4984b5bcf1463955530ae1b927c0c0bb7f9e729516f32
7
- data.tar.gz: 42eb44752d7b0761a83549017dba94fa934d6a1a6ab83d508e4fd371f0bfb486f42ed10bd77205357e7a6f045e6fa14db06970343918e5499e8ce4b261c705c1
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.7"
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 and not @all
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wayback_machine_downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - hartator