Update implementation of listen for v1.3.x

This commit is contained in:
Parker Moore 2013-11-01 23:16:04 -04:00
parent aebda2b7d8
commit 50fabc7b37
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ module Jekyll
Jekyll.logger.info "Auto-regeneration:", "enabled"
listener = Listen.to(source, :ignore => ignored) do |modified, added, removed|
listener = Listen::Listener.new(source, :ignore => ignored) do |modified, added, removed|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")
n = modified.length + added.length + removed.length
print Jekyll.logger.formatted_topic("Regenerating:") + "#{n} files at #{t} "