rerun
rerun copied to clipboard
Incompatible with --enable-frozen-string-literal
It seems the plan is to eventually make string literals frozen by default: https://bugs.ruby-lang.org/issues/20205
With RUBYOPT="--enable-frozen-string-literal, rerun doesn't work, but it'd be nice if it did.
It raises an exception here:
https://github.com/alexch/rerun/blob/36f2d237985b670752abbe4a7f6814893cdde96f/lib/rerun/watcher.rb#L52
Suggestion
d.delete_suffix("/") is a non-mutating (and imo, more readable) alternative.