lib/config_skeleton.rb in config_skeleton-0.0.0.1.ge6b0cac vs lib/config_skeleton.rb in config_skeleton-0.1.0

- old
+ new

@@ -258,10 +258,10 @@ # @see .watch for watching files and directories whose path never changes. # def watch(*files) files.each do |f| if File.directory?(f) - notifier.watch(f, :recursive, :create, :modify, :delete, :move) { |ev| logger.info("#{logloc} watcher") { "detected #{ev.flags.join(", ")} on #{ev.watcher.path}/#{ev.file}; regenerating config" } } + notifier.watch(f, :recursive, :create, :modify, :delete, :move) { |ev| logger.info("#{logloc} watcher") { "detected #{ev.flags.join(", ")} on #{ev.watcher.path}/#{ev.name}; regenerating config" } } else notifier.watch(f, :close_write) { |ev| logger.info("#{logloc} watcher") { "detected #{ev.flags.join(", ")} on #{ev.watcher.path}; regenerating config" } } end end end