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 rack
to be activated?
我有三个版本的机架安装在本地机器上(机架(1.4.1、1.3.6、1.3.5)。对于某些宝石(如黄瓜),它需要一个较低版本的齿条被激活?
I have tried with bundle
but there is no good.
我试过捆绑销售,但没有好处。
When executed, cucumber
will still use the activated rack with version 1.4.1
of the system. Bundle
specifies which gem should be installed but doesn't ensure which gem will be activated.
当执行时,cucumber仍然会使用系统1.4.1版本的激活机架。bundl指定应该安装哪个gem,但不保证将激活哪个gem。
How could I activate certain version of rack
?
如何激活特定版本的机架?
2 个解决方案
#1
12
You can specify a version in gemfile of your project
您可以在项目的gemfile中指定一个版本。
gem "rack", "1.3.5"
Pointed by matt
:
由马特指出:
To use gem specified in Gemfile:
使用Gemfile中指定的gem:
bundle exec cucumber
#1
12
You can specify a version in gemfile of your project
您可以在项目的gemfile中指定一个版本。
gem "rack", "1.3.5"
Pointed by matt
:
由马特指出:
To use gem specified in Gemfile:
使用Gemfile中指定的gem:
bundle exec cucumber