lib/jruby_art/runners/watch.rb in jruby_art-1.2.5 vs lib/jruby_art/runners/watch.rb in jruby_art-1.2.6
- old
+ new
@@ -1,6 +1,5 @@
-# encoding: utf-8
# frozen_string_literal: false
require_relative 'base'
require_relative '../config'
module Processing
@@ -9,11 +8,11 @@
# A sketch loader, observer, and reloader, to tighten
# the feedback between code and effect.
class Watcher
# Sic a new Processing::Watcher on the sketch
- WATCH_MESSAGE ||= <<-EOS
+ WATCH_MESSAGE ||= <<-EOS.freeze
Warning:
To protect you from running watch mode in a top level
directory with lots of nested ruby or GLSL files we
limit the number of files to watch to %d.
If you really want to watch %d files you should
@@ -52,10 +51,10 @@
wformat = 'Exception occured while running sketch %s...'
tformat = "Backtrace:\n\t%s"
warn format(wformat, File.basename(SKETCH_PATH))
puts format(tformat, e.backtrace.join("\n\t"))
end
-
+
def start_original
@runner = Thread.start do
report_errors do
Processing.load_and_run_sketch
end