Former Seattle Mariners left-hander Robbie Ray threw six strong innings as the San Francisco Giants shut down the M's 4-1.