wayback_machine_downloader 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wayback_machine_downloader.rb +2 -1
- 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: d037bdcdc516a9366f9d6181d63e61970f3a2ec1
|
4
|
+
data.tar.gz: 03eef551fbb7be1d6dfb29f05c380e517b2870f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee25c7e833907143a08d9b6438482d1c9bc76219eb62b4ac179ef770c323b60c3956bb7c1c1bd33ce0e7f5b3cda620fda4c06258837066762541b4404fd4d2cc
|
7
|
+
data.tar.gz: cffca8734ae0ee449b35aae26f77032cd27bd749bbc34e925a64ea51f52a8a55c9b7fe85c5a3c2a8787715fba15f5c4138a04d4499ab170a0404d4fb0c2624d2
|
@@ -14,7 +14,7 @@ class WaybackMachineDownloader
|
|
14
14
|
|
15
15
|
include ArchiveAPI
|
16
16
|
|
17
|
-
VERSION = "2.2.
|
17
|
+
VERSION = "2.2.1"
|
18
18
|
|
19
19
|
attr_accessor :base_url, :exact_url, :directory, :all_timestamps,
|
20
20
|
:from_timestamp, :to_timestamp, :only_filter, :exclude_filter,
|
@@ -260,6 +260,7 @@ class WaybackMachineDownloader
|
|
260
260
|
file_path = backup_path + file_path_elements[0..-1].join('/')
|
261
261
|
end
|
262
262
|
if Gem.win_platform?
|
263
|
+
dir_path = dir_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
|
263
264
|
file_path = file_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
|
264
265
|
end
|
265
266
|
unless File.exist? file_path
|