Ruby-based video surveillance system using Motion