Use Pathname#to_s instead of Pathname#to_path

Fixes #1723.
This commit is contained in:
Parker Moore 2013-11-16 13:12:06 -05:00
parent 1d81f2553d
commit dfffc2e72a
1 changed files with 1 additions and 1 deletions

View File

@ -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.