fix ruby 1.9.3 incompatibility
add travis config