Using 1.8.7-compliant File.expand_path instead of >1.9 File.realpath
This commit is contained in:
parent
52efb71aa2
commit
8acb1b29bd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue