Using 1.8.7-compliant File.expand_path instead of >1.9 File.realpath

This commit is contained in:
Parker Moore 2013-03-16 14:24:34 +01:00
parent 52efb71aa2
commit 8acb1b29bd
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module Jekyll
def self.globs(source, destination)
Dir.chdir(source) do
dirs = Dir['*'].select { |x| File.directory?(x) }
dirs -= [destination, File.realpath(destination), File.basename(destination)]
dirs -= [destination, File.expand_path(destination), File.basename(destination)]
dirs = dirs.map { |x| "#{x}/**/*" }
dirs += ['*']
end