Why are gems installed in a directory with a different Ruby version than I’m running?

前端 未结 2 1805
[愿得一人]
[愿得一人] 2020-11-27 07:22

When I install a gem, it gets installed in a directory named 1.9.1, despite that not being the version of Ruby I have installed:

$ ruby -v
ruby 1.9.3p327 (20         


        
2条回答
  •  佛祖请我去吃肉
    2020-11-27 07:37

    I believe it's because they share the same standard library.

    There were some significant upgrades in the 1.9.2 core, but I don't think anything in the standard library was changed, so they share the same path. It's nothing to worry about, though — as you said, everything is working fine.

提交回复
热议问题