Modifying travis.yml file

- added .ruby-version file
- modified .travis.yml to cache bundler install