From dfffc2e72a20c199e656f6bfa6ca977475ee6a01 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 16 Nov 2013 13:12:06 -0500 Subject: [PATCH] Use Pathname#to_s instead of Pathname#to_path Fixes #1723. --- lib/jekyll/commands/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/commands/build.rb b/lib/jekyll/commands/build.rb index a0dd44e5..bfc69aa3 100644 --- a/lib/jekyll/commands/build.rb +++ b/lib/jekyll/commands/build.rb @@ -37,7 +37,7 @@ module Jekyll destination = options['destination'] begin - dest = Pathname.new(destination).relative_path_from(Pathname.new(source)).to_path + dest = Pathname.new(destination).relative_path_from(Pathname.new(source)).to_s ignored = Regexp.new(Regexp.escape(dest)) rescue ArgumentError # Destination is outside the source, no need to ignore it.