Ruby script for rotating touchscreens