Add ruby script to test branch switches