Use Ruby 1.8.x compatible syntax
add travis testing support