lib/dyndoc-html-servers.rb in dyndoc-ruby-1.0.21 vs lib/dyndoc-html-servers.rb in dyndoc-ruby-1.0.22

- old
+ new

@@ -1,14 +1,14 @@ require 'dyndoc/init/home' require 'pathname' require 'yaml' require 'filewatcher' -# if RUBY_VERSION >= "2.4" -# class FileWatcher < Filewatcher -# end -# end +if RUBY_VERSION >= "2.4" + class FileWatcher < Filewatcher + end +end module Dyndoc module Browser @@browser_cfg_file= File.join(Dyndoc.home,"etc","browser.yml") @@ -269,10 +269,10 @@ user: nil #current_email } puts "watching "+ dyn_root old_html_file="" - ::Filewatcher.new(dyn_root).watch() do |filename, event| + ::FileWatcher.new(dyn_root).watch() do |filename, event| ##p [:filename,filename,event] if [:changed,:updated,:new].include? event and File.extname(filename) == ".dyn" ##p [:filename_event,event,filename] if (lint_error=Dyndoc::Linter.check_file(filename)).empty? ## do not process preload, postload, lib and layout files