Make spec tests work in Ruby 1.8.x and 1.9.x
Adding rubygems deployment to .travis.yml