From 662ab9eeb72efa445f6225fb586556283385635c Mon Sep 17 00:00:00 2001 From: Niklas Jansson Date: Mon, 5 Jun 2017 12:32:37 +0200 Subject: [PATCH 1/2] fixed bad characters in directories for windows --- lib/wayback_machine_downloader.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index 913174b..55de71d 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -217,6 +217,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.exists? file_path From 0a2ae60378145c366ac9268296938404a919ca75 Mon Sep 17 00:00:00 2001 From: hartator Date: Thu, 26 Oct 2017 20:09:23 -0500 Subject: [PATCH 2/2] Bump Gem version --- lib/wayback_machine_downloader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index 539dd8c..a00357a 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -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,