whenever
whenever copied to clipboard
Multiple space in code will also become subject of squish
Thank you for a wonderful library.
There is one thing in trouble. It is a little inconvenient to squish multiple spaces. It is good to make one space before and after a line break. But, if possible, I do not want squish the space in the code. Please consider.
https://github.com/javan/whenever/blob/21ce00be97bb3c1c58994b6debb776e8259a303e/lib/whenever/job.rb#L44
Steps to reproduce
every 1.hour do
runner "p ' '"
end
Expected behavior
0 * * * * /bin/bash -l -c 'cd /path/to/myapp && bin/rails runner -e production '\''p '\''\'\'''\'' '\''\'\'''\'''\'' >> log/cron.log'
Actual behavior
0 * * * * /bin/bash -l -c 'cd /path/to/myapp && bin/rails runner -e production '\''p '\''\'\'''\'' '\''\'\'''\'''\'' >> log/cron.log'
Multiple spaces are now one.
System configuration
whenever version: 0.10.0 Ruby version: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]