lib/jekyll/watcher.rb in jekyll-watch-2.1.0 vs lib/jekyll/watcher.rb in jekyll-watch-2.1.1
- old
+ new
@@ -58,11 +58,11 @@
n = c.length
Jekyll.logger.info "Regenerating:",
"#{n} file(s) changed at #{t.strftime("%Y-%m-%d %H:%M:%S")}"
- c.each { |path| Jekyll.logger.info "", path.sub("#{source_path}/", "") }
+ c.each { |path| Jekyll.logger.info "", path.sub("#{site.source}/", "") }
process(site, t)
end
end
def normalize_encoding(list, desired_encoding)
@@ -91,11 +91,11 @@
#
# options - A Hash of options passed to the command
#
# Returns a list of relative paths from source that should be ignored
def listen_ignore_paths(options)
- source = Pathname.new(options["source"]).expand_path
- paths = to_exclude(options)
+ source = Pathname.new(options["source"]).expand_path
+ paths = to_exclude(options)
paths.map do |p|
absolute_path = Pathname.new(p).expand_path
next unless absolute_path.exist?