wayback_machine_downloader 0.2.0 → 0.2.1
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 +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2895e2314d3d13ba690fd7738adee574eab014a6
|
4
|
+
data.tar.gz: 69499f6893c6269cf4ed454d5c498d0e76e56bc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b455613bfe021163671361eb828badcd1c0549ea13ff919e9be55c3cc8257317033bda577b802538b939ffded2ed52309c9f4cb6443616e3d340d4c5b7b41e2b
|
7
|
+
data.tar.gz: 2c14f781e76b3420f2cac8d02dfad537bae78bf03f6bbd26238da35f5b19ce1e7a9861242ddd31e7e1572085ffeb0fd445cf232cf54544790ebb3d86f3bc5cef
|
@@ -7,7 +7,7 @@ require_relative 'wayback_machine_downloader/to_regex'
|
|
7
7
|
|
8
8
|
class WaybackMachineDownloader
|
9
9
|
|
10
|
-
VERSION = "0.2.
|
10
|
+
VERSION = "0.2.1"
|
11
11
|
|
12
12
|
attr_accessor :base_url, :timestamp, :only_filter
|
13
13
|
|
@@ -102,6 +102,9 @@ class WaybackMachineDownloader
|
|
102
102
|
dir_path = backup_path + file_path_elements[0..-2].join('/')
|
103
103
|
file_path = backup_path + file_path_elements[0..-1].join('/')
|
104
104
|
end
|
105
|
+
if Gem.win_platform?
|
106
|
+
file_path = file_path.gsub(/[:*?<>\\|]/) {|s| '%' + s.ord.to_s(16) }
|
107
|
+
end
|
105
108
|
unless File.exists? file_path
|
106
109
|
begin
|
107
110
|
structure_dir_path dir_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wayback_machine_downloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hartator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|