How to switch between different version of gem installed?

前端 未结 2 611
星月不相逢
星月不相逢 2021-02-19 11:21

I have three version of rack installed on local machine (rack (1.4.1, 1.3.6, 1.3.5)). For some gem (such as Cucumber), it requires a lower version of <

相关标签:
2条回答
  • 2021-02-19 11:39

    You can specify a version in gemfile of your project

    gem "rack",  "1.3.5"
    

    Pointed by matt:

    To use gem specified in Gemfile:

    bundle exec cucumber
    
    0 讨论(0)
  • 2021-02-19 11:56

    Use bundler it will manage it for you.

    0 讨论(0)
提交回复
热议问题