Rails 在 Github 上看到一个两年前的 Rails App,如何判断对应的 Ruby 版本?

laoyuan · August 17, 2015 · Last by nouse replied at August 18, 2015 · 1857 hits

https://github.com/robinbortlik/db_explorer 用 web 来管理 MySQL,类似于 phpMyAdmin。 bundle install 的时候报错了,因为 eventmachine 1.0.3 和 Ruby 2.2 不兼容。那么问题来了,如何判断相应的 Ruby 版本呢? rails (= 4.0.2)

1 Floor has deleted

对于你这个特定的问题,那自然是要参考 eventmachine 的文档咯,其他的 gems 没有兼容性问题,因此 eventmachine 就成了下限,看它的文档就知道用什么版本合适了。

@nightire @flemon 谢谢两位,看来 Ruby 的版本并不是强关联到 Rails App 的,我用 Rvm 管理多环境试试

bundle update eventmachine

You need to Sign in before reply, if you don't have an account, please Sign up first.