Ruby script that join log files ordering the entries by date