Making a gem of the normal rails rake stats method, to make it more robust and work on non rails projects