Bryan Ruiz scored the only goal of the game as Costa Rica recorded their first win of 2015 with a 1-0 international friendly victory over Uruguay.