Update travis-ci, abandon Ruby 1.8
flatten.map => flat_map