Use Hash[] instead of to_h for 1.9.3 compatibility, add travis.yml for different rubies