lib/jekyll/watcher.rb in jekyll-watch-2.1.1 vs lib/jekyll/watcher.rb in jekyll-watch-2.1.2

- old
+ new

@@ -52,22 +52,18 @@ end def listen_handler(site) proc do |modified, added, removed| t = Time.now - c = normalize_encoding(modified + added + removed, site.source.encoding) + c = modified + added + removed 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("#{site.source}/", "") } + c.each { |path| Jekyll.logger.info "", path["#{site.source}/".length..-1] } process(site, t) end - end - - def normalize_encoding(list, desired_encoding) - list.map { |entry| entry.encode!(desired_encoding, entry.encoding) } end def custom_excludes(options) Array(options["exclude"]).map { |e| Jekyll.sanitized_path(options["source"], e) } end