parent
d2a21fe776
commit
6047927eed
|
@ -57,9 +57,9 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns a Set with the file paths
|
# Returns a Set with the file paths
|
||||||
def new_files
|
def new_files
|
||||||
files = Set.new
|
@new_files ||= Set.new.tap do |files|
|
||||||
site.each_site_file { |item| files << item.destination(site.dest) }
|
site.each_site_file { |item| files << item.destination(site.dest) }
|
||||||
files
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Private: The list of directories to be created when site is built.
|
# Private: The list of directories to be created when site is built.
|
||||||
|
@ -67,7 +67,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns a Set with the directory paths
|
# Returns a Set with the directory paths
|
||||||
def new_dirs
|
def new_dirs
|
||||||
new_files.map { |file| parent_dirs(file) }.flatten.to_set
|
@new_dirs ||= new_files.map { |file| parent_dirs(file) }.flatten.to_set
|
||||||
end
|
end
|
||||||
|
|
||||||
# Private: The list of parent directories of a given file
|
# Private: The list of parent directories of a given file
|
||||||
|
|
|
@ -97,6 +97,7 @@ module Jekyll
|
||||||
@docs_to_write = nil
|
@docs_to_write = nil
|
||||||
@regenerator.clear_cache
|
@regenerator.clear_cache
|
||||||
@liquid_renderer.reset
|
@liquid_renderer.reset
|
||||||
|
@site_cleaner = nil
|
||||||
|
|
||||||
if limit_posts < 0
|
if limit_posts < 0
|
||||||
raise ArgumentError, "limit_posts must be a non-negative number"
|
raise ArgumentError, "limit_posts must be a non-negative number"
|
||||||
|
|
Loading…
Reference in New Issue