How to switch between different version of gem installed?

前端 未结 2 617
星月不相逢
星月不相逢 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
    

提交回复
热议问题