Skip to content

Commit

Permalink
Merge branch 'niklasjansson-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
hartator committed Oct 27, 2017
2 parents 0e96fee + 0a2ae60 commit 069a7cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wayback_machine_downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WaybackMachineDownloader

include ArchiveAPI

VERSION = "2.2.0"
VERSION = "2.2.1"

attr_accessor :base_url, :exact_url, :directory, :all_timestamps,
:from_timestamp, :to_timestamp, :only_filter, :exclude_filter,
Expand Down Expand Up @@ -260,6 +260,7 @@ def download_file file_remote_info
file_path = backup_path + file_path_elements[0..-1].join('/')
end
if Gem.win_platform?
dir_path = dir_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
file_path = file_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
end
unless File.exist? file_path
Expand Down

0 comments on commit 069a7cc

Please sign in to comment.