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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eccabaecb58ce40f79f3bfcbac3a50eea4c55142
4
- data.tar.gz: fd5673c7ee5404f8f73b73de9bf94c5b1e2d08ea
3
+ metadata.gz: 2895e2314d3d13ba690fd7738adee574eab014a6
4
+ data.tar.gz: 69499f6893c6269cf4ed454d5c498d0e76e56bc2
5
5
  SHA512:
6
- metadata.gz: 8db03676ee13a095e18d24ba98512852d00926d6142b4cba12b8053519384c9e96ca49ab542d45b310390248772db973b252a131937890a5ed3646c908a4d7a0
7
- data.tar.gz: 8646cea23b376bfb80019ce670badeb5746d4cd2c8010e074f7157314e9112cece9845903a8c7ee00bb5f1bafaefbb5a05f700101245872f1070018f4ac65fd2
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.0"
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.0
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: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake