How can I call an older version of a gem from the

2019-01-21 10:59发布

Say I have two versions of a gem installed (somegem versions 0.10.6 and 0.10.5) and I want to run the earlier version from the commandline. Do I have to uninstall the newer version? Is there a way I can use a flag to specify which version I want to use? Something like...

somegem /path/to/dir --version 0.10.5

I checked the rubygems documentation, and it only describes how to use a specific version when you require a gem from a file, but nothing about how to do it from the commandline.

标签: ruby rubygems
1条回答
迷人小祖宗
2楼-- · 2019-01-21 11:41
somegem _0.10.5_ /path/to/dir

No link to documentation, because apparently there isn't any.

查看更多
登录 后发表回答