lib/nanoc/cli/commands/watch.rb in nanoc-3.3.7 vs lib/nanoc/cli/commands/watch.rb in nanoc-3.4.0

- old
+ new

@@ -28,13 +28,13 @@ filename = ::Pathname.new(File.join([ base, relative ])).relative_path_from(::Pathname.new(Dir.getwd)).to_s end # Notify if filename - print "Change detected to #{filename}; recompiling… ".make_compatible_with_env + print "Change detected to #{filename}; recompiling… " else - print "Watcher started; compiling the entire site… ".make_compatible_with_env + print "Watcher started; compiling the entire site… " end # Recompile start = Time.now site = Nanoc::Site.new('.') @@ -69,10 +69,10 @@ dirs_to_watch = watcher_config[:dirs_to_watch] || %w( content layouts lib ) files_to_watch = watcher_config[:files_to_watch] || %w( config.yaml Rules rules Rules.rb rules.rb' ) files_to_watch.delete_if { |f| !File.file?(f) } # Watch - puts "Watching for changes…".make_compatible_with_env + puts "Watching for changes…" watcher = lambda do |*args| update(&rebuilder) delete(&rebuilder) create(&rebuilder) end