Employees at a Shaw's Supermarket distribution centre in Maine ratified a new contract over the weekend, following the example set by staff at other stores in Massachusetts and in Rhode Island and thus avoiding a strike.