Merge pull request #1730 from mojombo/pathname-to-s

Use Pathname#to_s instead of Pathname#to_path
This commit is contained in:
Matt Rogers 2013-11-17 21:00:27 -08:00
commit c120b96638
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.