Use Rails 4.0.0.beta1 on JRuby and bundle update

Now, Rails 4.0.0.beta1 doesn't work on JRuby because of
activerecord-jdbc-adapter issues.