我怎么能从命令行调用一个老版本的gem? [英] How can I call an older version of a gem from the commandline?
本文介绍了我怎么能从命令行调用一个老版本的gem?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
somegem / path / to / dir --version 0.10.5
我检查了rubygems文档,它仅描述了如何从文件中使用某个特定版本,但没有说明如何使用从命令行执行它。
解决方案
somegem _0.10.5_ / path / to / dir
没有链接到文档,因为显然没有。
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.
解决方案
somegem _0.10.5_ /path/to/dir
No link to documentation, because apparently there isn't any.
这篇关于我怎么能从命令行调用一个老版本的gem?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文