Fix allowed failures in Travis CI and add jruby/rails4