My Atom hack (init script) for speed programming in Ruby. This code is very ugly but works.
Upon saving,
- Ruby code in the specified directory is run.
- Test input data (after 1st
__END__
but before 2nd__END__
) is sent to the script via stdin. - Output and/or errors are displayed in a popup.
- Program output is compared to test output data (after 2nd
__END__
). If it matches, then the popup becomes green. - If there is a script error, highlight the line causing the error.